mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for regression
This commit is contained in:
parent
c3330b6777
commit
fa2019661d
@ -73,6 +73,10 @@ class UpdateInvoicePayment
|
|||||||
|
|
||||||
/*Improve performance here - 26-01-2022 - also change the order of events for invoice first*/
|
/*Improve performance here - 26-01-2022 - also change the order of events for invoice first*/
|
||||||
//caution what if we amount paid was less than partial - we wipe it!
|
//caution what if we amount paid was less than partial - we wipe it!
|
||||||
|
$invoice->balance -= $paid_amount;
|
||||||
|
$invoice->paid_to_date += $paid_amount;
|
||||||
|
$invoice->save();
|
||||||
|
|
||||||
$invoice = $invoice->service()
|
$invoice = $invoice->service()
|
||||||
->clearPartial()
|
->clearPartial()
|
||||||
// ->updateBalance($paid_amount * -1)
|
// ->updateBalance($paid_amount * -1)
|
||||||
@ -81,10 +85,6 @@ class UpdateInvoicePayment
|
|||||||
->touchPdf()
|
->touchPdf()
|
||||||
->save();
|
->save();
|
||||||
|
|
||||||
$invoice->balance -= $paid_amount;
|
|
||||||
$invoice->paid_to_date += $paid_amount;
|
|
||||||
$invoice->save();
|
|
||||||
|
|
||||||
$invoice->service()
|
$invoice->service()
|
||||||
->workFlow()
|
->workFlow()
|
||||||
->save();
|
->save();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user