Add code margin pinjaman
This commit is contained in:
@@ -155,7 +155,10 @@ class GadaianController extends Controller
|
||||
|
||||
public function store(Request $request){
|
||||
$auth_user = Auth::user();
|
||||
$total_nilai_marhun = $request->total_nilai_marhun;
|
||||
//$total_nilai_marhun = $request->total_nilai_marhun;
|
||||
//need to get total nilai marhun by api get from table marhun
|
||||
$marhun = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/marhun/gadai/'. $auth_user['cawangan'] .'/'. $request->norujukan_gadai)->json();
|
||||
$total_nilai_marhun = $marhun;
|
||||
$total_nilai_marhun = str_replace(',','',$total_nilai_marhun);
|
||||
$keuntungan_sebln = $request->keuntungan_sebulan;
|
||||
$keuntungan_sebln = str_replace(',','',$keuntungan_sebln);
|
||||
|
||||
Reference in New Issue
Block a user