kelulusan
This commit is contained in:
@@ -26,6 +26,7 @@ class TunaiController extends Controller
|
||||
return response()->json($tunai);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function countgadaidantebus($kodcaw)
|
||||
{
|
||||
@@ -144,6 +145,23 @@ class TunaiController extends Controller
|
||||
|
||||
}
|
||||
|
||||
public function getTunaiPast($kodcaw,Request $request)
|
||||
{
|
||||
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
$tunai=Tunai::on($cawangan['mysql'])
|
||||
->where([['kodcaw','=',$kodcaw],['tarikh','<',$current->toDateString()],['kodlaluan','=',$request->kodlaluan]])
|
||||
->orderBy('tarikh','desc')
|
||||
->get();
|
||||
|
||||
return response()->json($tunai);
|
||||
|
||||
}
|
||||
|
||||
public function getLatestTunai($kodcaw,Request $request)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user