Add laporan tuntut baki by range date
This commit is contained in:
@@ -1729,7 +1729,21 @@ class LelongController extends Controller
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function showTuntutBakiRangeDate($kodcaw,Request $request){
|
||||
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
$tuntutbaki = TuntutBaki::on($cawangan['mysql'])
|
||||
->where('tarikh','>=',$request->mula)
|
||||
->where('tarikh','<=',$request->akhir)
|
||||
->get();
|
||||
|
||||
return response()->json($tuntutbaki,200);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user