From: Joe Hunt Date: Wed, 12 May 2021 15:25:53 +0000 (+0200) Subject: Rerun Feature 5388: Print Invoices (documents) list gets too long. Fixed by default... X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=d93b5b3fa9986a43fc0d458e4a865894b84b9fa3 Rerun Feature 5388: Print Invoices (documents) list gets too long. Fixed by default 180 days in company setup. --- diff --git a/reporting/includes/reports_classes.inc b/reporting/includes/reports_classes.inc index 38973243..c96378f7 100644 --- a/reporting/includes/reports_classes.inc +++ b/reporting/includes/reports_classes.inc @@ -170,7 +170,9 @@ class BoxReports { global $path_to_root, $SysPrefs, $type_shortcuts; - $day_range = (isset($SysPrefs->max_days_in_docs) ? $SysPrefs->max_days_in_docs : 180); + $day_range = get_company_pref("max_days_in_docs"); + if (!$day_range) + $day_range = 180; $st = ''; switch ($type) {