X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep701.php;h=5c7c829e0c5231f8815745bdcd87a9d2e49c826d;hb=1571869d54be48452fdbe08f25130972ff0a7b5a;hp=2bfffade74b2ee4bb6ff385933db231422bb5263;hpb=1528943cad0e936781649f1dee6f7b778618eb60;p=fa-stable.git diff --git a/reporting/rep701.php b/reporting/rep701.php index 2bfffade..5c7c829e 100644 --- a/reporting/rep701.php +++ b/reporting/rep701.php @@ -96,12 +96,14 @@ function print_Chart_of_Accounts() $showbalance = $_POST['PARAM_0']; $comments = $_POST['PARAM_1']; - $destination = $_POST['PARAM_2']; + $orientation = $_POST['PARAM_2']; + $destination = $_POST['PARAM_3']; 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 = 0; $cols = array(0, 50, 300, 425, 500); @@ -112,7 +114,9 @@ function print_Chart_of_Accounts() $params = array(0 => $comments); - $rep = new FrontReport(_('Chart of Accounts'), "ChartOfAccounts", user_pagesize()); + $rep = new FrontReport(_('Chart of Accounts'), "ChartOfAccounts", user_pagesize(), 9, $orientation); + if ($orientation == 'L') + recalculate_cols($cols); $rep->Font(); $rep->Info($params, $cols, $headers, $aligns);