mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
fix #174 - Tax rate error in live PDF
This commit is contained in:
parent
76e9f107e7
commit
001208e345
@ -46755,8 +46755,9 @@ function displayGrid(doc, invoice, data, x, y, layout, options) {
|
|||||||
|
|
||||||
if (key.substring(0, 6) === 'custom') {
|
if (key.substring(0, 6) === 'custom') {
|
||||||
key = invoice.account[key];
|
key = invoice.account[key];
|
||||||
} else if (key === 'tax') {
|
} else if (key === 'tax' && invoice.tax_rate) {
|
||||||
key = invoiceLabels[key] + ' ' + invoice.tax_amount + '%';
|
console.log(invoice);
|
||||||
|
key = invoiceLabels[key] + ' ' + (invoice.tax_rate*1).toString() + '%';
|
||||||
} else {
|
} else {
|
||||||
key = invoiceLabels[key];
|
key = invoiceLabels[key];
|
||||||
}
|
}
|
||||||
|
@ -830,8 +830,8 @@ function displayGrid(doc, invoice, data, x, y, layout, options) {
|
|||||||
|
|
||||||
if (key.substring(0, 6) === 'custom') {
|
if (key.substring(0, 6) === 'custom') {
|
||||||
key = invoice.account[key];
|
key = invoice.account[key];
|
||||||
} else if (key === 'tax') {
|
} else if (key === 'tax' && invoice.tax_rate) {
|
||||||
key = invoiceLabels[key] + ' ' + invoice.tax_amount + '%';
|
key = invoiceLabels[key] + ' ' + (invoice.tax_rate*1).toString() + '%';
|
||||||
} else {
|
} else {
|
||||||
key = invoiceLabels[key];
|
key = invoiceLabels[key];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user