mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Set next_send_date to null when balance == 0
This commit is contained in:
parent
73802c3647
commit
e891238db0
@ -113,6 +113,9 @@ class InvoiceService
|
|||||||
{
|
{
|
||||||
$this->invoice = (new UpdateBalance($this->invoice, $balance_adjustment))->run();
|
$this->invoice = (new UpdateBalance($this->invoice, $balance_adjustment))->run();
|
||||||
|
|
||||||
|
if((int)$this->invoice->balance == 0)
|
||||||
|
$this->invoice->next_send_date = null;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user