Set invoice autobill based on configuration
This commit is contained in:
parent
5389c00c2f
commit
1974f0e5f3
1 changed files with 4 additions and 0 deletions
|
|
@ -531,6 +531,10 @@ class InvoiceService
|
|||
$this->invoice->exchange_rate = $this->invoice->client->currency()->exchange_rate;
|
||||
}
|
||||
|
||||
if ($settings->auto_bill_standard_invoices) {
|
||||
$this->invoice->auto_bill_enabled = true;
|
||||
}
|
||||
|
||||
if ($settings->counter_number_applied == 'when_saved') {
|
||||
$this->invoice->service()->applyNumber()->save();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue