|
|
@@ -34,8 +34,8 @@ class OrderCommodityService
|
|
|
public function correctLocation_fromWMS($orderCommodities){
|
|
|
$orderCommodities->loadMissing('order.batch');
|
|
|
$details=OracleActAllocationDetails::query()
|
|
|
- ->where('orderno',data_get($orderCommodities,'*.order.code')??[])
|
|
|
- ->where('waveno',data_get($orderCommodities,'*.order.batch.code')??[])
|
|
|
+ ->whereIn('orderno',data_get($orderCommodities,'*.order.code')??[])
|
|
|
+ ->whereIn('waveno',data_get($orderCommodities,'*.order.batch.code')??[])
|
|
|
->get(['orderno','location','waveno']);
|
|
|
foreach($orderCommodities as &$orderCommodity){
|
|
|
$orderCommodity['location'] ==$details
|