1
0
forked from poc/pds

Updated item code get func. (if plant exist)

This commit is contained in:
dhanabalan
2025-05-31 10:28:33 +05:30
parent 2b02e01cca
commit 7757347407

View File

@@ -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) {