Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038647Retail ModulesWeb POSpublic2018-05-29 11:222018-06-18 09:56
caristu 
caristu 
highminorhave not tried
closedfixed 
5
 
RR18Q3 
marvintm
No
0038647: Do not compile the subreport of the CashUp report manually
The CashUp report is failing to compile after the changes introduced with 0038518.

With the changes introduced with 0038518, the renderJR method looks for the subreports and compiles them automatically.

Currently, the CashUp report compiles its subreport manually, but the name that it is giving to the subreport parameter starts with "SUBREP_" (SUBREP_CASHUP).

Therefore the print engine is trying to find a subreport named CASHUP.jrxml which does not exists, causing a compilation failure.

See the error stack trace:

net.sf.jasperreports.engine.JRException: /home/openbravo/src/30retail/pi/WebContent/src-loc/design/org/openbravo/retail/posterminal/ad_reports/CASHUP.jrxml (No such jasper template file)
    at org.openbravo.client.application.report.ReportCompiler.getJasperDesign(ReportCompiler.java:132)
    at org.openbravo.client.application.report.ReportCompiler.compileSubReports(ReportCompiler.java:109)
    at org.openbravo.client.application.report.CompiledReportManager.compileReportWithSubreports(CompiledReportManager.java:87)
    at org.openbravo.client.application.report.ReportingUtils.generateJasperPrint(ReportingUtils.java:980)
    at org.openbravo.client.application.report.ReportingUtils.exportJR(ReportingUtils.java:191)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.renderJR(HttpSecureAppServlet.java:1255)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.renderJR(HttpSecureAppServlet.java:1160)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.renderJR(HttpSecureAppServlet.java:1143)
    at org.openbravo.retail.posterminal.ad_reports.CashUpReport.doPost(CashUpReport.java:401)
1) Go to the "POS Terminal" window
2) Look for a POS Terminal where any cash-up has been done and switch to the "Cash Up History" sub-tab.
3) Press "Cash Up Report" button. The report is not generated.
Do not compile the subreport by hand. Let the reporting engine do it.
No tags attached.
related to feature request 0038518 closed caristu Openbravo ERP Ability of compiling subreports with HttpSecureAppServlet.renderJR 
Issue History
2018-05-29 11:22caristuNew Issue
2018-05-29 11:22caristuAssigned To => caristu
2018-05-29 11:22caristuTriggers an Emergency Pack => No
2018-05-29 11:22caristuRelationship addedrelated to 0038518
2018-05-29 11:23caristuDescription Updatedbug_revision_view_page.php?rev_id=17209#r17209
2018-05-29 11:23caristuDescription Updatedbug_revision_view_page.php?rev_id=17210#r17210
2018-05-29 11:23caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17212#r17212
2018-05-29 11:26hgbotCheckin
2018-05-29 11:26hgbotNote Added: 0104764
2018-05-29 11:26hgbotStatusnew => resolved
2018-05-29 11:26hgbotResolutionopen => fixed
2018-05-29 11:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9992be626b9a71aaa50bf143a03b012612d8e769 [^]
2018-05-29 13:08caristuReview Assigned To => marvintm
2018-06-18 09:56marvintmStatusresolved => closed
2018-06-18 09:56marvintmFixed in Version => RR18Q3

Notes
(0104764)
hgbot   
2018-05-29 11:26   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 9992be626b9a71aaa50bf143a03b012612d8e769
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue May 29 11:25:58 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9992be626b9a71aaa50bf143a03b012612d8e769 [^]

fixes issue 38647: Do not compile the subreport of the CashUp report manually

---
M src/org/openbravo/retail/posterminal/ad_reports/CashUpReport.java
M src/org/openbravo/retail/posterminal/ad_reports/CashUpReport.jrxml
---