Openbravo Issue Tracking System - Retail Modules | ||||||||||||||||||||||||||
View Issue Details | ||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||||||||
0052728 | Retail Modules | Sessions | public | 2023-06-13 11:11 | 2023-10-02 08:31 | |||||||||||||||||||||
Reporter | william_vermersch | |||||||||||||||||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||||||||||||||||
Priority | high | Severity | major | Reproducibility | random | |||||||||||||||||||||
Status | closed | Resolution | fixed | |||||||||||||||||||||||
Platform | OS | 30 | OS Version | Openbravo Appliance 14.04 | ||||||||||||||||||||||
Product Version | ||||||||||||||||||||||||||
Target Version | Fixed in Version | |||||||||||||||||||||||||
Merge Request Status | ||||||||||||||||||||||||||
Review Assigned To | ||||||||||||||||||||||||||
OBNetwork customer | ||||||||||||||||||||||||||
Support ticket | ||||||||||||||||||||||||||
Regression level | ||||||||||||||||||||||||||
Regression date | ||||||||||||||||||||||||||
Regression introduced in release | ||||||||||||||||||||||||||
Regression introduced by commit | ||||||||||||||||||||||||||
Triggers an Emergency Pack | No | |||||||||||||||||||||||||
Summary | 0052728: Duplicate opened sessions can be created when setting business date | |||||||||||||||||||||||||
Description | It seems that it is possible to click multiple time on Done button when setting business date (high latency/load on the POS). Adding some logs to maybe better understand the issue: 03-06-2023 08:50:22 retail.loginbusinessdate Process: setBusinessDate - finished - (575499C5FAA6A319F829B44E85019C41) 03-06-2023 08:50:22 retail.loginbusinessdate Process: setBusinessDate - started - (575499C5FAA6A319F829B44E85019C41) 03-06-2023 08:50:22 retail.loginbusinessdate | multiColumn - leftToolbar Clicked on 'icon' - (btnDone - icon) 03-06-2023 08:50:23 retail.loginbusinessdate [opentill][AvoidCountCashAndSendOpenTill] Send open till without UI; stackTrace: OB.OBPOSSession.CountCash.Model.AvoidCountCashAndSendOpenTill (https://weldom.cloud.openbravo.com/openbravo/web/js/gen/02f977056d0e0b41f05eaac8ac40e678.js:5827:350 [^]) 03-06-2023 08:50:23 retail.loginbusinessdate Process: setBusinessDate - finished - (F7F1F043DB81D9A68CF7F7C89B406ED0) 03-06-2023 08:50:23 retail.loginbusinessdate Process: setBusinessDate - started - (F7F1F043DB81D9A68CF7F7C89B406ED0) 03-06-2023 08:50:23 retail.loginbusinessdate | multiColumn - leftToolbar Clicked on 'icon' - (btnDone - icon) 03-06-2023 08:50:25 retail.loginbusinessdate | dynamicConfirmationPopup Process: showLoading - finished - (04EA1F48AA14FEE451EFF7C5DD6477A6) We can see that it was possible to click on the button 2 times before the popup was displayed. | |||||||||||||||||||||||||
Steps To Reproduce | Since it seems to be related to high latency/load on the POS, the only way to reproduce it (on a local POS, not on a production environment), is to setTimeout the function starting the process. In approvedRequest method of BusinessDateModel.js : if (approved) { setTimeout(() => { var setBusinessDate, execution = OB.UTIL.ProcessController.start('setBusinessDate'), me = this; ... }, 200); ----- Connect to a POS (closed store) Go to the set business date step Input the business date Click multiple time on the Done button (upper toolbar) ----- You will have multiple sessions opened (check screenshot) | |||||||||||||||||||||||||
Proposed Solution | I suppose that in the tap method of the toolbar button, the first step should be to disable it, and enable it in a callback method. | |||||||||||||||||||||||||
Additional Information | ||||||||||||||||||||||||||
Tags | No tags attached. | |||||||||||||||||||||||||
Relationships |
| |||||||||||||||||||||||||
Attached Files | multiple_session.png (31,475) 2023-06-13 11:11 https://issues.openbravo.com/file_download.php?file_id=18642&type=bug | |||||||||||||||||||||||||
Issue History | ||||||||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||||||||
2023-06-13 11:11 | william_vermersch | New Issue | ||||||||||||||||||||||||
2023-06-13 11:11 | william_vermersch | Assigned To | => Retail | |||||||||||||||||||||||
2023-06-13 11:11 | william_vermersch | File Added: multiple_session.png | ||||||||||||||||||||||||
2023-06-13 11:11 | william_vermersch | Triggers an Emergency Pack | => No | |||||||||||||||||||||||
2023-06-13 11:19 | william_vermersch | Description Updated | bug_revision_view_page.php?rev_id=26251#r26251 | |||||||||||||||||||||||
2023-06-13 18:36 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||||||||||||||||
2023-06-14 10:15 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||||||||||||||||
2023-06-16 07:27 | hgbot | Note Added: 0151249 | ||||||||||||||||||||||||
2023-06-23 08:22 | hgbot | Note Added: 0151537 | ||||||||||||||||||||||||
2023-06-23 08:22 | hgbot | Resolution | open => fixed | |||||||||||||||||||||||
2023-06-23 08:22 | hgbot | Status | scheduled => closed | |||||||||||||||||||||||
2023-06-23 08:22 | hgbot | Note Added: 0151538 | ||||||||||||||||||||||||
2023-06-26 09:38 | william_vermersch | Note Added: 0151623 | ||||||||||||||||||||||||
2023-06-26 09:38 | william_vermersch | Status | closed => new | |||||||||||||||||||||||
2023-06-26 09:38 | william_vermersch | Resolution | fixed => open | |||||||||||||||||||||||
2023-06-27 06:41 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||||||||||||||||
2023-06-29 14:50 | hgbot | Note Added: 0151861 | ||||||||||||||||||||||||
2023-06-30 09:28 | hgbot | Resolution | open => fixed | |||||||||||||||||||||||
2023-06-30 09:28 | hgbot | Status | scheduled => closed | |||||||||||||||||||||||
2023-06-30 09:28 | hgbot | Note Added: 0151928 | ||||||||||||||||||||||||
2023-06-30 09:28 | hgbot | Note Added: 0151929 | ||||||||||||||||||||||||
2023-10-02 08:27 | malsasua | Relationship added | related to 0053362 | |||||||||||||||||||||||
2023-10-02 08:28 | malsasua | Relationship added | related to 0051207 | |||||||||||||||||||||||
2023-10-02 08:31 | malsasua | Relationship added | related to 0045833 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|