1
0
forked from poc/pds

Added zmm_axial_force column in migration, model, resource, import, export, api on laser marking project

This commit is contained in:
dhanabalan
2026-06-22 19:34:12 +05:30
parent 29b9eae080
commit a62c4ce0c7
11 changed files with 112 additions and 15 deletions

View File

@@ -579,6 +579,10 @@ class TempClassCharacteristicImporter extends Importer
->label('ZMM OPERATING TEMPERATURE')
->exampleHeader('ZMM OPERATING TEMPERATURE')
->example(''),
ImportColumn::make('zmm_axial_force')
->label('ZMM AXIAL FORCE')
->exampleHeader('ZMM AXIAL FORCE')
->example(''),
ImportColumn::make('winded_serial_number')
->label('WINDed SERIAL NUMBER')
->exampleHeader('WINDED SERIAL NUMBER')
@@ -605,15 +609,15 @@ class TempClassCharacteristicImporter extends Importer
// 'email' => $this->data['email'],
// ]);
return new TempClassCharacteristic();
return new TempClassCharacteristic;
}
public static function getCompletedNotificationBody(Import $import): string
{
$body = 'Your temp class characteristic import has completed and ' . number_format($import->successful_rows) . ' ' . str('row')->plural($import->successful_rows) . ' imported.';
$body = 'Your temp class 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;