From 27339dbfa03f39d1dabdc9514e2aff20aa4f63b1 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 19 Oct 2014 18:06:20 +0300 Subject: [PATCH] Added tax percent to PDF --- public/built.js | 3 ++- public/js/script.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/built.js b/public/built.js index 136e1f8d2a69..0218d67cdc81 100644 --- a/public/built.js +++ b/public/built.js @@ -46705,7 +46705,6 @@ function concatStrings() { 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) { var numLines = 0; var origY = y; @@ -46756,6 +46755,8 @@ function displayGrid(doc, invoice, data, x, y, layout, options) { if (key.substring(0, 6) === 'custom') { key = invoice.account[key]; + } else if (key === 'tax') { + key = invoiceLabels[key] + ' ' + invoice.tax_amount + '%'; } else { key = invoiceLabels[key]; } diff --git a/public/js/script.js b/public/js/script.js index 4498a9421665..32db83ad11b5 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -780,7 +780,6 @@ function concatStrings() { 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) { var numLines = 0; var origY = y; @@ -831,6 +830,8 @@ function displayGrid(doc, invoice, data, x, y, layout, options) { if (key.substring(0, 6) === 'custom') { key = invoice.account[key]; + } else if (key === 'tax') { + key = invoiceLabels[key] + ' ' + invoice.tax_amount + '%'; } else { key = invoiceLabels[key]; }