fix skit2

This commit is contained in:
MUHD HAFIFIE
2021-08-12 23:43:34 +08:00
parent f288bb68bd
commit 65931b6c77
4 changed files with 56 additions and 1 deletions
+14
View File
@@ -272,6 +272,20 @@ class TunaiController extends Controller
return response()->json($requestteller);
}
public function getRequestTellerLaporanSerahanBerkala($kodcaw,Request $request)
{
$current = Carbon::now();
$current = new Carbon();
$requestteller=RequestTeller::on('mysql7')
->where([['kodcaw','=',$kodcaw],['update','=',1],['serahan','>',0],['kodlaluan','=',$request->teller],['tarikh','=',$current->toDateString()]])
->orderBy('recno','desc')
->first();
return response()->json($requestteller);
}
public function getRequestTellerByDate($kodcaw,Request $request)
{