From abf14174b79b7aac558c28b9c9e872944724d0f4 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sat, 29 Apr 2017 22:09:10 +0300 Subject: [PATCH] Rounding error #1453 --- resources/views/invoices/knockout.blade.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/views/invoices/knockout.blade.php b/resources/views/invoices/knockout.blade.php index d1a958152465..f60772dbce03 100644 --- a/resources/views/invoices/knockout.blade.php +++ b/resources/views/invoices/knockout.blade.php @@ -473,8 +473,9 @@ function InvoiceModel(data) { total = NINJA.parseFloat(total) + customValue2; } - var taxAmount1 = roundToTwo(total * (parseFloat(self.tax_rate1())/100)); - var taxAmount2 = roundToTwo(total * (parseFloat(self.tax_rate2())/100)); + var taxAmount1 = roundToTwo(total * parseFloat(self.tax_rate1()) / 100); + var taxAmount2 = roundToTwo(total * parseFloat(self.tax_rate2()) / 100); + total = NINJA.parseFloat(total) + taxAmount1 + taxAmount2; total = roundToTwo(total);