Customizing JasperReports

The POS Server includes a ReportEngine, which allows reports to be created with the tool iReports. The reports are provided by iReport in the format JRXML.

Existing reports can be customized using iReport. To do so, the JRXML files of the report must be copied and renamed in the report directory. These JRXML files can then be customized using iReport. The resulting compiled jasper files (.jasper) must also be saved to the POS Server report directory. The new report can only be used after including it in the report-descriptor.xml.

Configuration file report-descriptor.xml :

<report id="safe-payin" type="safe-payin"/>

The report type (type) corresponds to the JRXML file description, while the defined ReportID (report ID) corresponds to the parameter REPORT_ID of the respective function in the file functions.properties.

Configuration file functions.properties :

# S.01100202516.00 - safe-payin-type
 gkr.function.S.01100202516.00.REPORT_PREVIEW_FUNCTION_ID=S.01200200055.00
gkr.function.S.01100202516.00.REASON_GROUP_CODE=ES
gkr.function.S.01100202516.00.REPORT_ID=safe-payin
gkr.function.S.01100202516.00.SAFE_LOGIN_LEVEL=0
 gkr.function.S.01100202516.00.REFRESH_ACCOUNTING_STATUS_INTERVAL=30000

The logo of the report header can be changed for each store. The images for the report logos are located at global\parameter\reports\images and the path of the logo is configurable at store level in the file report-header.properties.

Configuration file report-header.properties :

gkr.report.header.calculation.reportLogoUrl=images/report_logo.png