X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep601.php;h=56a53c353ae2c9047aa0d0e2bf8ee6cba809a5b2;hb=03dbf580a48b9831dfb6fcbf8c34e1315c26a99e;hp=4690ac615981c8d97287a28cbb8798abf1f99274;hpb=2109927b5e0f11694e425a3a40ddd78b91478e5f;p=fa-stable.git diff --git a/reporting/rep601.php b/reporting/rep601.php index 4690ac61..56a53c35 100644 --- a/reporting/rep601.php +++ b/reporting/rep601.php @@ -61,13 +61,15 @@ function print_bank_transactions() $to = $_POST['PARAM_2']; $zero = $_POST['PARAM_3']; $comments = $_POST['PARAM_4']; - $destination = $_POST['PARAM_5']; + $orientation = $_POST['PARAM_5']; + $destination = $_POST['PARAM_6']; if ($destination) include_once($path_to_root . "/reporting/includes/excel_report.inc"); else include_once($path_to_root . "/reporting/includes/pdf_report.inc"); - $rep = new FrontReport(_('Bank Statement'), "BankStatement", user_pagesize()); + $orientation = ($orientation ? 'L' : 'P'); + $rep = new FrontReport(_('Bank Statement'), "BankStatement", user_pagesize(), 9, $orientation); $dec = user_price_dec(); $cols = array(0, 90, 110, 170, 225, 350, 400, 460, 520); @@ -83,6 +85,8 @@ function print_bank_transactions() 1 => array('text' => _('Period'), 'from' => $from, 'to' => $to), 2 => array('text' => _('Bank Account'),'from' => $act,'to' => '')); + if ($orientation == 'L') + recalculate_cols($cols); $rep->Font(); $rep->Info($params, $cols, $headers, $aligns); $rep->NewPage();