mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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;
|
$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') {
|
if ($settings->counter_number_applied == 'when_saved') {
|
||||||
$this->invoice->service()->applyNumber()->save();
|
$this->invoice->service()->applyNumber()->save();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user