removed designation column import employee master
Some checks failed
Gemini PR Review / Gemini PR Review (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Waiting to run
Laravel Larastan / larastan (pull_request) Waiting to run
Laravel Pint / pint (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

This commit is contained in:
dhanabalan
2026-06-02 09:00:07 +05:30
parent 5531160860
commit 7d40f50821

View File

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