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
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:
@@ -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,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user