Added two columns in asrs item importer and exporter
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-05-26 09:43:19 +05:30
parent fc85f64fbc
commit 4a4cf17732
2 changed files with 16 additions and 0 deletions

View File

@@ -29,6 +29,10 @@ class AsrsItemValidationExporter extends Exporter
->label('ITEM DESCRIPTION'),
ExportColumn::make('uom')
->label('UOM'),
ExportColumn::make('material_type')
->label('MATERIAL TYPE'),
ExportColumn::make('material_group')
->label('MATERIAL GROUP'),
ExportColumn::make('mhe')
->label('MHE'),
ExportColumn::make('bin_quantity')

View File

@@ -38,6 +38,14 @@ class AsrsItemValidationImporter extends Importer
->exampleHeader('UOM')
->example('EA')
->label('UOM'),
ImportColumn::make('material_type')
->exampleHeader('MATERIAL TYPE')
->example('Material Type')
->label('MATERIAL TYPE'),
ImportColumn::make('material_group')
->exampleHeader('MATERIAL GROUP')
->example('Material Group')
->label('MATERIAL GROUP'),
];
}
@@ -48,6 +56,8 @@ class AsrsItemValidationImporter extends Importer
$iCode = trim($this->data['item_code']) ?? '';
$itemDes = trim($this->data['item_description']) ?? '';
$uom = trim($this->data['uom']) ?? '';
$materialType = trim($this->data['material_type']) ?? '';
$materialGroup = trim($this->data['material_group']) ?? '';
$createdBy = Filament::auth()->user()?->name ?? '';
$updatedBy = $createdBy;
@@ -87,6 +97,8 @@ class AsrsItemValidationImporter extends Importer
[
'item_description' => $itemDes,
'uom' => trim($this->data['uom']),
'material_type' => $materialType,
'material_group' => $materialGroup,
'created_by' => $createdBy,
'updated_by' => $updatedBy,
]