mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 12:54:31 -04:00
Fix typo
This commit is contained in:
parent
dcbb9458dc
commit
7c140d1f0e
@ -579,10 +579,10 @@ function InvoiceModel(data) {
|
|||||||
return self.default_footer() && self.invoice_footer() != self.default_footer();
|
return self.default_footer() && self.invoice_footer() != self.default_footer();
|
||||||
}
|
}
|
||||||
|
|
||||||
self.applyInclusivTax = function(taxRate) {
|
self.applyInclusiveTax = function(taxRate) {
|
||||||
for (var i=0; i<self.invoice_items().length; i++) {
|
for (var i=0; i<self.invoice_items().length; i++) {
|
||||||
var item = self.invoice_items()[i];
|
var item = self.invoice_items()[i];
|
||||||
item.applyInclusivTax(taxRate);
|
item.applyInclusiveTax(taxRate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -595,7 +595,7 @@ function InvoiceModel(data) {
|
|||||||
if (taxKey.substr(0, 1) != 1) {
|
if (taxKey.substr(0, 1) != 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
self.applyInclusivTax(taxRate);
|
self.applyInclusiveTax(taxRate);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.onTax2Change = function(obj, event) {
|
self.onTax2Change = function(obj, event) {
|
||||||
@ -607,7 +607,7 @@ function InvoiceModel(data) {
|
|||||||
if (taxKey.substr(0, 1) != 1) {
|
if (taxKey.substr(0, 1) != 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
self.applyInclusivTax(taxRate);
|
self.applyInclusiveTax(taxRate);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.isAmountDiscountChanged = function(obj, event) {
|
self.isAmountDiscountChanged = function(obj, event) {
|
||||||
@ -895,7 +895,7 @@ function ItemModel(data) {
|
|||||||
|
|
||||||
this.onSelect = function() {}
|
this.onSelect = function() {}
|
||||||
|
|
||||||
self.applyInclusivTax = function(taxRate) {
|
self.applyInclusiveTax = function(taxRate) {
|
||||||
if ( ! taxRate) {
|
if ( ! taxRate) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -908,7 +908,7 @@ function ItemModel(data) {
|
|||||||
var taxKey = $(event.currentTarget).val();
|
var taxKey = $(event.currentTarget).val();
|
||||||
var taxRate = parseFloat(self.tax_rate1());
|
var taxRate = parseFloat(self.tax_rate1());
|
||||||
if (taxKey.substr(0, 1) == 1) {
|
if (taxKey.substr(0, 1) == 1) {
|
||||||
self.applyInclusivTax(taxRate);
|
self.applyInclusiveTax(taxRate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -918,7 +918,7 @@ function ItemModel(data) {
|
|||||||
var taxKey = $(event.currentTarget).val();
|
var taxKey = $(event.currentTarget).val();
|
||||||
var taxRate = parseFloat(self.tax_rate2());
|
var taxRate = parseFloat(self.tax_rate2());
|
||||||
if (taxKey.substr(0, 1) == 1) {
|
if (taxKey.substr(0, 1) == 1) {
|
||||||
self.applyInclusivTax(taxRate);
|
self.applyInclusiveTax(taxRate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user