Update plant column references in ConfigurationExporter and ConfigurationImporter to use 'code' instead of 'name'

This commit is contained in:
dhanabalan
2025-09-06 11:30:07 +05:30
parent cac91722c3
commit ad72d38193
2 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ class ConfigurationExporter extends Exporter
// Increment and return the row number // Increment and return the row number
return ++$rowNumber; return ++$rowNumber;
}), }),
ExportColumn::make('plant.name') ExportColumn::make('plant.code')
->label('PLANT'), ->label('PLANT'),
ExportColumn::make('line.name') ExportColumn::make('line.name')
->label('LINE'), ->label('LINE'),

View File

@@ -47,9 +47,9 @@ class ConfigurationImporter extends Importer
->rules(['required']), ->rules(['required']),
ImportColumn::make('plant') ImportColumn::make('plant')
->requiredMapping() ->requiredMapping()
->relationship(resolveUsing: 'name') ->relationship(resolveUsing: 'code')
->exampleHeader('Plant') ->exampleHeader('Plant')
->example(['Ransar Industries-I']) ->example(['1000'])
->label('Plant') ->label('Plant')
->rules(['required']), ->rules(['required']),
]; ];