Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039165Retail ModulesWeb POSpublic2018-08-22 05:512018-08-23 09:23
guillermogil 
marvintm 
urgentmajoralways
closedfixed 
5
 
 
migueldejuana
No
0039165: JRXML templates are not loaded in APP Cache, Offline printing is not working
JRXML templates are not loaded in APP Cache, Offline printing is not working.
It is trying to load the resource even if it is offline.
Templates are currently loaded on demand and they get stored in the cache.
Login
Go to offline
Login
Finish a ticket

Call to load the resource is done
Add all templates to the App Cache
No tags attached.
diff issue39165.diff (4,128) 2018-08-22 13:38
https://issues.openbravo.com/file_download.php?file_id=12069&type=bug
Issue History
2018-08-22 05:51guillermogilNew Issue
2018-08-22 05:51guillermogilAssigned To => StoreServer
2018-08-22 05:51guillermogilTriggers an Emergency Pack => No
2018-08-22 11:15guillermogilAssigned ToStoreServer => Retail
2018-08-22 11:15guillermogilCategoryStoreServer => Web POS
2018-08-22 11:15guillermogilSummaryIf Central Server is down and HWM templates have not been loaded, Offline printing is not working => JRXML templates are not loaded in APP Cache, Offline printing is not working
2018-08-22 11:15guillermogilDescription Updatedbug_revision_view_page.php?rev_id=17548#r17548
2018-08-22 11:15guillermogilSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17550#r17550
2018-08-22 13:25marvintmStatusnew => scheduled
2018-08-22 13:25marvintmAssigned ToRetail => marvintm
2018-08-22 13:28marvintmFile Added: issue39165.diff
2018-08-22 13:37marvintmFile Deleted: issue39165.diff
2018-08-22 13:38marvintmFile Added: issue39165.diff
2018-08-22 16:45hgbotCheckin
2018-08-22 16:45hgbotNote Added: 0106450
2018-08-22 16:45hgbotStatusscheduled => resolved
2018-08-22 16:45hgbotResolutionopen => fixed
2018-08-22 16:45hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9ca48032be21a0b1107cd4a839d33e8fcbfa28a5 [^]
2018-08-23 09:23migueldejuanaReview Assigned To => migueldejuana
2018-08-23 09:23migueldejuanaNote Added: 0106454
2018-08-23 09:23migueldejuanaStatusresolved => closed

Notes
(0106450)
hgbot   
2018-08-22 16:45   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 9ca48032be21a0b1107cd4a839d33e8fcbfa28a5
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Aug 22 14:05:37 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9ca48032be21a0b1107cd4a839d33e8fcbfa28a5 [^]

Fixed issue 39165: JRXML templates are not loaded in APP Cache, Offline printing is not working
- JRXML templates were in fact added correctly to the Manifest, but their corresponding subreports were not. Now they are added to the Manifest also.
- Correspondingly, the subreports are now also taken into account for the templates identifier, so that if their content changes, the templates hash identifier will also change, and they will be reloaded in the frontend.

---
M src/org/openbravo/retail/posterminal/ApplicationCacheComponent.java
M src/org/openbravo/retail/posterminal/utility/OBPOSPrintTemplateReader.java
---
(0106454)
migueldejuana   
2018-08-23 09:23   
Tested and reviewed