Merge pull request 'Added duplicate process order with coil number warning message' (#430) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
Reviewed-on: #430
This commit was merged in pull request #430.
This commit is contained in:
@@ -176,7 +176,13 @@ class ProcessOrderImporter extends Importer
|
||||
$existing = ProcessOrder::where('plant_id', $plantId)->where('process_order', $processOrder)->first();
|
||||
|
||||
if ($existing) {
|
||||
$warnMsg[] = 'Process Order already exists!';
|
||||
$existing = ProcessOrder::where('plant_id', $plantId)->where('process_order', $processOrder)->where('coil_number', $coilNo)->first();
|
||||
|
||||
if ($existing) {
|
||||
$warnMsg[] = 'Process Order with coil number already exists!';
|
||||
} else {
|
||||
$warnMsg[] = 'Process Order already exists!';
|
||||
}
|
||||
} else {
|
||||
$warnMsg[] = 'New process order found!';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user