1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fixes for payment ledger when credits are applied

This commit is contained in:
David Bomba 2024-06-14 18:38:26 +10:00
parent f79f31c89e
commit 4371c080f6

View File

@ -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