Added rework coil number warning message on import #376

Merged
jothi merged 1 commits from ranjith-dev into master 2026-02-23 10:03:25 +00:00
Showing only changes of commit 5afc8afa1a - Show all commits

View File

@@ -302,6 +302,10 @@ class ProcessOrderImporter extends Importer
]
);
} else {// $coilNo = '0'
if ($existing->rework_status == 1 && $reworkStatus == 0) {
throw new RowImportFailedException('Rework coil number already exist for the given Plant and Process Order!');
}
ProcessOrder::where('plant_id', $plantId)
->where('process_order', $processOrder)
->where('coil_number', $coilNo)