From 7757347407b5173b533607e32be2e57e318fcf89 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 31 May 2025 10:28:33 +0530 Subject: [PATCH] Updated item code get func. (if plant exist) --- app/Filament/Imports/ProductionQuantityImporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {