Fix for rounding subtotal value

This commit is contained in:
Hillel Coren 2016-12-11 21:46:00 +02:00
parent 31a09483e3
commit ea5460d91b

View File

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