buat history and notifikasi

This commit is contained in:
hafifierahman
2021-01-09 19:52:59 +08:00
parent f37591f304
commit 3619c36e22
19 changed files with 2205 additions and 186 deletions
+29 -2
View File
@@ -112,6 +112,16 @@ class PenebusanController extends Controller
'kuantiti_marhun' => $request->kuantiti_marhun
])->json();
////////////////////////////
////Update History Gadaian///
////////////////////////////
$updatehistorygadaian = Http::put(config('api.url').'/api/gadai/updatehistory/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
'historygadaian' => $request->norujukan
])->json();
///////////////////////////
/// MARHUN UPDATE TABLE////
//////////////////////////
@@ -221,6 +231,15 @@ class PenebusanController extends Controller
'kuantiti_marhun' => $request->kuantiti_marhun
])->json();
////////////////////////////
////Update History Gadaian///
////////////////////////////
$updatehistorygadaian = Http::put(config('api.url').'/api/gadai/updatehistory/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
'historygadaian' => $request->norujukan
])->json();
///////////////////////////
/// MARHUN UPDATE TABLE////
//////////////////////////
@@ -298,7 +317,6 @@ class PenebusanController extends Controller
$new_transaction = sprintf("%04d",$new_sirig);
$norujukanbaru = strtoupper($auth_user['cawangan']) . $curent_year . $curent_month . $current_day . '-' .$new_transaction;
// dd($norujukan);
$gadai = Http::post(config('api.url').'/api/gadai/'.$auth_user['cawangan'],[
'norujukan' => $norujukanbaru,
'nopelanggan' => $request->nopelanggan,
@@ -306,7 +324,7 @@ class PenebusanController extends Controller
'sirig' => $new_sirig
]);
//////////////////////
////Update SAG BARU///
/////////////////////
@@ -334,7 +352,16 @@ class PenebusanController extends Controller
'kuantiti_marhun' => $request->kuantiti_marhun
])->json();
////////////////////////////
////Update History Gadaian///
////////////////////////////
$updatehistorygadaian = Http::put(config('api.url').'/api/gadai/updatehistory/'. $auth_user['cawangan'] .'/' . $norujukanbaru,[
'historygadaian' => $request->norujukan
])->json();
dd($updatehistorygadaian);
///////////////////////////
/// MARHUN UPDATE TABLE////