Merge pull request 'Added two columns in asrs item importer and exporter' (#646) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #646
This commit was merged in pull request #646.
This commit is contained in:
2026-05-26 04:13:34 +00:00
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,
]