|
|
@@ -89,7 +89,7 @@ class UpdatePickZone implements ToCollection,WithHeadingRow
|
|
|
}
|
|
|
$sql = "select BAS_ZONE.DESCR,INV_LOT_LOC_ID.LOCATIONID,INV_LOT_LOC_ID.LOTNUM,BAS_LOCATION.PICKZONE,(INV_LOT_LOC_ID.QTY-INV_LOT_LOC_ID.QTYALLOCATED-QTYONHOLD-QTYRPOUT-QTYMVOUT) AS qty from INV_LOT_ATT LEFT JOIN
|
|
|
INV_LOT_LOC_ID ON INV_LOT_ATT.LOTNUM = INV_LOT_LOC_ID.LOTNUM LEFT JOIN BAS_LOCATION ON INV_LOT_LOC_ID.LOCATIONID = BAS_LOCATION.LOCATIONID
|
|
|
- LEFT JOIN BAS_ZONE ON BAS_LOCATION.PICKZONE = BAS_ZONE.ZONE
|
|
|
+ LEFT JOIN BAS_ZONE ON BAS_LOCATION.PICKZONE = BAS_ZONE.ZONE
|
|
|
where INV_LOT_ATT.LOTNUM in (select LOTNUM from INV_LOT_LOC_ID where CUSTOMERID = ? AND SKU = ? GROUP BY LOTNUM)";
|
|
|
$bindings = [$detail->customerid,$detail->sku];
|
|
|
if ($item["生产日期"]){
|
|
|
@@ -181,7 +181,7 @@ class UpdatePickZone implements ToCollection,WithHeadingRow
|
|
|
];
|
|
|
}
|
|
|
}
|
|
|
- Cache::put("commodityAssign",["success"=>true,"data"=>$models,"errors"=>array_unique($errors)]);
|
|
|
+ Cache::put("commodityAssign",["success"=>true,"data"=>$models,"errors"=>array_values(array_unique($errors))]);
|
|
|
}
|
|
|
|
|
|
private function matchingMax($lots, $amount)
|