From 35cf47b4c1fa403dca40bee7a82714d3eee76d4f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 1 Oct 2024 19:01:01 +1000 Subject: [PATCH] Minor fixes --- app/Services/Payment/RefundPayment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Payment/RefundPayment.php b/app/Services/Payment/RefundPayment.php index 4d406754aa73..bb1bc65fcb2f 100644 --- a/app/Services/Payment/RefundPayment.php +++ b/app/Services/Payment/RefundPayment.php @@ -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) {