fix: round totals
This commit is contained in:
1 parent
999e8053ea
commit
a1ba2e8b5c
1 file changed
+1
-4
@@ -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
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user