From 4371c080f682fd0fda1bd45ccefab44b0c7084ea Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 14 Jun 2024 18:38:26 +1000 Subject: [PATCH] Fixes for payment ledger when credits are applied --- app/Services/Credit/ApplyPayment.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Services/Credit/ApplyPayment.php b/app/Services/Credit/ApplyPayment.php index 284450b1c0f1..559c47edac88 100644 --- a/app/Services/Credit/ApplyPayment.php +++ b/app/Services/Credit/ApplyPayment.php @@ -120,9 +120,9 @@ class ApplyPayment ->credits() ->attach($this->credit->id, ['amount' => $this->amount_applied]); - $this->payment - ->ledger() - ->updatePaymentBalance($this->amount_applied * -1, "ApplyPaymentCredit"); + // $this->payment + // ->ledger() + // ->updatePaymentBalance($this->amount_applied * -1, "ApplyPaymentCredit"); // this duplicated the company ledger paid to date amount. $this->payment ->client