mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Added tax percent to PDF
This commit is contained in:
parent
c879293b14
commit
27339dbfa0
@ -46705,7 +46705,6 @@ function concatStrings() {
|
|||||||
return data.length ? concatStr : false;
|
return data.length ? concatStr : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//function displayGrid(doc, invoice, data, x, y, layout, hasheader, rightAlignX, rightAlignTitleX) {
|
|
||||||
function displayGrid(doc, invoice, data, x, y, layout, options) {
|
function displayGrid(doc, invoice, data, x, y, layout, options) {
|
||||||
var numLines = 0;
|
var numLines = 0;
|
||||||
var origY = y;
|
var origY = y;
|
||||||
@ -46756,6 +46755,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') {
|
||||||
|
key = invoiceLabels[key] + ' ' + invoice.tax_amount + '%';
|
||||||
} else {
|
} else {
|
||||||
key = invoiceLabels[key];
|
key = invoiceLabels[key];
|
||||||
}
|
}
|
||||||
|
@ -780,7 +780,6 @@ function concatStrings() {
|
|||||||
return data.length ? concatStr : false;
|
return data.length ? concatStr : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//function displayGrid(doc, invoice, data, x, y, layout, hasheader, rightAlignX, rightAlignTitleX) {
|
|
||||||
function displayGrid(doc, invoice, data, x, y, layout, options) {
|
function displayGrid(doc, invoice, data, x, y, layout, options) {
|
||||||
var numLines = 0;
|
var numLines = 0;
|
||||||
var origY = y;
|
var origY = y;
|
||||||
@ -831,6 +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') {
|
||||||
|
key = invoiceLabels[key] + ' ' + invoice.tax_amount + '%';
|
||||||
} else {
|
} else {
|
||||||
key = invoiceLabels[key];
|
key = invoiceLabels[key];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user