From c4df1b5dd7841ca33c264bfd58ac30f47eded40c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 25 Jul 2024 08:15:14 +1000 Subject: [PATCH] Flags for draft documents in reports --- app/Export/CSV/BaseExport.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Export/CSV/BaseExport.php b/app/Export/CSV/BaseExport.php index 9dbf186b90b1..efac973651df 100644 --- a/app/Export/CSV/BaseExport.php +++ b/app/Export/CSV/BaseExport.php @@ -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; }