Merge branch 'master' of https://gitlab.com/online-sistem1/api_arrahn
This commit is contained in:
@@ -3613,4 +3613,30 @@ class GadaiController extends Controller
|
||||
|
||||
return response()->json(number_format($total,2));
|
||||
}
|
||||
|
||||
public function updateTagLelong(Request $request){
|
||||
$norujukan = $request->norujukan;
|
||||
$kodcaw = $request->kodcaw;
|
||||
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw',$request->kodcaw)->first();
|
||||
|
||||
$updateTag = Gadai::on($cawangan->mysql)->where('norujukan',$norujukan)->update([
|
||||
'taglel'=>1
|
||||
]);
|
||||
|
||||
return response()->json('success');
|
||||
}
|
||||
|
||||
public function revertTagLelong(Request $request){
|
||||
$norujukan = $request->norujukan;
|
||||
$kodcaw = $request->kodcaw;
|
||||
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw',$request->kodcaw)->first();
|
||||
|
||||
$updateTag = Gadai::on($cawangan->mysql)->where('norujukan',$norujukan)->update([
|
||||
'taglel'=>0
|
||||
]);
|
||||
|
||||
return response()->json('success');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user