Record status edition added.
[fa-stable.git] / reporting / rep302.php
index 41bc978cca648f01cc63f04a199b34f18dea5dc5..fc600e965739f212f06a5e1522d8cedccdf3a3aa 100644 (file)
@@ -26,7 +26,6 @@ include_once($path_to_root . "/inventory/includes/db/items_category_db.inc");
 
 //----------------------------------------------------------------------------------------------------
 
-// trial_inquiry_controls();
 print_inventory_planning();
 
 function getTransactions($category, $location)
@@ -152,15 +151,9 @@ function print_inventory_planning()
     $comments = $_POST['PARAM_2'];
        $destination = $_POST['PARAM_3'];
        if ($destination)
-       {
                include_once($path_to_root . "/reporting/includes/excel_report.inc");
-               $filename = "InventoryPlanning.xml";
-       }       
        else
-       {
                include_once($path_to_root . "/reporting/includes/pdf_report.inc");
-               $filename = "InventoryPlanning.pdf";
-       }
 
        if ($category == reserved_words::get_all_numeric())
                $category = 0;
@@ -194,7 +187,7 @@ function print_inventory_planning()
                                    1 => array('text' => _('Category'), 'from' => $cat, 'to' => ''),
                                    2 => array('text' => _('Location'), 'from' => $loc, 'to' => ''));
 
-    $rep = new FrontReport(_('Inventory Planning Report'), $filename, user_pagesize());
+    $rep = new FrontReport(_('Inventory Planning Report'), "InventoryPlanning", user_pagesize());
 
     $rep->Font();
     $rep->Info($params, $cols, $headers, $aligns);