Merge pull request 'removed designation column import employee master' (#692) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #692
This commit was merged in pull request #692.
This commit is contained in:
2026-06-02 03:30:21 +00:00

View File

@@ -38,10 +38,10 @@ class EmployeeMasterImporter extends Importer
->exampleHeader('DEPARTMENT') ->exampleHeader('DEPARTMENT')
->example('HR') ->example('HR')
->label('DEPARTMENT'), ->label('DEPARTMENT'),
ImportColumn::make('designation') // ImportColumn::make('designation')
->exampleHeader('DESIGNATION') // ->exampleHeader('DESIGNATION')
->example('Manager') // ->example('Manager')
->label('DESIGNATION'), // ->label('DESIGNATION'),
ImportColumn::make('email') ImportColumn::make('email')
->exampleHeader('EMAIL') ->exampleHeader('EMAIL')
->example('john.doe@example.com') ->example('john.doe@example.com')
@@ -60,7 +60,7 @@ class EmployeeMasterImporter extends Importer
$employeeName = trim($this->data['name']) ?? ''; $employeeName = trim($this->data['name']) ?? '';
$employeeCode = trim($this->data['code']) ?? ''; $employeeCode = trim($this->data['code']) ?? '';
$employeeDepartment = trim($this->data['department']) ?? ''; $employeeDepartment = trim($this->data['department']) ?? '';
$employeeDesignation = trim($this->data['designation']) ?? ''; // $employeeDesignation = trim($this->data['designation']) ?? '';
$employeeEmail = trim($this->data['email']) ?? ''; $employeeEmail = trim($this->data['email']) ?? '';
$employeeMobile = trim($this->data['mobile_number']) ?? ''; $employeeMobile = trim($this->data['mobile_number']) ?? '';
$createdBy = Filament::auth()->user()?->name ?? ''; $createdBy = Filament::auth()->user()?->name ?? '';
@@ -124,7 +124,7 @@ class EmployeeMasterImporter extends Importer
'email' => $employeeEmail ?? null, 'email' => $employeeEmail ?? null,
'mobile_number' => $employeeMobile ?? null, 'mobile_number' => $employeeMobile ?? null,
'department' => $employeeDepartment ?? null, 'department' => $employeeDepartment ?? null,
'designation' => $employeeDesignation ?? null, // 'designation' => $employeeDesignation ?? null,
'created_by' => $createdBy ?? null, 'created_by' => $createdBy ?? null,
'updated_by' => $updatedBy ?? null, 'updated_by' => $updatedBy ?? null,
] ]