Fix for JS rounding problem
This commit is contained in:
parent
cfb4dc4351
commit
f28e0cd76b
1 changed files with 1 additions and 1 deletions
|
|
@ -460,7 +460,7 @@ function InvoiceModel(data) {
|
|||
});
|
||||
|
||||
self.totals.rawPaidToDate = ko.computed(function() {
|
||||
return accounting.toFixed(self.amount(),2) - accounting.toFixed(self.balance(),2);
|
||||
return roundToTwo(accounting.toFixed(self.amount(),2) - accounting.toFixed(self.balance(),2));
|
||||
});
|
||||
|
||||
self.totals.paidToDate = ko.computed(function() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue