Fixes for invoice balance
This commit is contained in:
parent
fe934645c4
commit
76465072b3
1 changed files with 7 additions and 2 deletions
|
|
@ -82,10 +82,15 @@ class UpdateInvoicePayment
|
|||
->updateBalance($paid_amount * -1)
|
||||
->updatePaidToDate($paid_amount)
|
||||
->updateStatus()
|
||||
->deletePdf()
|
||||
->workFlow()
|
||||
->save();
|
||||
|
||||
$invoice->refresh();
|
||||
|
||||
$invoice->service()
|
||||
->deletePdf()
|
||||
->workFlow()
|
||||
->save();
|
||||
|
||||
event(new InvoiceWasUpdated($invoice, $invoice->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null)));
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue