|
|
@@ -229,7 +229,7 @@ Class OwnerService
|
|
|
}
|
|
|
|
|
|
public function getOwnerByCode($code){
|
|
|
- return Cache::remember("getOwnerByCode_{$code}", config('database.cache.expirations.owners'), function ()use($code){
|
|
|
+ return Cache::remember("getOwnerByCode_{$code}", config('cache.expirations.owners'), function ()use($code){
|
|
|
$owner = Owner::query()->where('code',$code)->first();
|
|
|
if($owner) return $owner;
|
|
|
$basCustomer = app('OracleBasCustomerService')->first(['Customer_Type'=>'OW','CustomerID'=>$code]);
|