mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
update/remove comments
This commit is contained in:
parent
0da6cc6298
commit
324de93814
@ -29,7 +29,7 @@ export class Transaction {
|
||||
this.decay = new Decay({
|
||||
balance: transaction.balance.toDecimalPlaces(2, Decimal.ROUND_DOWN),
|
||||
decay: transaction.decay.toDecimalPlaces(2, Decimal.ROUND_FLOOR),
|
||||
// TODO
|
||||
// TODO: add correct value when decay must be rounded in transaction context
|
||||
roundedDecay: new Decimal(0),
|
||||
start: transaction.decayStart,
|
||||
end: transaction.balanceDate,
|
||||
|
||||
@ -68,7 +68,7 @@ const virtualDecayTransaction = (
|
||||
userId: -1,
|
||||
previous: -1,
|
||||
typeId: TransactionTypeId.DECAY,
|
||||
amount: decay.decay ? decay.roundedDecay : new Decimal(0), // this kinda is wrong, but helps with the frontend query
|
||||
amount: decay.decay ? decay.roundedDecay : new Decimal(0),
|
||||
balance: decay.balance
|
||||
.minus(holdAvailabeAmount.toString())
|
||||
.toDecimalPlaces(2, Decimal.ROUND_DOWN),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user