Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0038647
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminorhave not tried2018-05-29 11:222018-06-18 09:56
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionfixedFixed in VersionRR18Q3
StatusclosedFix in branchFixed in SCM revision9992be626b9a
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0038647: Do not compile the subreport of the CashUp report manually

DescriptionThe 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)
Steps To Reproduce1) 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.
Proposed SolutionDo not compile the subreport by hand. Let the reporting engine do it.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0038518 closedcaristu Openbravo ERP Ability of compiling subreports with HttpSecureAppServlet.renderJR 

-  Notes
(0104764)
hgbot (developer)
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
---

- Issue History
Date Modified Username Field Change
2018-05-29 11:22 caristu New Issue
2018-05-29 11:22 caristu Assigned To => caristu
2018-05-29 11:22 caristu Triggers an Emergency Pack => No
2018-05-29 11:22 caristu Relationship added related to 0038518
2018-05-29 11:23 caristu Description Updated View Revisions
2018-05-29 11:23 caristu Description Updated View Revisions
2018-05-29 11:23 caristu Steps to Reproduce Updated View Revisions
2018-05-29 11:26 hgbot Checkin
2018-05-29 11:26 hgbot Note Added: 0104764
2018-05-29 11:26 hgbot Status new => resolved
2018-05-29 11:26 hgbot Resolution open => fixed
2018-05-29 11:26 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9992be626b9a71aaa50bf143a03b012612d8e769 [^]
2018-05-29 13:08 caristu Review Assigned To => marvintm
2018-06-18 09:56 marvintm Status resolved => closed
2018-06-18 09:56 marvintm Fixed in Version => RR18Q3


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker