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:
parent
f79f31c89e
commit
4371c080f6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user