Compare commits
2 Commits
09cb02046f
...
f4f470a98a
| Author | SHA1 | Date | |
|---|---|---|---|
| f4f470a98a | |||
|
|
2a9df38262 |
@@ -221,6 +221,14 @@ class ProcessOrderImporter extends Importer
|
|||||||
$updatedBy = Filament::auth()->user()->name;
|
$updatedBy = Filament::auth()->user()->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$existing = ProcessOrder::where('plant_id', $plantId)->where('process_order', $processOrder)->first();
|
||||||
|
|
||||||
|
if ($existing) {
|
||||||
|
$warnMsg[] = 'Process Order already exists!';
|
||||||
|
} else {
|
||||||
|
$warnMsg[] = 'New process order found!';
|
||||||
|
}
|
||||||
|
|
||||||
if (! empty($warnMsg)) {
|
if (! empty($warnMsg)) {
|
||||||
throw new RowImportFailedException(implode(', ', $warnMsg));
|
throw new RowImportFailedException(implode(', ', $warnMsg));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user