From 35e21e45510d50db160fc4846c756420ea48f0d6 Mon Sep 17 00:00:00 2001 From: = Date: Mon, 22 Aug 2022 10:44:36 +1000 Subject: [PATCH] Update credit balances when a payment is deleted --- app/Services/Payment/DeletePayment.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Services/Payment/DeletePayment.php b/app/Services/Payment/DeletePayment.php index c4599abe12cf..6ce1065e0b7d 100644 --- a/app/Services/Payment/DeletePayment.php +++ b/app/Services/Payment/DeletePayment.php @@ -162,6 +162,7 @@ class DeletePayment $client ->service() ->updatePaidToDate(($paymentable_credit->pivot->amount) * -1) + ->adjustCreditBalance($paymentable_credit->pivot->amount) ->save(); }); }