mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 17:14:31 -04:00
Fixes for payment ledger when credits are applied
This commit is contained in:
parent
f79f31c89e
commit
4371c080f6
@ -120,9 +120,9 @@ class ApplyPayment
|
|||||||
->credits()
|
->credits()
|
||||||
->attach($this->credit->id, ['amount' => $this->amount_applied]);
|
->attach($this->credit->id, ['amount' => $this->amount_applied]);
|
||||||
|
|
||||||
$this->payment
|
// $this->payment
|
||||||
->ledger()
|
// ->ledger()
|
||||||
->updatePaymentBalance($this->amount_applied * -1, "ApplyPaymentCredit");
|
// ->updatePaymentBalance($this->amount_applied * -1, "ApplyPaymentCredit"); // this duplicated the company ledger paid to date amount.
|
||||||
|
|
||||||
$this->payment
|
$this->payment
|
||||||
->client
|
->client
|
||||||
|
Loading…
x
Reference in New Issue
Block a user