mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Default frequency to monthly
This commit is contained in:
parent
b694d35994
commit
fa6d67ac67
@ -477,7 +477,7 @@
|
||||
self.apply_taxes = ko.observable({{ ($expense && ($expense->tax_name1 || $expense->tax_name2)) ? 'true' : 'false' }});
|
||||
|
||||
@if ($isRecurring)
|
||||
self.frequency_id = ko.observable();
|
||||
self.frequency_id = ko.observable({{ FREQUENCY_MONTHLY }});
|
||||
self.start_date = ko.observable();
|
||||
self.end_date = ko.observable();
|
||||
@else
|
||||
|
@ -198,7 +198,7 @@ function InvoiceModel(data) {
|
||||
self.id = ko.observable('');
|
||||
self.discount = ko.observable('');
|
||||
self.is_amount_discount = ko.observable(0);
|
||||
self.frequency_id = ko.observable(4); // default to monthly
|
||||
self.frequency_id = ko.observable({{ FREQUENCY_MONTHLY }});
|
||||
self.terms = ko.observable('');
|
||||
self.default_terms = ko.observable(account.{{ $entityType }}_terms);
|
||||
self.terms_placeholder = ko.observable({{ (!$invoice->id || $invoice->is_recurring) && $account->{"{$entityType}_terms"} ? "account.{$entityType}_terms" : false}});
|
||||
|
Loading…
x
Reference in New Issue
Block a user