history
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user