Subscriptions
This commit is contained in:
parent
0733ac7827
commit
d44fad10bd
|
|
@ -175,6 +175,7 @@ abstract class InvoiceEntity extends Object
|
|||
customSurcharge3: 0,
|
||||
customSurcharge4: 0,
|
||||
filename: '',
|
||||
subscriptionId: '',
|
||||
recurringDates: BuiltList<InvoiceScheduleEntity>(),
|
||||
lineItems: BuiltList<InvoiceItemEntity>(),
|
||||
history: BuiltList<InvoiceHistoryEntity>(),
|
||||
|
|
|
|||
|
|
@ -115,6 +115,9 @@ List<String> filteredInvoicesSelector(
|
|||
} else if (filterEntityType == EntityType.recurringInvoice &&
|
||||
invoice.recurringId != filterEntityId) {
|
||||
return false;
|
||||
} else if (filterEntityType == EntityType.subscription &&
|
||||
invoice.subscriptionId != filterEntityId) {
|
||||
return false;
|
||||
} else if (filterEntityType == EntityType.payment) {
|
||||
bool isMatch = false;
|
||||
(invoicePaymentMap[invoiceId] ?? []).forEach((paymentId) {
|
||||
|
|
|
|||
|
|
@ -56,6 +56,9 @@ List<String> filteredRecurringInvoicesSelector(
|
|||
} else if (filterEntityType == EntityType.user &&
|
||||
invoice.assignedUserId != filterEntityId) {
|
||||
return false;
|
||||
} else if (filterEntityType == EntityType.subscription &&
|
||||
invoice.subscriptionId != filterEntityId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!invoice.matchesStates(invoiceListState.stateFilters)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue