Added category column for items masters

This commit is contained in:
dhanabalan
2025-06-03 16:35:02 +05:30
parent 7760c64ed3
commit 29c092a860
5 changed files with 52 additions and 1 deletions

View File

@@ -17,6 +17,11 @@ class ItemImporter extends Importer
public static function getColumns(): array
{
return [
ImportColumn::make('category')
->requiredMapping()
->exampleHeader('Category')
->example('Submersible Motor')
->label('Category'),
ImportColumn::make('code')
->requiredMapping()
->exampleHeader('Item Code')
@@ -78,6 +83,7 @@ class ItemImporter extends Importer
'plant_id' => $plant->id
],
[
'category' => $this->data['category'],
'description' => $this->data['description'],
'hourly_quantity' => $this->data['hourly_quantity'],
'uom' => $this->data['uom']