Added reference storage.
[fa-stable.git] / reporting / rep106.php
index 1b891f4535f85cc099dcfb67bf7fae5fb055a916..aa3a83f7c49f8b4d5c8d8b1bb8d7145c2be87ceb 100644 (file)
@@ -26,7 +26,6 @@ include_once($path_to_root . "/inventory/includes/db/items_category_db.inc");
 
 //----------------------------------------------------------------------------------------------------
 
-// trial_inquiry_controls();
 print_salesman_list();
 
 //----------------------------------------------------------------------------------------------------
@@ -66,22 +65,16 @@ 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");
        else
                $sum = _("Yes");
 
-       $dec = user_qty_dec();
+       $dec = user_price_dec();
 
        $cols = array(0, 60, 150, 220, 325,     385, 450, 515);
 
@@ -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);