$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);
+ $cols = array(0, 60, 300, 425, 500);
$headers = array(_('Account'), _('Account Name'), _('Account Code'), _('Balance'));
$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);
$rep->End();
}
-?>
\ No newline at end of file