Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2021-07-14 17:022021-10-04 17:42
ReporterSergio_GomezView Statuspublic 
Assigned ToRetail 
PrioritynormalResolutionno change requiredFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0047396: No ticket information arrives at the completeTicket post hook in stateAPI because it is reset before.

DescriptionSome ticket information (documentNo, id ...) is removed in the removeTicket function before being stored in the new state and cannot be accessed in a postHook to manage it.
Steps To Reproduce- In livebuilds 21q2 release
- Login to the pos
- Open the chrome developer tools
- Open the web/js/gen file in pretty print mode
- Put breakpoints on line 38418: ({ticketList: newTicketList, ticket: newTicket} = OB.App.State.TicketList.Utils.removeTicket(newTicketList, newTicket, payload));
and on line 38424: return newGlobalState;
-In the POS pay a product and select Done
-Check at the first breakpoint that the newTicket variable has the information of the ticket (such as documentNo) and select play button to resume script execution.
-Check at the second breakpoint that in the NewGlobalState.Ticket does not appears the ticket information because it was deleted in the removeTicket function.

As a result, the following postHooks cannot access the information of the ticket in the state.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
Sergio_Gomez (reporter)
2021-10-04 17:42

Habitual behavior of the hook. The information of the last ticket can be accessed through the messages model.

- Issue History
Date Modified Username Field Change
2021-07-14 17:02 Sergio_Gomez New Issue
2021-07-14 17:02 Sergio_Gomez Assigned To => Retail
2021-07-14 17:02 Sergio_Gomez Triggers an Emergency Pack => No
2021-07-14 17:34 Practics Issue Monitored: Practics
2021-10-04 17:42 Sergio_Gomez Note Added: 0132151
2021-10-04 17:42 Sergio_Gomez Resolution open => no change required

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker