Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045234Retail ModulesWeb POSpublic2020-10-16 09:142020-10-16 09:14
aferraz 
Retail 
normalmajorhave not tried
newopen 
5
 
 
No
0045234: TicketUtils.newTicket fails when running from new POS as it reads OB.Constants
TicketUtils.newTicket fails when running from new POS as it reads OB.Constants
Check TicketUtils.newTicket is using payload.constants.fieldSeparator and payload.constants.identifierSuffix.

payload.constants is loaded in OB.UTIL.TicketUtils.addTicketCreationDataToPayload as follows:
newPayload.constants = {
  fieldSeparator: OB.Constants.FIELDSEPARATOR,
  identifierSuffix: OB.Constants.IDENTIFIER
};
Two alternatives:

a) Create OB.App.Constants wrapper for OB.Constants, same as we did with OB.App.Security, and use this wrapper in TicketUtils.newTicket.

b) Define both constants inside TicketUtils.newTicket.
No tags attached.
Issue History
2020-10-16 09:14aferrazNew Issue
2020-10-16 09:14aferrazAssigned To => Retail
2020-10-16 09:14aferrazTriggers an Emergency Pack => No

There are no notes attached to this issue.