This commit is contained in:
e.arrahn
2021-10-03 15:22:06 +08:00
parent 8b80093bee
commit 1108d190de
3 changed files with 51 additions and 10 deletions
+5 -1
View File
@@ -490,7 +490,11 @@ class GadaiController extends Controller
return response()->json($gadai);
}
public function batalGadai($kodcaw, $norujukan){
public function batalGadai($kodcaw, $norujukan,Request $request){
$current = Carbon::now();
$current = new Carbon();
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$old_data = Gadai::on($cawangan['mysql'])->where('norujukan','=',$norujukan)->first();