Added category column for items masters
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user