From 6eb4a66e08753968bce9c0ff5b22d05ef75f6d58 Mon Sep 17 00:00:00 2001 From: Amirah Date: Wed, 31 Jul 2024 15:07:18 +0800 Subject: [PATCH] Update code GadaiController function getLaporanAnsuranUjrah --- app/Http/Controllers/GadaiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/GadaiController.php b/app/Http/Controllers/GadaiController.php index 154e086..359b9c0 100644 --- a/app/Http/Controllers/GadaiController.php +++ b/app/Http/Controllers/GadaiController.php @@ -988,8 +988,8 @@ class GadaiController extends Controller }) ->where('transaction.kodcaw','=',$kodcaw) ->where('transaction.trans_type','=','A') - ->where('transaction.created_at','>=',$request->mula) - ->where('transaction.created_at','<=',$request->akhir) + ->whereDate('transaction.created_at', '>=', $request->mula) + ->whereDate('transaction.created_at', '<=', $request->akhir) ->orderBy('trans.tarikh_bayaran') ->orderBy('transaction.teller') ->get();