Show pending recurring invoices
This commit is contained in:
parent
552e3d3cd8
commit
eb0d17015d
|
|
@ -800,7 +800,8 @@ abstract class InvoiceEntity extends Object
|
|||
|
||||
double get requestedAmount => partial > 0 ? partial : amount;
|
||||
|
||||
bool get isRunning => isRecurring && statusId == kRecurringInvoiceStatusActive;
|
||||
bool get isRunning =>
|
||||
isRecurring && statusId == kRecurringInvoiceStatusActive;
|
||||
|
||||
bool get isSent => statusId != kInvoiceStatusDraft;
|
||||
|
||||
|
|
@ -827,6 +828,12 @@ abstract class InvoiceEntity extends Object
|
|||
return kInvoiceStatusPastDue;
|
||||
}
|
||||
|
||||
if (isRecurring &&
|
||||
statusId == kRecurringInvoiceStatusActive &&
|
||||
(lastSentDate ?? '').isEmpty) {
|
||||
return kRecurringInvoiceStatusPending;
|
||||
}
|
||||
|
||||
/*
|
||||
if (subEntityType == EntityType.quote && (invoiceId ?? '').isNotEmpty) {
|
||||
return kQuoteStatusApproved;
|
||||
|
|
|
|||
Loading…
Reference in New Issue