Updated item code get func. (if plant exist)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user