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
return ++$rowNumber;
}),
ExportColumn::make('plant.name')
ExportColumn::make('plant.code')
->label('PLANT'),
ExportColumn::make('line.name')
->label('LINE'),

View File

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