Show invoice's related quote
This commit is contained in:
parent
1b983f5126
commit
fc25534b64
|
|
@ -105,6 +105,10 @@ class EntityType extends EnumClass {
|
|||
return [
|
||||
EntityType.payment,
|
||||
];
|
||||
case EntityType.quote:
|
||||
return [
|
||||
EntityType.invoice,
|
||||
];
|
||||
case EntityType.recurringInvoice:
|
||||
return [
|
||||
EntityType.invoice,
|
||||
|
|
|
|||
|
|
@ -147,6 +147,9 @@ List<String> filteredInvoicesSelector(
|
|||
} else if (filterEntityType == EntityType.project &&
|
||||
invoice.projectId != filterEntityId) {
|
||||
return false;
|
||||
} else if (filterEntityType == EntityType.quote &&
|
||||
invoice.invoiceId != filterEntityId) {
|
||||
return false;
|
||||
} else if (filterEntityType == EntityType.payment) {
|
||||
bool isMatch = false;
|
||||
(invoicePaymentMap[invoiceId] ?? []).forEach((paymentId) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue