audit payments bankslips

This commit is contained in:
omair saleh
2022-11-08 17:56:37 +08:00
parent 365a2fc1e9
commit a9532f882d
+1 -1
View File
@@ -430,7 +430,7 @@ Route::get('/po/manual/fix', function(){
Route::get('/payment/check', function(){
$transactions = Transaction::where('type', TransactionType::PAYMENT)->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])->get();
$transactions = Transaction::where('type', TransactionType::PAYMENT)->where('payment_method', \App\Classes\ValueObjects\Constants\PaymentMethodType::CASH)->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])->get();
foreach ($transactions as $transaction){
if(!count($transaction->documents)){