Minor fixes

This commit is contained in:
David Bomba 2024-10-01 19:01:01 +10:00
parent 6dc5e9927a
commit 35cf47b4c1

View File

@ -285,7 +285,7 @@ class RefundPayment
->save();
$invoice->ledger()
->updateInvoiceBalance($refunded_invoice['amount'], "Refund of payment # {$this->payment->number}")
->updateInvoiceBalance(abs($refunded_invoice['amount']), "Refund of payment # {$this->payment->number}")
->save();
if ($invoice->amount == $invoice->balance) {