1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00

Fixes for client balance when deleting an invoice

This commit is contained in:
David Bomba 2021-08-07 15:25:22 +10:00
parent 37d3b7d64c
commit a316982171

View File

@ -50,7 +50,8 @@ class MarkInvoiceDeleted extends AbstractService
private function adjustLedger() private function adjustLedger()
{ {
$this->invoice->ledger()->updatePaymentBalance($this->adjustment_amount * -1, 'Invoice Deleted - reducing ledger balance'); //reduces the payment balance by payment totals // $this->invoice->ledger()->updatePaymentBalance($this->adjustment_amount * -1, 'Invoice Deleted - reducing ledger balance'); //reduces the payment balance by payment totals
$this->invoice->ledger()->updatePaymentBalance($this->invoice->balance * -1, 'Invoice Deleted - reducing ledger balance'); //reduces the payment balance by payment totals
return $this; return $this;
} }