Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0043874 | Retail Modules | Web POS | public | 2020-04-27 08:36 | 2020-08-04 14:31 | |||||||
Reporter | jorge-garcia | |||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||
Priority | urgent | Severity | major | Reproducibility | sometimes | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | RR20Q3 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | marvintm | |||||||||||
OBNetwork customer | Gold | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0043874: Sessions module could execute twice callbaxkExecutor of OBPOS_LoadPOSWindow hook | |||||||||||
Description | Sometimes, sessions module hook OBPOS_LoadPOSWindow could execute twice the callbackExcutor, allowing the execution of the callback of OBPOS_LoadPOSWindow before all register hooks has finished. | |||||||||||
Steps To Reproduce | 1) Login in WebPOS with sessions module, fill required steps 2) Put three breakpoints in the code: 2.1) Before the execution of OBPOS_LoadPOSWindow hook: OB.UTIL.HookManager.executeHooks('OBPOS_LoadPOSWindow', {}, function(args) { 2.2) In tillCallback function } else { OB.MobileApp.model.hookManager.callbackExecutor(args, callbacks); } 2.3) At the end of session register hook for OBPOS_LoadPOSWindow: args.cancellation = true; OB.UTIL.HookManager.callbackExecutor(args, callbacks); 3) Copy this code in Developers Tools: OB.UTIL.HookManager.registerHook('OBPOS_LoadPOSWindow', function(args, callbacks) { OB.UTIL.showConfirmation.display('Hola', 'hola', [{ label: OB.I18N.getLabel('OBMOBC_LblOk'), isConfirmButton: true, action: function () { debugger; OB.UTIL.HookManager.callbackExecutor(args, callbacks); } }]); }); 4) If no business partner is required to set, no initial count cash is needed to be counted, and no cashup is required to be done, the logic of sessions hook calls twice to the callbackExecutor, making the logic of the executeHook to continue before the copied hook has finisehd (it ends once the ok button from popup is clicked). | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2020-04-27 08:36 | jorge-garcia | New Issue | ||||||||||
2020-04-27 08:36 | jorge-garcia | Assigned To | => Retail | |||||||||
2020-04-27 08:36 | jorge-garcia | OBNetwork customer | => No | |||||||||
2020-04-27 08:36 | jorge-garcia | Triggers an Emergency Pack | => No | |||||||||
2020-04-27 08:38 | jorge-garcia | OBNetwork customer | No => Gold | |||||||||
2020-04-27 08:38 | jorge-garcia | Resolution time | => 1589752800 | |||||||||
2020-04-27 08:45 | jorge-garcia | Priority | normal => urgent | |||||||||
2020-04-27 10:26 | adrianromero | Relationship added | caused by 0043333 | |||||||||
2020-04-27 13:18 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||
2020-04-27 15:34 | jorge-garcia | Issue Monitored: jorge-garcia | ||||||||||
2020-04-28 04:55 | hgbot | Checkin | ||||||||||
2020-04-28 04:55 | hgbot | Note Added: 0119446 | ||||||||||
2020-04-28 04:55 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||
2020-04-28 06:03 | hgbot | Checkin | ||||||||||
2020-04-28 06:03 | hgbot | Note Added: 0119448 | ||||||||||
2020-04-28 08:42 | hgbot | Checkin | ||||||||||
2020-04-28 08:42 | hgbot | Note Added: 0119453 | ||||||||||
2020-04-28 08:52 | ranjith_qualiantech_com | Note Deleted: 0119453 | ||||||||||
2020-04-28 08:53 | ranjith_qualiantech_com | Note Deleted: 0119448 | ||||||||||
2020-04-28 08:53 | ranjith_qualiantech_com | Status | scheduled => resolved | |||||||||
2020-04-28 08:53 | ranjith_qualiantech_com | Resolution | open => fixed | |||||||||
2020-04-29 18:02 | marvintm | Review Assigned To | => marvintm | |||||||||
2020-04-29 18:02 | marvintm | Status | resolved => closed | |||||||||
2020-04-29 18:02 | marvintm | Fixed in Version | => RR20Q3 | |||||||||
2020-05-05 03:02 | hgbot | Checkin | ||||||||||
2020-05-05 03:02 | hgbot | Note Added: 0119535 | ||||||||||
2020-05-05 03:03 | ranjith_qualiantech_com | Note Deleted: 0119535 | ||||||||||
2020-08-04 14:30 | adrianromero | Note Added: 0121804 | ||||||||||
2020-08-04 14:30 | adrianromero | Status | closed => new | |||||||||
2020-08-04 14:30 | adrianromero | Resolution | fixed => open | |||||||||
2020-08-04 14:30 | adrianromero | Fixed in Version | RR20Q3 => | |||||||||
2020-08-04 14:31 | adrianromero | Note Deleted: 0121804 | ||||||||||
2020-08-04 14:31 | adrianromero | Status | new => scheduled | |||||||||
2020-08-04 14:31 | adrianromero | Status | scheduled => resolved | |||||||||
2020-08-04 14:31 | adrianromero | Fixed in Version | => RR20Q3 | |||||||||
2020-08-04 14:31 | adrianromero | Resolution | open => fixed | |||||||||
2020-08-04 14:31 | adrianromero | Status | resolved => closed |
Notes | |||||
|
|||||
|
|