Settings
This commit is contained in:
parent
ca044740c1
commit
017f14d638
|
|
@ -72,10 +72,6 @@ List<String> filteredInvoicesSelector(
|
|||
}
|
||||
}
|
||||
|
||||
if (invoiceListState.filterEntityId != null) {
|
||||
} else if (!client.isActive) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!invoice.matchesStates(invoiceListState.stateFilters)) {
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -24,12 +24,21 @@ List<String> filteredQuotesSelector(
|
|||
final client =
|
||||
clientMap[quote.clientId] ?? ClientEntity(id: quote.clientId);
|
||||
|
||||
if (quoteListState.filterEntityId != null) {
|
||||
|
||||
if (quoteListState.filterEntityType == EntityType.client) {
|
||||
if (!quoteListState.entityMatchesFilter(client)) {
|
||||
return false;
|
||||
}
|
||||
} else if (!client.isActive) {
|
||||
return false;
|
||||
} else {
|
||||
if (!client.isActive) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (quoteListState.filterEntityType == EntityType.user) {
|
||||
if (!quote.userCanAccess(quoteListState.filterEntityId)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!quote.matchesStates(quoteListState.stateFilters)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue