Merge pull request #6429 from turbo124/v5-develop

Fixes for client balance when deleting an invoice
This commit is contained in:
David Bomba 2021-08-07 15:25:38 +10:00 committed by GitHub
commit 0196724348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
} }