This commit is contained in:
hafifierahman
2021-01-09 19:49:53 +08:00
parent 8df2183d8f
commit a76f15602f
5 changed files with 30 additions and 1 deletions
+13
View File
@@ -543,6 +543,19 @@ class GadaiController extends Controller
return response()->json($gadai);
}
public function updateHistoryGadai($kodcaw,$norujukan,Request $request)
{
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$updatehistory = Gadai::on($cawangan['mysql'])
->where('norujukan','=',$norujukan)
->update(array(
'historygadaian' => $request->historygadaian
));
return response()->json($updatehistory,200);
}
public function getLaporanKawalanStok($kodcaw,$tarikh){
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();