Set next_send_date to null when balance == 0
This commit is contained in:
parent
73802c3647
commit
e891238db0
1 changed files with 3 additions and 0 deletions
|
|
@ -113,6 +113,9 @@ class InvoiceService
|
|||
{
|
||||
$this->invoice = (new UpdateBalance($this->invoice, $balance_adjustment))->run();
|
||||
|
||||
if((int)$this->invoice->balance == 0)
|
||||
$this->invoice->next_send_date = null;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue