mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 13:24:30 -04:00
Update knockout.blade.php
Contabilizar correctamente Impuestos Negativos en el total de la Factura
This commit is contained in:
parent
360b59baa0
commit
a5e08b3ab4
@ -388,12 +388,14 @@ function InvoiceModel(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var taxRate = parseFloat(self.tax_rate());
|
var taxRate = parseFloat(self.tax_rate());
|
||||||
if (taxRate > 0) {
|
//if (taxRate > 0) {
|
||||||
var tax = roundToTwo(total * (taxRate/100));
|
// var tax = roundToTwo(total * (taxRate/100));
|
||||||
return self.formatMoney(tax);
|
// return self.formatMoney(tax);
|
||||||
} else {
|
//} else {
|
||||||
return self.formatMoney(0);
|
// return self.formatMoney(0);
|
||||||
}
|
//}
|
||||||
|
var tax = roundToTwo(total * (taxRate/100));
|
||||||
|
return self.formatMoney(tax);
|
||||||
});
|
});
|
||||||
|
|
||||||
self.totals.itemTaxes = ko.computed(function() {
|
self.totals.itemTaxes = ko.computed(function() {
|
||||||
@ -482,9 +484,10 @@ function InvoiceModel(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var taxRate = parseFloat(self.tax_rate());
|
var taxRate = parseFloat(self.tax_rate());
|
||||||
if (taxRate > 0) {
|
//if (taxRate > 0) {
|
||||||
total = NINJA.parseFloat(total) + roundToTwo((total * (taxRate/100)));
|
// total = NINJA.parseFloat(total) + roundToTwo((total * (taxRate/100)));
|
||||||
}
|
//}
|
||||||
|
total = NINJA.parseFloat(total) + roundToTwo((total * (taxRate/100)));
|
||||||
|
|
||||||
var taxes = self.totals.itemTaxes();
|
var taxes = self.totals.itemTaxes();
|
||||||
for (var key in taxes) {
|
for (var key in taxes) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user