Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037746Retail ModulesWeb POS Hardware Managerpublic2018-01-26 11:542018-01-30 11:53
adrianromero 
Retail 
normalmajoralways
closedfixed 
5
 
RR17Q4.1RR17Q4.1 
marvintm
Production - Confirmed Stable
2017-09-21
RR17Q3
https://code.openbravo.com/erp/pmods/org.openbravo.retail.poshwmanager.sources/rev/d4f8ae4bb164 [^]
No
0037746: Special characters like ' in product names is printed in the receipt as &
If a product name contains an special character like ' and included in an order from Web POS, when closing the receipt and printed. The receipt prints & instead of '
In description
1.- Revert the commit in *Regression introduced by commit*.

2.-To fix properly the issue of the commit it has to be modified the template and print promotion names using function OB.UTIL.encodeXMLComponent() . This way:

          <line>
            <text align="left" length="2">--</text>
            <text align="left" length="32"><%=OB.UTIL.encodeXMLComponent(p.name)%></text>
            <text align="right" length="8"><%= OB.I18N.formatCurrency(-p.amt) %></text>
          </line>
No tags attached.
blocks defect 0037737 closed jorge-garcia Special characters like ' in product names is printed in the receipt as & 
Issue History
2018-01-29 10:09marvintmTypedefect => backport
2018-01-29 10:09marvintmTarget Version => RR17Q4.1
2018-01-29 16:28hgbotCheckin
2018-01-29 16:28hgbotNote Added: 0102029
2018-01-29 16:28hgbotStatusscheduled => resolved
2018-01-29 16:28hgbotResolutionopen => fixed
2018-01-29 16:28hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR17Q4.1/org.openbravo.retail.posterminal/rev/1ac60dad4e0b2c10429a32f7b97a1183e22b63e9 [^]
2018-01-29 16:28hgbotCheckin
2018-01-29 16:28hgbotNote Added: 0102030
2018-01-29 16:28hgbotCheckin
2018-01-29 16:28hgbotNote Added: 0102031
2018-01-30 11:53marvintmReview Assigned Toadrianromero => marvintm
2018-01-30 11:53marvintmStatusresolved => closed
2018-01-30 11:53marvintmFixed in Version => RR17Q4.1

Notes
(0102029)
hgbot   
2018-01-29 16:28   
Repository: retail/backports/3.0RR17Q4.1/org.openbravo.retail.posterminal
Changeset: 1ac60dad4e0b2c10429a32f7b97a1183e22b63e9
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Jan 29 15:54:40 2018 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR17Q4.1/org.openbravo.retail.posterminal/rev/1ac60dad4e0b2c10429a32f7b97a1183e22b63e9 [^]

Fixed issue 37746: Special characters like ' in product names is printed
in the receipt as &

Implemented xml encode in all references of promotions name in templates.

---
M web/org.openbravo.retail.posterminal/res/printcanceledreceipt.xml
M web/org.openbravo.retail.posterminal/res/printclosedinvoice.xml
M web/org.openbravo.retail.posterminal/res/printclosedreceipt.xml
M web/org.openbravo.retail.posterminal/res/printinvoice.xml
M web/org.openbravo.retail.posterminal/res/printlayaway.xml
M web/org.openbravo.retail.posterminal/res/printquotation.xml
M web/org.openbravo.retail.posterminal/res/printreceipt.xml
M web/org.openbravo.retail.posterminal/res/printreturn.xml
M web/org.openbravo.retail.posterminal/res/printreturninvoice.xml
---
(0102030)
hgbot   
2018-01-29 16:28   
Repository: retail/backports/3.0RR17Q4.1/org.openbravo.retail.poshwmanager.sources
Changeset: 697529e1f4c795521a58e75005a846b455810b0b
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Jan 29 15:55:14 2018 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR17Q4.1/org.openbravo.retail.poshwmanager.sources/rev/697529e1f4c795521a58e75005a846b455810b0b [^]

Related to issue 37746: Special characters like ' in product names is printed
in the receipt as &

Reverted code introduced by regression.

---
M project/src/com/openbravo/pos/printer/TicketParser.java
---
(0102031)
hgbot   
2018-01-29 16:28   
Repository: retail/backports/3.0RR17Q4.1/org.openbravo.retail.poshwmanager
Changeset: fcf2bc75972da5062201e00f148fa1c25c151b4e
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Jan 29 15:56:22 2018 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR17Q4.1/org.openbravo.retail.poshwmanager/rev/fcf2bc75972da5062201e00f148fa1c25c151b4e [^]

Related to issue 37746: Special characters like ' in product names is printed
in the receipt as &

Compiled new version of hardware manager.

---
M bin/poshw.jar
M bin/rev.id
---