This commit is contained in:
Ulf Gebhardt 2022-02-21 12:08:37 +01:00
parent ea3ecbc679
commit 314a1b1ed4
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -285,6 +285,7 @@ export class TransactionResolver {
if (balanceEntity) {
const now = new Date()
transactionList.balance = roundFloorFrom4(balanceEntity.amount)
// TODO: Add a decay object here instead of static data representing the decay.
transactionList.decay = roundFloorFrom4(
calculateDecay(balanceEntity.amount, balanceEntity.recordDate, now).balance,
)