fix penebusan & gadaian range

This commit is contained in:
fifi97
2021-06-07 19:48:03 +08:00
parent 08eb8e22f1
commit 52f009aa1e
4 changed files with 83 additions and 2 deletions
+14
View File
@@ -561,6 +561,20 @@ class GadaiController extends Controller
return response()->json($gadai);
}
public function getLaporanGadaiRange($kodcaw,Request $request){
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$gadai = Gadai::on($cawangan['mysql'])
->where('t_gadai','>=',$request->mula)
->where('t_gadai','<=',$request->akhir)
->orderBy('t_gadai','asc')
->orderBy('sirig','asc')
->get();
return response()->json($gadai);
}
public function getLaporanBatalGadai($kodcaw,$tarikh){
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();