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