mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for tests
This commit is contained in:
parent
e4fc7fa55a
commit
dd2f9cf545
@ -96,10 +96,10 @@ class MarkPaid extends AbstractService
|
|||||||
$payment->ledger()
|
$payment->ledger()
|
||||||
->updatePaymentBalance($payment->amount * -1);
|
->updatePaymentBalance($payment->amount * -1);
|
||||||
|
|
||||||
$client = $this->invoice->client->fresh();
|
$this->invoice->client->fresh();
|
||||||
$client->paid_to_date += $payment->amount;
|
$this->invoice->client->paid_to_date += $payment->amount;
|
||||||
$client->balance += $payment->amount * -1;
|
$this->invoice->client->balance += $payment->amount * -1;
|
||||||
$client->save();
|
$this->invoice->client->push();
|
||||||
|
|
||||||
$this->invoice = $this->invoice
|
$this->invoice = $this->invoice
|
||||||
->service()
|
->service()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user