audit payments bankslips

This commit is contained in:
omair saleh
2022-11-08 19:12:13 +08:00
parent cdfe0e1ed2
commit 4628c2b351
+1 -1
View File
@@ -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;