From d14812b5c4e0954046ae7e63d16e5cc483a65f84 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 11 Nov 2022 15:56:54 +0800 Subject: [PATCH] show wallets with negative amounts in wallet audit --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index aede88b6..a8ad44ba 100644 --- a/routes/web.php +++ b/routes/web.php @@ -349,7 +349,7 @@ Route::get('/wallet/audit', function (Request $request) { if((int) $transaction->type === TransactionType::PAYMENT) $payments += (float) $transaction->amount; if((int) $transaction->type === TransactionType::DEBIT_NOTE) $debit += (float) $transaction->amount; } - if((round((float) $wallet->amount - (($topups + $credit) - ($payments + $debit)), 2) == 0) AND $wallet->amount > 0) continue; + if((round((float) $wallet->amount - (($topups + $credit) - ($payments + $debit)), 2) == 0) AND $wallet->amount > -0.01) continue; $i++;