hu hao 4 жил өмнө
parent
commit
8c4f4ca139

+ 2 - 2
app/Services/OrderCommodityService.php

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