debug wallet audit

This commit is contained in:
edmondlang
2023-04-26 11:44:12 +08:00
parent 204068d864
commit 935c31ce33
+1 -1
View File
@@ -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++;