fix gadaian marhun

This commit is contained in:
Zakwan Hamdan
2020-11-02 16:08:34 +08:00
parent ac9c0b94cf
commit 4e23c1fc78
9 changed files with 237 additions and 45 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class CustomersController extends Controller
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
$customers_info = Http::get(config('api.url') . '/api/customers/'. $noic)->json();
if(sizeof($customers_info)!= 0){
if($customers_info){
$customer_info = $customers_info[0];
}else{
$customer_info = $customers_info;