From 935c31ce331d8ebfd2eeffcab03ecb38d8f93d9d Mon Sep 17 00:00:00 2001 From: edmondlang Date: Wed, 26 Apr 2023 11:44:12 +0800 Subject: [PATCH] debug wallet audit --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index df705655..32d210b3 100644 --- a/routes/web.php +++ b/routes/web.php @@ -404,7 +404,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.01) continue; + if((round((float) $wallet->amount - (($topups + $credit) - ($payments + $debit)), 2) == 0) AND $wallet->amount > -0.01 AND $wallet->amount != -0) continue; $i++;