Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036577Retail ModulesWeb POSpublic2017-08-02 11:382017-08-02 11:38
guilleaer 
Retail 
normalminoralways
newopen 
5
 
 
No
0036577: Hook 'ModelReady:' + me.name is not valid because me.name can change
If you are subscribed to hook 'ModelReady:' + me.name you will see that it is not working fine because name will change.

example:
I'm suscribed to hook: "ModelReady:pointOfSale"
if you navigate to another window and then return, the hook will not be executed because the hook executed will be ModelReady:pointOfSale2

Add log to show the qualifier in executeHooksFunction
console.log('qualifier')
Navigate to webPos
you will see that ModelReady:pointOfSale is printed
Navigate to cashup
you will see that ModelReady:cashUp is printed
return to posterminal
you will see that ModelReady:pointOfSale2 is printed -> WRONG!
N/A
No tags attached.
Issue History
2017-08-02 11:38guilleaerNew Issue
2017-08-02 11:38guilleaerAssigned To => Retail
2017-08-02 11:38guilleaerTriggers an Emergency Pack => No

There are no notes attached to this issue.