Filter transactions if account is not active
This commit is contained in:
parent
ce13a35635
commit
30f4110d92
|
|
@ -99,6 +99,13 @@ List<String> filteredTransactionsSelector(
|
|||
return true;
|
||||
}
|
||||
|
||||
final bankAccount =
|
||||
bankAccountMap[transaction.bankAccountId] ?? BankAccountEntity();
|
||||
if (!bankAccount.isActive &&
|
||||
!bankAccount.matchesEntityFilter(filterEntityType, filterEntityId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (filterEntityType != null) {
|
||||
if (filterEntityType == EntityType.expenseCategory &&
|
||||
transaction.categoryId != filterEntityId) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue