From 98bad586e256a0d8a1b82aede8ddbe1f307476d8 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 11 Dec 2016 21:45:40 +0200 Subject: [PATCH] Fix for rounding subtotal value --- resources/lang/en/texts.php | 2 +- resources/views/invoices/knockout.blade.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 7548754ca434..001978dbec14 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -348,7 +348,7 @@ $LANG = array( 'invoice_fields' => 'Invoice Fields', 'invoice_options' => 'Invoice Options', 'hide_quantity' => 'Hide Quantity', - 'hide_quantity_help' => 'If your line items quantities are always 1, then you can declutter invoices by no longer displaying this field.', + 'hide_quantity_help' => 'Disable the quantities column, then you can declutter invoices by no longer displaying this field.', 'hide_paid_to_date' => 'Hide Paid to Date', 'hide_paid_to_date_help' => 'Only display the "Paid to Date" area on your invoices once a payment has been received.', 'charge_taxes' => 'Charge taxes', diff --git a/resources/views/invoices/knockout.blade.php b/resources/views/invoices/knockout.blade.php index f0da49228aac..978fda7b096e 100644 --- a/resources/views/invoices/knockout.blade.php +++ b/resources/views/invoices/knockout.blade.php @@ -314,6 +314,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; });