Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0043140 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Retail Modules] Web POS | major | always | 2020-02-06 13:38 | 2020-02-25 09:55 | |||
Reporter | Asantos9 | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | RR20Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | e69ca2bbd5dc | ||||
Projection | none | ETA | none | Target Version | RR20Q1 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | guilleaer | |||||||
OBNetwork customer | Gold | |||||||
Support ticket | ||||||||
Regression level | Packaging and release | |||||||
Regression date | 2019-12-02 | |||||||
Regression introduced in release | main | |||||||
Regression introduced by commit | https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/f73e4a214536 [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0043140: It is not possible to print PDF in Web POS | |||||||
Description | The 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 Reproduce | 1. 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 Solution | Remove single quotes for all the conditions related with this topic. In this case: if (terminal[template + 'IsPdf'] === true) | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0117583) hgbot (developer) 2020-02-10 07:18 |
Repository: retail/backports/3.0RR20Q1/org.openbravo.retail.posterminal Changeset: e69ca2bbd5dc5e027f82f07ae0c07abf677bcb6a Author: Ranjith S R <ranjith <at> qualiantech.com> Date: Mon Feb 10 11:47:58 2020 +0530 URL: http://code.openbravo.com/retail/backports/3.0RR20Q1/org.openbravo.retail.posterminal/rev/e69ca2bbd5dc5e027f82f07ae0c07abf677bcb6a [^] Fixed issue 43140 : POS Print Template should be validated with boolean value --- M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js --- |
![]() |
|||
Date Modified | Username | Field | Change |
2020-02-07 09:04 | ranjith_qualiantech_com | Type | defect => backport |
2020-02-07 09:04 | ranjith_qualiantech_com | Target Version | => RR20Q1 |
2020-02-10 07:18 | hgbot | Checkin | |
2020-02-10 07:18 | hgbot | Note Added: 0117583 | |
2020-02-10 07:18 | hgbot | Status | scheduled => resolved |
2020-02-10 07:18 | hgbot | Resolution | open => fixed |
2020-02-10 07:18 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/retail/backports/3.0RR20Q1/org.openbravo.retail.posterminal/rev/e69ca2bbd5dc5e027f82f07ae0c07abf677bcb6a [^] |
2020-02-10 07:18 | ranjith_qualiantech_com | Regression level | Production - Confirmed Stable => Packaging and release |
2020-02-10 07:18 | ranjith_qualiantech_com | Regression date | 2016-01-01 => 2019-12-02 |
2020-02-10 07:18 | ranjith_qualiantech_com | Regression introduced in release | RR16Q1 => main |
2020-02-10 07:18 | 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-25 09:55 | guilleaer | Review Assigned To | => guilleaer |
2020-02-25 09:55 | guilleaer | Status | resolved => closed |
2020-02-25 09:55 | guilleaer | Fixed in Version | => RR20Q1 |
Copyright © 2000 - 2009 MantisBT Group |