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) {