1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00

Disable tax code default until its an option

This commit is contained in:
Troels Liebe Bentsen 2014-10-15 01:45:57 +02:00
parent d6ceb33318
commit acd5b7118e

View File

@ -1545,11 +1545,11 @@
model.invoice().addItem(); model.invoice().addItem();
//model.addTaxRate(); //model.addTaxRate();
@else @else
// Add the first tax rate for new invoices // TODO: Add the first tax rate for new invoices by adding a new db field to the tax codes types to set the default
if(model.invoice_taxes() && model.tax_rates().length > 2) { //if(model.invoice_taxes() && model.tax_rates().length > 2) {
var tax = model.tax_rates()[1]; // var tax = model.tax_rates()[1];
model.invoice().tax(tax); // model.invoice().tax(tax);
} //}
model.invoice().custom_taxes1({{ $account->custom_invoice_taxes1 ? 'true' : 'false' }}); model.invoice().custom_taxes1({{ $account->custom_invoice_taxes1 ? 'true' : 'false' }});
model.invoice().custom_taxes2({{ $account->custom_invoice_taxes2 ? 'true' : 'false' }}); model.invoice().custom_taxes2({{ $account->custom_invoice_taxes2 ? 'true' : 'false' }});
@endif @endif