mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Default to first tax rate
This commit is contained in:
parent
3da8555a53
commit
4ad8ef70d7
@ -1599,15 +1599,15 @@
|
||||
}
|
||||
model.invoice().addItem();
|
||||
//model.addTaxRate();
|
||||
@else
|
||||
@else
|
||||
// Add the first tax rate for new invoices
|
||||
if(model.invoice_taxes() && model.tax_rates().length > 2) {
|
||||
var tax = model.tax_rates()[1];
|
||||
model.invoice().tax(tax);
|
||||
}
|
||||
model.invoice().custom_taxes1({{ $account->custom_invoice_taxes1 ? 'true' : 'false' }});
|
||||
model.invoice().custom_taxes2({{ $account->custom_invoice_taxes2 ? 'true' : 'false' }});
|
||||
@endif
|
||||
// Add the first tax rate for new invoices
|
||||
//if(model.invoice_taxes() && model.tax_rates().length > 0) {
|
||||
// var tax = model.tax_rates()[0];
|
||||
// model.invoice().tax(tax);
|
||||
//}
|
||||
@endif
|
||||
|
||||
model.invoice().tax(model.getTaxRate(model.invoice().tax_name(), model.invoice().tax_rate()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user