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;
|
double get requestedAmount => partial > 0 ? partial : amount;
|
||||||
|
|
||||||
bool get isRunning => isRecurring && statusId == kRecurringInvoiceStatusActive;
|
bool get isRunning =>
|
||||||
|
isRecurring && statusId == kRecurringInvoiceStatusActive;
|
||||||
|
|
||||||
bool get isSent => statusId != kInvoiceStatusDraft;
|
bool get isSent => statusId != kInvoiceStatusDraft;
|
||||||
|
|
||||||
|
|
@ -827,6 +828,12 @@ abstract class InvoiceEntity extends Object
|
||||||
return kInvoiceStatusPastDue;
|
return kInvoiceStatusPastDue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isRecurring &&
|
||||||
|
statusId == kRecurringInvoiceStatusActive &&
|
||||||
|
(lastSentDate ?? '').isEmpty) {
|
||||||
|
return kRecurringInvoiceStatusPending;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (subEntityType == EntityType.quote && (invoiceId ?? '').isNotEmpty) {
|
if (subEntityType == EntityType.quote && (invoiceId ?? '').isNotEmpty) {
|
||||||
return kQuoteStatusApproved;
|
return kQuoteStatusApproved;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue