From ea5460d91bad2aa5b09012f9c6ac6ea1678e81e3 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 11 Dec 2016 21:46:00 +0200 Subject: [PATCH] Fix for rounding subtotal value --- resources/views/invoices/knockout.blade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/views/invoices/knockout.blade.php b/resources/views/invoices/knockout.blade.php index a3ce21249355..b7f90bc08e5a 100644 --- a/resources/views/invoices/knockout.blade.php +++ b/resources/views/invoices/knockout.blade.php @@ -313,6 +313,7 @@ function InvoiceModel(data) { for(var p=0; p < self.invoice_items().length; ++p) { var item = self.invoice_items()[p]; total += item.totals.rawTotal(); + total = roundToTwo(total); } return total; });