X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep306.php;h=92eb08fc5819000e4ff154de5cb2fbc231e027d0;hb=18ce16fd14342f897111c66b40295af4d351ef58;hp=44da654b0adccd91611a3992496bec1ec9c0a678;hpb=a439ecdeaf63c85e1441fe12571baf7fcc5e6fcd;p=fa-stable.git diff --git a/reporting/rep306.php b/reporting/rep306.php index 44da654b..92eb08fc 100644 --- a/reporting/rep306.php +++ b/reporting/rep306.php @@ -104,12 +104,14 @@ function print_inventory_purchase() $fromsupp = $_POST['PARAM_4']; $item = $_POST['PARAM_5']; $comments = $_POST['PARAM_6']; - $destination = $_POST['PARAM_7']; + $orientation = $_POST['PARAM_7']; + $destination = $_POST['PARAM_8']; if ($destination) include_once($path_to_root . "/reporting/includes/excel_report.inc"); else include_once($path_to_root . "/reporting/includes/pdf_report.inc"); + $orientation = ($orientation ? 'L' : 'P'); $dec = user_price_dec(); if ($category == ALL_NUMERIC) @@ -149,7 +151,9 @@ function print_inventory_purchase() 4 => array('text' => _('Supplier'), 'from' => $froms, 'to' => ''), 5 => array('text' => _('Item'), 'from' => $itm, 'to' => '')); - $rep = new FrontReport(_('Inventory Purchasing Report'), "InventoryPurchasingReport", user_pagesize()); + $rep = new FrontReport(_('Inventory Purchasing Report'), "InventoryPurchasingReport", user_pagesize(), 9, $orientation); + if ($orientation == 'L') + recalculate_cols($cols); $rep->Font(); $rep->Info($params, $cols, $headers, $aligns);