X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep701.php;h=a110ea215afc007617d489170a214c5c446e739e;hb=314da04d8ef9a6d7f8482aeb069d9cbc3d34724c;hp=2bfffade74b2ee4bb6ff385933db231422bb5263;hpb=264c09696d65efe4532c197f317162daf8c24f32;p=fa-stable.git diff --git a/reporting/rep701.php b/reporting/rep701.php index 2bfffade..a110ea21 100644 --- a/reporting/rep701.php +++ b/reporting/rep701.php @@ -96,13 +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"); - $dec = 0; + $orientation = ($orientation ? 'L' : 'P'); $cols = array(0, 50, 300, 425, 500); @@ -112,7 +113,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); @@ -139,4 +142,3 @@ function print_Chart_of_Accounts() $rep->End(); } -?> \ No newline at end of file