buat history and notifikasi
This commit is contained in:
@@ -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////
|
||||
|
||||
Reference in New Issue
Block a user