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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0043131
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2020-02-06 13:382020-02-07 14:25
ReporterAsantos9View Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityimmediateResolutionfixedFixed in VersionRR20Q2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toguilleaer
Regression levelPackaging and release
Regression date2019-12-02
Regression introduced in releasemain
Regression introduced by commithttps://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/f73e4a214536 [^]
Triggers an Emergency PackNo
Summary

0043131: It is not possible to print PDF in Web POS

DescriptionThe templates defined as PDF in backend are not possible to print in Web POS. The data of the templates loaded have been changed and the following condition is not working:

if (terminal[template + 'IsPdf'] === 'true')

This happen because the boolean properties come as boolean variables (true) instead of string variables ('true')
Steps To Reproduce1. Define a template in backend as PDF
2. Log into Web POS
3. Open the Hardware Manager configured for the terminal that it is using
4. Add a product to the order
5. Change the business partner different of anonymous
6. Click on total amount
7. Pay the order

Note that the PDF has not been printed and some errors have appeared in the Web server tab in the Hardware manager:

javax.imageio.IIOException: Can't read input file!
    at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1308)

org.codehaus.jettison.json.JSONException: JSONObject["printer"] not found.
    at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360)
Proposed SolutionRemove single quotes for all the conditions related with this topic. In this case:

if (terminal[template + 'IsPdf'] === true)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0043140RR20Q1 closedranjith_qualiantech_com It is not possible to print PDF in Web POS 
caused by defect 0042453 closedmigueldejuana JSONRowConverter is not converting hardcoded boolean properties 
related to defect 0043103 closedRetail Wrong check prevents printing pdfs 

-  Notes
(0117530)
hgbot (developer)
2020-02-07 08:40

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 197742163297dc29b180fd8c6adfc5cad10aa9d5
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Feb 07 13:09:49 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/197742163297dc29b180fd8c6adfc5cad10aa9d5 [^]

Related to issue 43131 : POS Print Template should be validated with boolean value

---
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js
---

- Issue History
Date Modified Username Field Change
2020-02-06 13:38 Asantos9 New Issue
2020-02-06 13:38 Asantos9 Assigned To => Retail
2020-02-06 13:38 Asantos9 Regression date => 2020-02-06
2020-02-06 13:38 Asantos9 Regression introduced in release => main
2020-02-06 13:38 Asantos9 Triggers an Emergency Pack => No
2020-02-06 14:16 plujan Relationship added related to 0043103
2020-02-07 08:10 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2020-02-07 08:40 hgbot Checkin
2020-02-07 08:40 hgbot Note Added: 0117530
2020-02-07 09:04 ranjith_qualiantech_com Regression level => Production - Confirmed Stable
2020-02-07 09:04 ranjith_qualiantech_com Regression date 2020-02-06 => 2016-01-01
2020-02-07 09:04 ranjith_qualiantech_com Regression introduced in release main => RR16Q1
2020-02-07 09:04 ranjith_qualiantech_com Regression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/annotate/9eef9e8baaad/web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js#l18 [^]
2020-02-07 09:04 ranjith_qualiantech_com Status new => scheduled
2020-02-07 09:05 ranjith_qualiantech_com Status scheduled => acknowledged
2020-02-07 09:06 ranjith_qualiantech_com Status acknowledged => scheduled
2020-02-07 09:10 ranjith_qualiantech_com Status scheduled => resolved
2020-02-07 09:10 ranjith_qualiantech_com Resolution open => fixed
2020-02-07 09:47 ranjith_qualiantech_com Regression level Production - Confirmed Stable => Packaging and release
2020-02-07 09:47 ranjith_qualiantech_com Regression date 2016-01-01 => 2019-12-02
2020-02-07 09:47 ranjith_qualiantech_com Regression introduced in release RR16Q1 => main
2020-02-07 09:47 ranjith_qualiantech_com Regression introduced by commit https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/annotate/9eef9e8baaad/web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js#l18 [^] => https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/f73e4a214536 [^]
2020-02-07 12:17 guilleaer Review Assigned To => guilleaer
2020-02-07 12:17 guilleaer Status resolved => closed
2020-02-07 12:17 guilleaer Fixed in Version => RR20Q2
2020-02-07 14:25 dmitry_mezentsev Relationship added caused by 0042453


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker