From: Joe Hunt Date: Sat, 18 Aug 2018 06:28:38 +0000 (+0200) Subject: Redundant sql sentences in Report Filters. X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=9f832e8ab3c679ab67e5d086a99774dac58e004a Redundant sql sentences in Report Filters. --- diff --git a/reporting/includes/reports_classes.inc b/reporting/includes/reports_classes.inc index 96134f95..1b9694d3 100644 --- a/reporting/includes/reports_classes.inc +++ b/reporting/includes/reports_classes.inc @@ -299,7 +299,6 @@ class BoxReports case 'CUSTOMERS_NO_FILTER': case 'CUSTOMERS': - $sql = "SELECT debtor_no, name FROM ".TB_PREF."debtors_master"; if ($type == 'CUSTOMERS_NO_FILTER') return customer_list($name, null, _("No Customer Filter")); else @@ -307,7 +306,6 @@ class BoxReports case 'SUPPLIERS_NO_FILTER': case 'SUPPLIERS': - $sql = "SELECT supplier_id, supp_name FROM ".TB_PREF."suppliers"; if ($type == 'SUPPLIERS_NO_FILTER') return supplier_list($name, null, _("No Supplier Filter")); else