Added group_work_center column in importer and exporter file
This commit is contained in:
@@ -30,6 +30,8 @@ class LineExporter extends Exporter
|
|||||||
->label('NAME'),
|
->label('NAME'),
|
||||||
ExportColumn::make('type')
|
ExportColumn::make('type')
|
||||||
->label('TYPE'),
|
->label('TYPE'),
|
||||||
|
ExportColumn::make('group_work_center')
|
||||||
|
->label('GROUP WORK CENTER'),
|
||||||
ExportColumn::make('created_at')
|
ExportColumn::make('created_at')
|
||||||
->label('CREATED AT'),
|
->label('CREATED AT'),
|
||||||
ExportColumn::make('updated_at')
|
ExportColumn::make('updated_at')
|
||||||
|
|||||||
@@ -29,6 +29,11 @@ class LineImporter extends Importer
|
|||||||
->example('Domestic Assembly')
|
->example('Domestic Assembly')
|
||||||
->label('Line Type')
|
->label('Line Type')
|
||||||
->rules(['required']),
|
->rules(['required']),
|
||||||
|
ImportColumn::make('group_work_center')
|
||||||
|
->requiredMapping()
|
||||||
|
->exampleHeader('Group Work Center')
|
||||||
|
->example('RMGCEABC')
|
||||||
|
->label('Group Work Center'),
|
||||||
ImportColumn::make('plant')
|
ImportColumn::make('plant')
|
||||||
->requiredMapping()
|
->requiredMapping()
|
||||||
->exampleHeader('Plant Name')
|
->exampleHeader('Plant Name')
|
||||||
@@ -60,7 +65,8 @@ class LineImporter extends Importer
|
|||||||
'plant_id' => $plant->id
|
'plant_id' => $plant->id
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'type' => $this->data['type']
|
'type' => $this->data['type'],
|
||||||
|
'group_work_center' => $this->data['group_work_center']
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
// return Line::firstOrNew([
|
// return Line::firstOrNew([
|
||||||
|
|||||||
Reference in New Issue
Block a user