X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep102.php;h=dfe445705748471138d744b8ccb1648e151fa7c2;hb=eb5b2d3ee7cc0fca5ec63dfada65ecf23b693e85;hp=797f9bc70a066f3b55d063e3d9243e3d84826802;hpb=f50187b9c3095886d7fd847f635cd8763109a75e;p=fa-stable.git diff --git a/reporting/rep102.php b/reporting/rep102.php index 797f9bc7..dfe44570 100644 --- a/reporting/rep102.php +++ b/reporting/rep102.php @@ -76,15 +76,9 @@ function print_aged_customer_analysis() $comments = $_POST['PARAM_5']; $destination = $_POST['PARAM_6']; if ($destination) - { include_once($path_to_root . "/reporting/includes/excel_report.inc"); - $filename = "AgedCustomerAnalysis.xml"; - } else - { include_once($path_to_root . "/reporting/includes/pdf_report.inc"); - $filename = "AgedCustomerAnalysis.pdf"; - } if ($graphics) { include_once($path_to_root . "/reporting/includes/class.graphic.inc"); @@ -129,7 +123,7 @@ function print_aged_customer_analysis() if ($convert) $headers[2] = _('Currency'); - $rep = new FrontReport(_('Aged Customer Analysis'), $filename, user_pagesize()); + $rep = new FrontReport(_('Aged Customer Analysis'), "AgedCustomerAnalysis", user_pagesize()); $rep->Font(); $rep->Info($params, $cols, $headers, $aligns);