fix: round totals

This commit is contained in:
Sebastian Rindom
2021-02-27 10:53:20 +01:00
parent 999e8053ea
commit a1ba2e8b5c

View File

@@ -328,10 +328,7 @@ class TotalsService extends BaseService {
}
rounded(value) {
const decimalPlaces = 4
return Number(
Math.round(parseFloat(value + "e" + decimalPlaces)) + "e-" + decimalPlaces
)
return Math.round(value)
}
}