Compare commits
2 Commits
1bf85da54d
...
412b50c6c0
| Author | SHA1 | Date | |
|---|---|---|---|
| 412b50c6c0 | |||
|
|
bc1e533112 |
@@ -176,7 +176,13 @@ class ProcessOrderImporter extends Importer
|
|||||||
$existing = ProcessOrder::where('plant_id', $plantId)->where('process_order', $processOrder)->first();
|
$existing = ProcessOrder::where('plant_id', $plantId)->where('process_order', $processOrder)->first();
|
||||||
|
|
||||||
if ($existing) {
|
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 {
|
} else {
|
||||||
$warnMsg[] = 'New process order found!';
|
$warnMsg[] = 'New process order found!';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user