Updating balance
This commit is contained in:
parent
786b849c8f
commit
c0e9db7234
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue