Ejemplo n.º 1
0
$reports->addReportClass(tr('General Ledger'));
$reports->addReport(tr('General Ledger'), 701, tr('Chart of Accounts'), array(new ReportParam(tr('Show Balances'), 'YES_NO'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReport(tr('General Ledger'), 702, tr('List of Journal Entries'), array(new ReportParam(tr('Start Date'), 'DATEBEGINM'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('Type'), 'SYS_TYPES'), new ReportParam(tr('Comments'), 'TEXTBOX')));
//$reports->addReport(tr('General Ledger'),703,tr('GL Account Group Summary'),
//	array(	new ReportParam(tr('Comments'),'TEXTBOX')));
if ($dim == 2) {
    $reports->addReport(tr('General Ledger'), 704, tr('GL Account Transactions'), array(new ReportParam(tr('Start Date'), 'DATEBEGINM'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('From Account'), 'GL_ACCOUNTS'), new ReportParam(tr('To Account'), 'GL_ACCOUNTS'), new ReportParam(tr('Dimension') . " 1", 'DIMENSIONS1'), new ReportParam(tr('Dimension') . " 2", 'DIMENSIONS2'), new ReportParam(tr('Comments'), 'TEXTBOX')));
    $reports->addReport(tr('General Ledger'), 705, tr('Annual Expense Breakdown'), array(new ReportParam(tr('Year'), 'TRANS_YEARS'), new ReportParam(tr('Dimension') . " 1", 'DIMENSIONS1'), new ReportParam(tr('Dimension') . " 2", 'DIMENSIONS2'), new ReportParam(tr('Comments'), 'TEXTBOX')));
    $reports->addReport(tr('General Ledger'), 706, tr('Balance Sheet'), array(new ReportParam(tr('Start Date'), 'DATEBEGIN'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('Dimension') . " 1", 'DIMENSIONS1'), new ReportParam(tr('Dimension') . " 2", 'DIMENSIONS2'), new ReportParam(tr('Graphics'), 'GRAPHIC'), new ReportParam(tr('Comments'), 'TEXTBOX')));
    $reports->addReport(tr('General Ledger'), 707, tr('Profit and Loss Statement'), array(new ReportParam(tr('Start Date'), 'DATEBEGINM'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('Compare to'), 'COMPARE'), new ReportParam(tr('Dimension') . " 1", 'DIMENSIONS1'), new ReportParam(tr('Dimension') . " 2", 'DIMENSIONS2'), new ReportParam(tr('Graphics'), 'GRAPHIC'), new ReportParam(tr('Comments'), 'TEXTBOX')));
    $reports->addReport(tr('General Ledger'), 708, tr('Trial Balance'), array(new ReportParam(tr('Start Date'), 'DATEBEGINM'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('Zero values'), 'YES_NO'), new ReportParam(tr('Dimension') . " 1", 'DIMENSIONS1'), new ReportParam(tr('Dimension') . " 2", 'DIMENSIONS2'), new ReportParam(tr('Comments'), 'TEXTBOX')));
} else {
    if ($dim == 1) {
        $reports->addReport(tr('General Ledger'), 704, tr('GL Account Transactions'), array(new ReportParam(tr('Start Date'), 'DATEBEGINM'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('From Account'), 'GL_ACCOUNTS'), new ReportParam(tr('To Account'), 'GL_ACCOUNTS'), new ReportParam(tr('Dimension'), 'DIMENSIONS1'), new ReportParam(tr('Comments'), 'TEXTBOX')));
        $reports->addReport(tr('General Ledger'), 705, tr('Annual Expense Breakdown'), array(new ReportParam(tr('Year'), 'TRANS_YEARS'), new ReportParam(tr('Dimension'), 'DIMENSIONS1'), new ReportParam(tr('Comments'), 'TEXTBOX')));
        $reports->addReport(tr('General Ledger'), 706, tr('Balance Sheet'), array(new ReportParam(tr('Start Date'), 'DATEBEGIN'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('Dimension'), 'DIMENSIONS1'), new ReportParam(tr('Graphics'), 'GRAPHIC'), new ReportParam(tr('Comments'), 'TEXTBOX')));
        $reports->addReport(tr('General Ledger'), 707, tr('Profit and Loss Statement'), array(new ReportParam(tr('Start Date'), 'DATEBEGINM'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('Compare to'), 'COMPARE'), new ReportParam(tr('Dimension'), 'DIMENSIONS1'), new ReportParam(tr('Graphics'), 'GRAPHIC'), new ReportParam(tr('Comments'), 'TEXTBOX')));
        $reports->addReport(tr('General Ledger'), 708, tr('Trial Balance'), array(new ReportParam(tr('Start Date'), 'DATEBEGINM'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('Zero values'), 'YES_NO'), new ReportParam(tr('Dimension'), 'DIMENSIONS1'), new ReportParam(tr('Comments'), 'TEXTBOX')));
    } else {
        $reports->addReport(tr('General Ledger'), 704, tr('GL Account Transactions'), array(new ReportParam(tr('Start Date'), 'DATEBEGINM'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('From Account'), 'GL_ACCOUNTS'), new ReportParam(tr('To Account'), 'GL_ACCOUNTS'), new ReportParam(tr('Comments'), 'TEXTBOX')));
        $reports->addReport(tr('General Ledger'), 705, tr('Annual Expense Breakdown'), array(new ReportParam(tr('Year'), 'TRANS_YEARS'), new ReportParam(tr('Comments'), 'TEXTBOX')));
        $reports->addReport(tr('General Ledger'), 706, tr('Balance Sheet'), array(new ReportParam(tr('Start Date'), 'DATEBEGIN'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('Graphics'), 'GRAPHIC'), new ReportParam(tr('Comments'), 'TEXTBOX')));
        $reports->addReport(tr('General Ledger'), 707, tr('Profit and Loss Statement'), array(new ReportParam(tr('Start Date'), 'DATEBEGINM'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('Compare to'), 'COMPARE'), new ReportParam(tr('Graphics'), 'GRAPHIC'), new ReportParam(tr('Comments'), 'TEXTBOX')));
        $reports->addReport(tr('General Ledger'), 708, tr('Trial Balance'), array(new ReportParam(tr('Start Date'), 'DATEBEGINM'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('Zero values'), 'YES_NO'), new ReportParam(tr('Comments'), 'TEXTBOX')));
    }
}
$reports->addReport(tr('General Ledger'), 709, tr('Tax Report'), array(new ReportParam(tr('Start Date'), 'DATEBEGINTAX'), new ReportParam(tr('End Date'), 'DATEENDTAX'), new ReportParam(tr('Summary Only'), 'YES_NO'), new ReportParam(tr('Comments'), 'TEXTBOX')));
echo "\n<form method=post>\n\t<input type='hidden' name='REP_ID' value=''>\n\t<input type='hidden' name='PARAM_COUNT' value=''>\n\t<input type='hidden' name='PARAM_0' value=''>\n\t<input type='hidden' name='PARAM_1' value=''>\n\t<input type='hidden' name='PARAM_2' value=''>\n\t<input type='hidden' name='PARAM_3' value=''>\n\t<input type='hidden' name='PARAM_4' value=''>\n\t<input type='hidden' name='PARAM_5' value=''>\n\t<input type='hidden' name='PARAM_6' value=''>\n\n\t<script language='javascript'>\n\t\tfunction onWindowLoad() {\n\t\t\tshowClass(" . $_GET['Class'] . ")\n\t\t}\n\t\twindow.onload=onWindowLoad;\n\t</script>\n";
echo $reports->getDisplay();
echo "</form>";
end_page();