From 4628c2b3513ac596bb75fae9a173879688c6a1fa Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 8 Nov 2022 19:12:13 +0800 Subject: [PATCH] audit payments bankslips --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index ebc8df87..b7956131 100644 --- a/routes/web.php +++ b/routes/web.php @@ -430,7 +430,7 @@ Route::get('/po/manual/fix', function(){ Route::get('/payment/check', function(){ - $transactions = Transaction::where('type', TransactionType::BILL)->whereDate('created_at', '=', Carbon::today())->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])->get(); + $transactions = Transaction::where('type', TransactionType::BILL)->whereDate('created_at', '>=', Carbon::today())->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])->get(); foreach ($transactions as $transaction){ $documents = $transaction->documents;