|
|
@@ -92,6 +92,13 @@ class WarehouseService
|
|
|
return Cache::remember("WareHouse_{$code}",config('cache.expirations.warehouse'),function()use($code){
|
|
|
$wareHouse = Warehouse::query()->where('code',$code)->first();
|
|
|
if($wareHouse)return $wareHouse;
|
|
|
+// $bas_customer = app('OracleBasCustomerService')->first(['CustomerId'=>$code,'Customer_Type'=>'WH']);
|
|
|
+// if(!$bas_customer) {
|
|
|
+// OracleBasCustomer::query()->insert([
|
|
|
+// 'customerid'=>$code,'customer_type'=>'WH','descr_c'=>$code,'descr_e'=>$code,'addwho'=>'system','active_flag'=>'Y','defaultskulotid'=>'STANDARD','addtime'=>Carbon::now()->toDateTimeString(),'edittime'=>Carbon::now()->toDateTimeString()
|
|
|
+// ]);
|
|
|
+// $bas_customer = app('OracleBasCustomerService')->first(['CustomerId'=>$code,'Customer_Type'=>'WH']);
|
|
|
+// }
|
|
|
return Warehouse::query()->create(['name'=>$code,'code'=>$code]);
|
|
|
});
|
|
|
}
|