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:
parent
e0dbd00634
commit
94dd1aaff8
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue