From 339f50270f94fd0b5524164b0a6b7030b8bcd99f Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 4 Feb 2014 09:15:11 +0200 Subject: [PATCH] bug fixes --- public/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/script.js b/public/js/script.js index 8c6c4d49d0..9b5c182746 100755 --- a/public/js/script.js +++ b/public/js/script.js @@ -162,7 +162,7 @@ function generatePDF(invoice, checkMath) { tax = parseFloat(item.tax_rate); } - var lineTotal = item.cost * item.qty; + var lineTotal = NINJA.parseFloat(item.cost) * NINJA.parseFloat(item.qty); if (tax) { lineTotal += lineTotal * tax / 100; }