diff --git a/app/Filament/Imports/ProductionQuantityImporter.php b/app/Filament/Imports/ProductionQuantityImporter.php index 5416c6081..c8f637be2 100644 --- a/app/Filament/Imports/ProductionQuantityImporter.php +++ b/app/Filament/Imports/ProductionQuantityImporter.php @@ -121,7 +121,7 @@ class ProductionQuantityImporter extends Importer $warnMsg[] = "Shift not found"; } $item = null; - if (!$plant) { + if ($plant) { $item = Item::where('code', $this->data['item'])->where('plant_id', $plant->id)->first(); } if (!$item) {