haozi 5 лет назад
Родитель
Сommit
853b37d7cd
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/Services/InventoryAccountService.php

+ 2 - 2
app/Services/InventoryAccountService.php

@@ -209,8 +209,8 @@ class InventoryAccountService
             $wmsInventories=$this->conditionPortStock($date_start,$date_end,$ownerId,$location,$barcode);
         }
         if (!$date_start&&!$date_end){
-            $name=Owner::where('id',$ownerId)->value('name');
-            $ownerName=OracleBasCustomer::where('customer_type','OW')->where('active_flag','Y')->where('descr_c',$name)->value('customerid');
+            $ownerName=Owner::where('id',$ownerId)->value('code');
+            //$ownerName=OracleBasCustomer::where('customer_type','OW')->where('active_flag','Y')->where('descr_c',$name)->value('customerid');
             $date_start=OracleInvLotLocId::where('customerid',$ownerName)->orderBy('addtime','ASC')->value('addtime');
             $date_end_time=OracleInvLotLocId::where('customerid',$ownerName)->orderBy('addtime','DESC')->value('addtime');
             if ($location||$barcode)$type='局部盘点';