X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=reporting%2Frep202.php;fp=reporting%2Frep202.php;h=7ba8b0d7733ad3d5dcc53d1d3d36789af5ba74b6;hb=40da959b32eb27fcb0422207a284eed13cc27d7e;hp=6bbf6d92c02fb1f53f13d0a559bfe49a6b373b88;hpb=bd9f5ffaa36f9bbd54498bc9ae264fe53b0a86ba;p=fa-stable.git diff --git a/reporting/rep202.php b/reporting/rep202.php index 6bbf6d92..7ba8b0d7 100644 --- a/reporting/rep202.php +++ b/reporting/rep202.php @@ -82,12 +82,14 @@ function print_aged_supplier_analysis() $no_zeros = $_POST['PARAM_5']; $graphics = $_POST['PARAM_6']; $comments = $_POST['PARAM_7']; - $destination = $_POST['PARAM_8']; + $orientation = $_POST['PARAM_8']; + $destination = $_POST['PARAM_9']; 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 ($graphics) { include_once($path_to_root . "/reporting/includes/class.graphic.inc"); @@ -140,7 +142,9 @@ function print_aged_supplier_analysis() if ($convert) $headers[2] = _('currency'); - $rep = new FrontReport(_('Aged Supplier Analysis'), "AgedSupplierAnalysis", user_pagesize()); + $rep = new FrontReport(_('Aged Supplier Analysis'), "AgedSupplierAnalysis", user_pagesize(), 9, $orientation); + if ($orientation == 'L') + recalculate_cols($cols); $rep->Font(); $rep->Info($params, $cols, $headers, $aligns);