Fix for rounding subtotal value

This commit is contained in:
Hillel Coren 2016-12-11 21:45:40 +02:00
parent 7b8798812f
commit 98bad586e2
2 changed files with 2 additions and 1 deletions

View File

@ -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',

View File

@ -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;
});