Updating balance

This commit is contained in:
dankito 2024-10-04 06:33:13 +02:00
parent 786b849c8f
commit c0e9db7234
1 changed files with 4 additions and 1 deletions

View File

@ -109,7 +109,10 @@ open class FinTs4kMapper {
account.retrievedTransactionsFrom = finTsBankAccount.retrievedTransactionsFrom account.retrievedTransactionsFrom = finTsBankAccount.retrievedTransactionsFrom
} }
Response.success(GetTransactionsResponse(account, mapMoney(finTsBankAccount.balance), mapBookedTransactions(finTsBankAccount), emptyList(), val balance = mapMoney(finTsBankAccount.balance)
account.balance = balance
Response.success(GetTransactionsResponse(account, balance, mapBookedTransactions(finTsBankAccount), emptyList(),
mapHoldings(finTsBankAccount.statementOfHoldings, finTsBankAccount.currency, finTsBankAccount.lastAccountUpdateTime), mapHoldings(finTsBankAccount.statementOfHoldings, finTsBankAccount.currency, finTsBankAccount.lastAccountUpdateTime),
finTsBankAccount.lastAccountUpdateTime ?: Clock.System.now(), param.retrieveTransactionsFrom, param.retrieveTransactionsTo)) finTsBankAccount.lastAccountUpdateTime ?: Clock.System.now(), param.retrieveTransactionsFrom, param.retrieveTransactionsTo))
} else { } else {