コード例 #1
0
ファイル: reports_main.php プロジェクト: raqib/ac_dev
$page_security = 'SA_OPEN';
include_once $path_to_root . "/includes/session.inc";
include_once $path_to_root . "/includes/date_functions.inc";
include_once $path_to_root . "/includes/data_checks.inc";
include_once $path_to_root . "/includes/ui.inc";
include_once $path_to_root . "/reporting/includes/reports_classes.inc";
$js = "";
if ($use_date_picker) {
    $js .= get_js_date_picker();
}
add_js_file('reports.js');
page(_($help_context = "Reports and Analysis"), false, false, "", $js);
$reports = new BoxReports();
$dim = get_company_pref('use_dimension');
$reports->addReportClass(_('Customer'), RC_CUSTOMER);
$reports->addReport(RC_CUSTOMER, 101, _('Customer &Balances'), array(_('Start Date') => 'DATEBEGIN', _('End Date') => 'DATEENDM', _('Customer') => 'CUSTOMERS_NO_FILTER', _('Currency Filter') => 'CURRENCY', _('Suppress Zeros') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 115, _('Print '), array(_('Start Date') => 'DATEBEGIN', _('End Date') => 'DATEENDM', _('Customer') => 'CUSTOMERS_NO_FILTER', _('Currency Filter') => 'CURRENCY', _('Suppress Zeros') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 102, _('&Aged Customer Analysis'), array(_('End Date') => 'DATE', _('Customer') => 'CUSTOMERS_NO_FILTER', _('Currency Filter') => 'CURRENCY', _('Show Also Allocated') => 'YES_NO', _('Summary Only') => 'YES_NO', _('Suppress Zeros') => 'YES_NO', _('Graphics') => 'GRAPHIC', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 103, _('Customer &Detail Listing'), array(_('Activity Since') => 'DATEBEGIN', _('Sales Areas') => 'AREAS', _('Sales Folk') => 'SALESMEN', _('Activity Greater Than') => 'TEXT', _('Activity Less Than') => 'TEXT', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 114, _('Sales &Summary Report'), array(_('Start Date') => 'DATEBEGINTAX', _('End Date') => 'DATEENDTAX', _('Tax Id Only') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 104, _('&Price Listing'), array(_('Currency Filter') => 'CURRENCY', _('Inventory Category') => 'CATEGORIES', _('Sales Types') => 'SALESTYPES', _('Show Pictures') => 'YES_NO', _('Show GP %') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 105, _('&Order Status Listing'), array(_('Start Date') => 'DATEBEGINM', _('End Date') => 'DATEENDM', _('Inventory Category') => 'CATEGORIES', _('Stock Location') => 'LOCATIONS', _('Back Orders Only') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 106, _('&Salesman Listing'), array(_('Start Date') => 'DATEBEGINM', _('End Date') => 'DATEENDM', _('Summary Only') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION', _('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 107, _('Print &Invoices'), array(_('From') => 'INVOICE', _('To') => 'INVOICE', _('Currency Filter') => 'CURRENCY', _('email Customers') => 'YES_NO', _('Payment Link') => 'PAYMENT_LINK', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION'));
$reports->addReport(RC_CUSTOMER, 113, _('Print &Credit Notes'), array(_('From') => 'CREDIT', _('To') => 'CREDIT', _('Currency Filter') => 'CURRENCY', _('email Customers') => 'YES_NO', _('Payment Link') => 'PAYMENT_LINK', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION'));
$reports->addReport(RC_CUSTOMER, 110, _('Print &Deliveries'), array(_('From') => 'DELIVERY', _('To') => 'DELIVERY', _('email Customers') => 'YES_NO', _('Print as Packing Slip') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION'));
$reports->addReport(RC_CUSTOMER, 108, _('Print &Statements'), array(_('Customer') => 'CUSTOMERS_NO_FILTER', _('Currency Filter') => 'CURRENCY', _('Show Also Allocated') => 'YES_NO', _('Email Customers') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION'));
$reports->addReport(RC_CUSTOMER, 109, _('&Print Sales Orders'), array(_('From') => 'ORDERS', _('To') => 'ORDERS', _('Currency Filter') => 'CURRENCY', _('Email Customers') => 'YES_NO', _('Print as Quote') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION'));
$reports->addReport(RC_CUSTOMER, 111, _('&Print Sales Quotations'), array(_('From') => 'QUOTATIONS', _('To') => 'QUOTATIONS', _('Currency Filter') => 'CURRENCY', _('Email Customers') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION'));
$reports->addReport(RC_CUSTOMER, 112, _('Print Receipts'), array(_('From') => 'RECEIPT', _('To') => 'RECEIPT', _('Currency Filter') => 'CURRENCY', _('Comments') => 'TEXTBOX', _('Orientation') => 'ORIENTATION'));
$reports->addReportClass(_('Supplier'), RC_SUPPLIER);
コード例 #2
0
ファイル: reports_main.php プロジェクト: ravenii/guardocs
$path_to_root = "..";
$page_security = 5;
include_once $path_to_root . "/includes/session.inc";
include_once $path_to_root . "/includes/date_functions.inc";
include_once $path_to_root . "/includes/data_checks.inc";
include_once $path_to_root . "/includes/ui.inc";
include_once $path_to_root . "/reporting/includes/reports_classes.inc";
$js = "";
if ($use_date_picker) {
    $js .= get_js_date_picker();
}
page(tr("Reports and Analysis"), false, false, "", $js);
$reports = new BoxReports();
$dim = get_company_pref('use_dimension');
$reports->addReportClass(tr('Customer'));
$reports->addReport(tr('Customer'), 101, tr('Customer Balances'), array(new ReportParam(tr('End Date'), 'DATE'), new ReportParam(tr('Customer'), 'CUSTOMERS_NO_FILTER'), new ReportParam(tr('Currency Filter'), 'CURRENCY'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReport(tr('Customer'), 102, tr('Aged Customer Analysis'), array(new ReportParam(tr('End Date'), 'DATE'), new ReportParam(tr('Customer'), 'CUSTOMERS_NO_FILTER'), new ReportParam(tr('Currency Filter'), 'CURRENCY'), new ReportParam(tr('Summary Only'), 'YES_NO'), new ReportParam(tr('Graphics'), 'GRAPHIC'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReport(tr('Customer'), 103, tr('Customer Detail Listing'), array(new ReportParam(tr('Activity Since'), 'DATEBEGIN'), new ReportParam(tr('Sales Areas'), 'AREAS'), new ReportParam(tr('Sales Folk'), 'SALESMEN'), new ReportParam(tr('Activity Greater Than'), 'TEXT'), new ReportParam(tr('Activity Less Than'), 'TEXT'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReport(tr('Customer'), 104, tr('Price Listing'), array(new ReportParam(tr('Inventory Category'), 'CATEGORIES'), new ReportParam(tr('Sales Types'), 'SALESTYPES'), new ReportParam(tr('Show Pictures'), 'YES_NO'), new ReportParam(tr('Show GP %'), 'YES_NO'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReport(tr('Customer'), 105, tr('Order Status Listing'), array(new ReportParam(tr('Start Date'), 'DATEBEGINM'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('Inventory Category'), 'CATEGORIES'), new ReportParam(tr('Stock Location'), 'LOCATIONS'), new ReportParam(tr('Back Orders Only'), 'YES_NO'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReport(tr('Customer'), 106, tr('Salesman Listing'), array(new ReportParam(tr('Start Date'), 'DATEBEGINM'), new ReportParam(tr('End Date'), 'DATEENDM'), new ReportParam(tr('Summary Only'), 'YES_NO'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReport(tr('Customer'), 107, tr('Print Invoices/Credit Notes'), array(new ReportParam(tr('From'), 'INVOICE'), new ReportParam(tr('To'), 'INVOICE'), new ReportParam(tr('Currency Filter'), 'CURRENCY'), new ReportParam(tr('Bank Account'), 'BANK_ACCOUNTS'), new ReportParam(tr('email Customers'), 'YES_NO'), new ReportParam(tr('Payment Link'), 'PAYMENT_LINK'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReport(tr('Customer'), 110, tr('Print Deliveries'), array(new ReportParam(tr('From'), 'DELIVERY'), new ReportParam(tr('To'), 'DELIVERY'), new ReportParam(tr('email Customers'), 'YES_NO'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReport(tr('Customer'), 108, tr('Print Statements'), array(new ReportParam(tr('Customer'), 'CUSTOMERS_NO_FILTER'), new ReportParam(tr('Currency Filter'), 'CURRENCY'), new ReportParam(tr('Bank Account'), 'BANK_ACCOUNTS'), new ReportParam(tr('Email Customers'), 'YES_NO'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReport(tr('Customer'), 109, tr('Print Sales Orders'), array(new ReportParam(tr('From'), 'ORDERS'), new ReportParam(tr('To'), 'ORDERS'), new ReportParam(tr('Currency Filter'), 'CURRENCY'), new ReportParam(tr('Bank Account'), 'BANK_ACCOUNTS'), new ReportParam(tr('Email Customers'), 'YES_NO'), new ReportParam(tr('Print as Quote'), 'YES_NO'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReportClass(tr('Supplier'));
$reports->addReport(tr('Supplier'), 201, tr('Supplier Balances'), array(new ReportParam(tr('End Date'), 'DATE'), new ReportParam(tr('Supplier'), 'SUPPLIERS_NO_FILTER'), new ReportParam(tr('Currency Filter'), 'CURRENCY'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReport(tr('Supplier'), 202, tr('Aged Supplier Analyses'), array(new ReportParam(tr('End Date'), 'DATE'), new ReportParam(tr('Supplier'), 'SUPPLIERS_NO_FILTER'), new ReportParam(tr('Currency Filter'), 'CURRENCY'), new ReportParam(tr('Summary Only'), 'YES_NO'), new ReportParam(tr('Graphics'), 'GRAPHIC'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReport(tr('Supplier'), 203, tr('Payment Report'), array(new ReportParam(tr('End Date'), 'DATE'), new ReportParam(tr('Supplier'), 'SUPPLIERS_NO_FILTER'), new ReportParam(tr('Currency Filter'), 'CURRENCY'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReport(tr('Supplier'), 204, tr('Outstanding GRNs Report'), array(new ReportParam(tr('Supplier'), 'SUPPLIERS_NO_FILTER'), new ReportParam(tr('Comments'), 'TEXTBOX')));
$reports->addReport(tr('Supplier'), 209, tr('Print Purchase Orders'), array(new ReportParam(tr('From'), 'PO'), new ReportParam(tr('To'), 'PO'), new ReportParam(tr('Currency Filter'), 'CURRENCY'), new ReportParam(tr('Bank Account'), 'BANK_ACCOUNTS'), new ReportParam(tr('Email Customers'), 'YES_NO'), new ReportParam(tr('Comments'), 'TEXTBOX')));