X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep302.php;h=fc600e965739f212f06a5e1522d8cedccdf3a3aa;hb=8429c2d2e1500cd879e084335391615e79fc3da3;hp=41bc978cca648f01cc63f04a199b34f18dea5dc5;hpb=f50187b9c3095886d7fd847f635cd8763109a75e;p=fa-stable.git diff --git a/reporting/rep302.php b/reporting/rep302.php index 41bc978c..fc600e96 100644 --- a/reporting/rep302.php +++ b/reporting/rep302.php @@ -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);