X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep304.php;h=9febce1c819bb600fc0aa7956a26bdd14708fea3;hb=b4734c926527e55cf43109afa21ee32ac3acdfa0;hp=054a12d613b19c1d90c10d32bf6599151b8d1699;hpb=ecc75c8addbdcfa6683da0ce19661c3b115e3552;p=fa-stable.git diff --git a/reporting/rep304.php b/reporting/rep304.php index 054a12d6..9febce1c 100644 --- a/reporting/rep304.php +++ b/reporting/rep304.php @@ -82,12 +82,14 @@ function print_inventory_sales() $location = $_POST['PARAM_3']; $fromcust = $_POST['PARAM_4']; $comments = $_POST['PARAM_5']; - $destination = $_POST['PARAM_6']; + $orientation = $_POST['PARAM_6']; + $destination = $_POST['PARAM_7']; 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) @@ -121,7 +123,9 @@ function print_inventory_sales() 3 => array('text' => _('Location'), 'from' => $loc, 'to' => ''), 4 => array('text' => _('Customer'), 'from' => $fromc, 'to' => '')); - $rep = new FrontReport(_('Inventory Sales Report'), "InventorySalesReport", user_pagesize()); + $rep = new FrontReport(_('Inventory Sales Report'), "InventorySalesReport", user_pagesize(), 9, $orientation); + if ($orientation == 'L') + recalculate_cols($cols); $rep->Font(); $rep->Info($params, $cols, $headers, $aligns);