From e16900ef11b1e362fa216b32cc824a06a91d77d6 Mon Sep 17 00:00:00 2001 From: "Dominik \"kuberninski\" Kaminski" Date: Sat, 2 May 2020 17:31:19 +0200 Subject: [PATCH] Fix wrong tax calculation Tax calculation is wrong in pdf when 'inclusive_taxes' is enabled. This fixes #3668 --- resources/assets/js/pdf.pdfmake.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/pdf.pdfmake.js b/resources/assets/js/pdf.pdfmake.js index 16f18f958478..1788b9ca9cc8 100644 --- a/resources/assets/js/pdf.pdfmake.js +++ b/resources/assets/js/pdf.pdfmake.js @@ -955,7 +955,7 @@ NINJA.invoiceLines = function(invoice, isSecondTable) { } } - if (account.include_item_taxes_inline == '1') { + if (account.include_item_taxes_inline == '1' && account.inclusive_taxes != '1') { var taxAmount1 = 0; var taxAmount2 = 0; if (tax1) {