1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Flags for draft documents in reports

This commit is contained in:
David Bomba 2024-07-25 08:15:14 +10:00
parent 6653980067
commit c4df1b5dd7

View File

@ -1039,6 +1039,10 @@ class BaseExport
$recurring_filters = [];
if($this->company->getSetting('report_include_drafts')){
$recurring_filters[] = RecurringInvoice::STATUS_DRAFT;
}
if (in_array('active', $status_parameters)) {
$recurring_filters[] = RecurringInvoice::STATUS_ACTIVE;
}