hu hao 4 yıl önce
ebeveyn
işleme
8c4f4ca139
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      app/Services/OrderCommodityService.php

+ 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