fix: round totals

This commit is contained in:
Sebastian Rindom committed 2021-02-27 10:53:20 +01:00
1 parent 999e8053ea
commit a1ba2e8b5c
1 file changed
+1 -4
+1 -4
View File
@@ -328,10 +328,7 @@ class TotalsService extends BaseService {
} }
rounded(value) { rounded(value) {
const decimalPlaces = 4 return Math.round(value)
return Number(
Math.round(parseFloat(value + "e" + decimalPlaces)) + "e-" + decimalPlaces
)
} }
} }