|
|
@@ -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='局部盘点';
|