Added gernr column on importer and exporter file #976
@@ -36,6 +36,10 @@ class RequestCharacteristicExporter extends Exporter
|
||||
->label('ITEM CODE'),
|
||||
ExportColumn::make('aufnr')
|
||||
->label('JOB NUMBER'),
|
||||
ExportColumn::make('gernr')
|
||||
->label('SERIAL NUMBER'),
|
||||
ExportColumn::make('model_type')
|
||||
->label('MODEL TYPE'),
|
||||
ExportColumn::make('characteristicApproverMaster.approver_type')
|
||||
->label('APPROVER TYPE'),
|
||||
ExportColumn::make('characteristicApproverMaster.characteristic_field')
|
||||
|
||||
@@ -40,9 +40,17 @@ class RequestCharacteristicImporter extends Importer
|
||||
->relationship()
|
||||
->rules(['required']),
|
||||
ImportColumn::make('aufnr')
|
||||
->label('AUFNR')
|
||||
->exampleHeader('AUFNR')
|
||||
->label('JOB NUMBER')
|
||||
->exampleHeader('JOB NUMBER')
|
||||
->example('1234567'),
|
||||
ImportColumn::make('gernr')
|
||||
->label('SERIAL NUMBER')
|
||||
->exampleHeader('SERIAL NUMBER')
|
||||
->example('1234567890123'),
|
||||
ImportColumn::make('model_type')
|
||||
->label('MODEL TYPE')
|
||||
->exampleHeader('MODEL TYPE')
|
||||
->example('PUMP'),
|
||||
ImportColumn::make('characteristic_name')
|
||||
->label('CHARACTERISTIC NAME')
|
||||
->exampleHeader('CHARACTERISTIC NAME')
|
||||
@@ -111,10 +119,6 @@ class RequestCharacteristicImporter extends Importer
|
||||
->label('UPDATED BY')
|
||||
->exampleHeader('UPDATED BY')
|
||||
->example('RAW01234'),
|
||||
ImportColumn::make('model_type')
|
||||
->label('MODEL TYPE')
|
||||
->exampleHeader('MODEL TYPE')
|
||||
->example('PUMP'),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -125,15 +129,15 @@ class RequestCharacteristicImporter extends Importer
|
||||
// 'email' => $this->data['email'],
|
||||
// ]);
|
||||
|
||||
return new RequestCharacteristic();
|
||||
return new RequestCharacteristic;
|
||||
}
|
||||
|
||||
public static function getCompletedNotificationBody(Import $import): string
|
||||
{
|
||||
$body = 'Your request characteristic import has completed and ' . number_format($import->successful_rows) . ' ' . str('row')->plural($import->successful_rows) . ' imported.';
|
||||
$body = 'Your request characteristic import has completed and '.number_format($import->successful_rows).' '.str('row')->plural($import->successful_rows).' imported.';
|
||||
|
||||
if ($failedRowsCount = $import->getFailedRowsCount()) {
|
||||
$body .= ' ' . number_format($failedRowsCount) . ' ' . str('row')->plural($failedRowsCount) . ' failed to import.';
|
||||
$body .= ' '.number_format($failedRowsCount).' '.str('row')->plural($failedRowsCount).' failed to import.';
|
||||
}
|
||||
|
||||
return $body;
|
||||
|
||||
Reference in New Issue
Block a user