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