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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0035801
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2017-04-19 18:072017-05-03 12:21
ReportermalsasuaView Statuspublic 
Assigned Tojorge-garcia 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisiond4f8ae4bb164
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomigueldejuana
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0035801: error printing when special chars (for example, '&') are used in the discount name

Descriptionif 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
Steps To Reproducein 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:
om.openbravo.pos.printer.TicketPrinterException: The entity name must immediately follow the '&' in the entity reference.
    at com.openbravo.pos.printer.TicketParser.printTicket(TicketParser.java:97)
    at com.openbravo.poshw.TicketServlet.doProcess(TicketServlet.java:53)
...
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0035907 closedTriage Platform Conn error printing when special chars (for example, '<') are used in the discount name 
causes defect 0037737 closedjorge-garcia Special characters like ' in product names is printed in the receipt as & 

-  Notes
(0096185)
hgbot (developer)
2017-04-26 09:29

Repository: erp/pmods/org.openbravo.retail.poshwmanager
Changeset: d0a053a86a9904c0002c86c787316717765f7924
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Apr 26 09:28:27 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.poshwmanager/rev/d0a053a86a9904c0002c86c787316717765f7924 [^]

Related to issue 35801: error printing when special chars (for example, '&') are
used in the discount name

Compile hardware manager with the new changes.

---
M bin/poshw.jar
M bin/rev.id
---
(0096186)
hgbot (developer)
2017-04-26 09:29

Repository: erp/pmods/org.openbravo.retail.poshwmanager.sources
Changeset: d4f8ae4bb164cc750ecfe2a6bcceaab321e1ee14
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Apr 25 13:55:16 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.poshwmanager.sources/rev/d4f8ae4bb164cc750ecfe2a6bcceaab321e1ee14 [^]

Fixed issue 35801: error printing when special chars (for example, '&') are
used in the discount name

The solution is to replace all characaters & for & string
in POSHWManager.

For that, it is necessary to create a regular expresion to match those cases.

---
M project/src/com/openbravo/pos/printer/TicketParser.java
---
(0096342)
migueldejuana (developer)
2017-05-03 12:21

Tested and reviewed

- Issue History
Date Modified Username Field Change
2017-04-19 18:07 malsasua New Issue
2017-04-19 18:07 malsasua Assigned To => Retail
2017-04-19 18:07 malsasua Resolution time => 1494367200
2017-04-19 18:07 malsasua Triggers an Emergency Pack => No
2017-04-24 17:22 jorge-garcia Status new => scheduled
2017-04-24 17:22 jorge-garcia Assigned To Retail => jorge-garcia
2017-04-26 09:29 hgbot Checkin
2017-04-26 09:29 hgbot Note Added: 0096185
2017-04-26 09:29 hgbot Checkin
2017-04-26 09:29 hgbot Note Added: 0096186
2017-04-26 09:29 hgbot Status scheduled => resolved
2017-04-26 09:29 hgbot Resolution open => fixed
2017-04-26 09:29 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.poshwmanager.sources/rev/d4f8ae4bb164cc750ecfe2a6bcceaab321e1ee14 [^]
2017-05-03 12:21 migueldejuana Review Assigned To => migueldejuana
2017-05-03 12:21 migueldejuana Note Added: 0096342
2017-05-03 12:21 migueldejuana Status resolved => closed
2017-05-03 12:25 migueldejuana Relationship added related to 0035907
2018-01-26 12:17 adrianromero Relationship added causes 0037737


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker