X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep106.php;h=bc3889359764e2428ed19688cd4b290f9f3e0ced;hb=ad96cd0abbfd826592b851b8e0cb6d89e450fdf4;hp=1b891f4535f85cc099dcfb67bf7fae5fb055a916;hpb=f50187b9c3095886d7fd847f635cd8763109a75e;p=fa-stable.git diff --git a/reporting/rep106.php b/reporting/rep106.php index 1b891f45..bc388935 100644 --- a/reporting/rep106.php +++ b/reporting/rep106.php @@ -26,7 +26,6 @@ include_once($path_to_root . "/inventory/includes/db/items_category_db.inc"); //---------------------------------------------------------------------------------------------------- -// trial_inquiry_controls(); print_salesman_list(); //---------------------------------------------------------------------------------------------------- @@ -66,15 +65,9 @@ function print_salesman_list() $comments = $_POST['PARAM_3']; $destination = $_POST['PARAM_4']; if ($destination) - { include_once($path_to_root . "/reporting/includes/excel_report.inc"); - $filename = "SalesmanListing.xml"; - } else - { include_once($path_to_root . "/reporting/includes/pdf_report.inc"); - $filename = "SalesmanListing.pdf"; - } if ($summary == 0) $sum = _("No"); @@ -100,7 +93,7 @@ function print_salesman_list() $cols2 = $cols; $aligns2 = $aligns; - $rep = new FrontReport(_('Salesman Listing'), $filename, user_pagesize()); + $rep = new FrontReport(_('Salesman Listing'), "SalesmanListing", user_pagesize()); $rep->Font(); $rep->Info($params, $cols, $headers, $aligns, $cols2, $headers2, $aligns2);