Fixed that for credit card accounts retrieving balance may not be supported, but balance may gets retrieved in another way (like with transactions), then doAccountsSupportRetrievingBalance() now returns true anyway

This commit is contained in:
dankito 2020-09-23 04:14:47 +02:00
parent e0dbd00634
commit 94dd1aaff8
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ open class BankingPresenter(
get() = doAccountsSupportRetrievingBalance(selectedAccounts)
open fun doAccountsSupportRetrievingBalance(accounts: List<TypedBankAccount>): Boolean {
return accounts.firstOrNull { it.supportsRetrievingBalance } != null
return accounts.firstOrNull { it.supportsRetrievingBalance || it.balance != BigDecimal.Zero } != null // for credit card account supportsRetrievingBalance may is false but for these balance may gets retrieved otherwise
}