X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep202.php;h=fbb803dbf08f5f468bb82cae7ed8829895144f32;hb=5dec41f0d87e407e1c9ffcb8eb63b92e4e471a9b;hp=b193f5c7755fba5837d62b9bff6c3a5e90fa88c5;hpb=f50187b9c3095886d7fd847f635cd8763109a75e;p=fa-stable.git diff --git a/reporting/rep202.php b/reporting/rep202.php index b193f5c7..fbb803db 100644 --- a/reporting/rep202.php +++ b/reporting/rep202.php @@ -25,7 +25,6 @@ include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------------------------- -// trial_inquiry_controls(); print_aged_supplier_analysis(); //---------------------------------------------------------------------------------------------------- @@ -78,15 +77,9 @@ function print_aged_supplier_analysis() $comments = $_POST['PARAM_5']; $destination = $_POST['PARAM_6']; if ($destination) - { include_once($path_to_root . "/reporting/includes/excel_report.inc"); - $filename = "AgedSupplierAnalysis.xml"; - } else - { include_once($path_to_root . "/reporting/includes/pdf_report.inc"); - $filename = "AgedSupplierAnalysis.pdf"; - } if ($graphics) { include_once($path_to_root . "/reporting/includes/class.graphic.inc"); @@ -131,7 +124,7 @@ function print_aged_supplier_analysis() if ($convert) $headers[2] = _('currency'); - $rep = new FrontReport(_('Aged Supplier Analysis'), $filename, user_pagesize()); + $rep = new FrontReport(_('Aged Supplier Analysis'), "AgedSupplierAnalysis", user_pagesize()); $rep->Font(); $rep->Info($params, $cols, $headers, $aligns);