fix wakil

This commit is contained in:
hafifierahman
2021-01-17 09:25:08 +08:00
parent 363646e771
commit 10ac9e9373
5 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -373,7 +373,7 @@ class GadaianController extends Controller
// dd($wakil);
if(sizeof($wakil) != 0)
$wakil = $wakil[0];
return view('print.resittebus',compact('transaction','gadai','customers_info','penebusan','wakil','totaltransaction'));
}
+1 -2
View File
@@ -287,7 +287,6 @@ class PenebusanController extends Controller
$auth_user = Auth::user();
////////////////////////
/// UPDATE TEBUS API////
///////////////////////
@@ -416,7 +415,7 @@ class PenebusanController extends Controller
$getfirstwakil = Http::get(config('api.url') . '/api/getwakil/'. $auth_user['cawangan'])->json();
if(sizeof($getfirstwakil) != 0)
return $getfirstwakil[0]['NOWAKIL'];
return $getfirstwakil[0]['nowakil'];
else
return $getfirstwakil;
}