mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Set invoice autobill based on configuration
This commit is contained in:
parent
5389c00c2f
commit
1974f0e5f3
@ -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…
Reference in New Issue
Block a user