mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 19:14:40 -04:00
Fix for JS rounding problem
This commit is contained in:
parent
cfb4dc4351
commit
f28e0cd76b
@ -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…
x
Reference in New Issue
Block a user