X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep106.php;h=c8a5538533278bb0ad3273d03b28881915256d8d;hb=40da959b32eb27fcb0422207a284eed13cc27d7e;hp=ca1c84725b1b7a8bc07dabf96f6cf5331c1e92c4;hpb=bd9f5ffaa36f9bbd54498bc9ae264fe53b0a86ba;p=fa-stable.git diff --git a/reporting/rep106.php b/reporting/rep106.php index ca1c8472..c8a55385 100644 --- a/reporting/rep106.php +++ b/reporting/rep106.php @@ -63,11 +63,13 @@ function print_salesman_list() $to = $_POST['PARAM_1']; $summary = $_POST['PARAM_2']; $comments = $_POST['PARAM_3']; - $destination = $_POST['PARAM_4']; + $orientation = $_POST['PARAM_4']; + $destination = $_POST['PARAM_5']; 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'); if ($summary == 0) $sum = _("No"); @@ -90,10 +92,12 @@ function print_salesman_list() 1 => array( 'text' => _('Period'), 'from' => $from, 'to' => $to), 2 => array( 'text' => _('Summary Only'),'from' => $sum,'to' => '')); - $cols2 = $cols; $aligns2 = $aligns; - $rep = new FrontReport(_('Salesman Listing'), "SalesmanListing", user_pagesize()); + $rep = new FrontReport(_('Salesman Listing'), "SalesmanListing", user_pagesize(), 9, $orientation); + if ($orientation == 'L') + recalculate_cols($cols); + $cols2 = $cols; $rep->Font(); $rep->Info($params, $cols, $headers, $aligns, $cols2, $headers2, $aligns2);