mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
round GDD values in balance object
This commit is contained in:
parent
feb89cf4e0
commit
633eef7c16
@ -66,9 +66,9 @@ export class BalanceResolver {
|
||||
)
|
||||
|
||||
return new Balance({
|
||||
balance: calculatedDecay.balance,
|
||||
decay: calculatedDecay.decay,
|
||||
lastBookedBalance: lastTransaction.balance,
|
||||
balance: calculatedDecay.balance.toDecimalPlaces(2, Decimal.ROUND_DOWN), // round towards zero
|
||||
decay: calculatedDecay.decay.toDecimalPlaces(2, Decimal.ROUND_FLOOR), // round towards - infinity
|
||||
lastBookedBalance: lastTransaction.balance.toDecimalPlaces(2, Decimal.ROUND_DOWN),
|
||||
balanceGDT,
|
||||
count,
|
||||
linkCount,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user