Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035907Retail ModulesWeb POS Hardware Managerpublic2017-05-03 12:252022-01-11 12:43
migueldejuana 
Triage Platform Conn 
normalminoralways
closedinvalid 
5
 
 
No
No
0035907: error printing when special chars (for example, '<') are used in the discount name
if there is one discount name with the char "<", and receipt is created in POS, with a product using this discount, error is returned when the receipt is printed
    in backoffice:
. in discount and promotions window:
  update the discount "3 x 2 Bottles"
    name= "3 x 2 < Bottles"

open hw manager

in POS:
. new receipt:
 add new line: Bottle 1 L -> qty= 3
pay it

Error: Printer and display are not available.
in hw manager, error is returned:
SEVERE: null
com.openbravo.pos.printer.TicketPrinterException: The content of elements must consist of well-formed character data or markup.
No tags attached.
related to defect 0035801 closed jorge-garcia error printing when special chars (for example, '&') are used in the discount name 
Issue History
2017-05-03 12:25migueldejuanaNew Issue
2017-05-03 12:25migueldejuanaAssigned To => Retail
2017-05-03 12:25migueldejuanaOBNetwork customer => No
2017-05-03 12:25migueldejuanaTriggers an Emergency Pack => No
2017-05-03 12:25migueldejuanaRelationship addedrelated to 0035801
2022-01-11 12:31alostaleAssigned ToRetail => Triage Platform Conn
2022-01-11 12:43adrianromeroNote Added: 0134210
2022-01-11 12:43adrianromeroStatusnew => closed
2022-01-11 12:43adrianromeroResolutionopen => invalid

Notes
(0134210)
adrianromero   
2022-01-11 12:43   
Use OB.UTIL.encodeXMLComponent(..) to print the discount name in the template.

Related issue 0035801 was wrongly fixed