print sag
This commit is contained in:
@@ -249,12 +249,13 @@ class GadaiController extends Controller
|
||||
return response()->json($gadai,200);
|
||||
}
|
||||
|
||||
public function cetakSAG($kodcaw,$norujukan){
|
||||
public function cetakSAG($kodcaw,$norujukan,Request $request){
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
$gadai = Gadai::on($cawangan['mysql'])
|
||||
->where('norujukan','=',$norujukan)
|
||||
->update(array(
|
||||
'cetak' => 1
|
||||
'cetak' => 1,
|
||||
'penilai' => $request->penilai
|
||||
));
|
||||
|
||||
return response()->json($gadai,200);
|
||||
|
||||
Reference in New Issue
Block a user