From cea65e348410a1d6885dc24ea5c3c0898d43b4d7 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 8 Nov 2022 18:15:03 +0800 Subject: [PATCH] audit payments bankslips --- routes/web.php | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/web.php b/routes/web.php index 0c97893f..40902a19 100644 --- a/routes/web.php +++ b/routes/web.php @@ -430,6 +430,7 @@ Route::get('/po/manual/fix', function(){ Route::get('/payment/check', function(){ + dd(\App\Models\File::whereDate('created_at', '=', Carbon::today())->get()); $transactions = Transaction::where('type', TransactionType::PAYMENT)->where('payment_method', \App\Classes\ValueObjects\Constants\PaymentMethodType::CASH)->whereDate('created_at', '=', Carbon::today())->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])->get(); foreach ($transactions as $transaction){