Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037008Retail ModulesWeb POSpublic2017-07-24 16:232017-10-31 09:25
aaroncalero 
ranjith_qualiantech_com 
highmajorrandom
closedfixed 
5
 
RR17Q3.1RR17Q3.1 
marvintm
No
0037008: [SERQA 2997] Popup showing seconds left for the masterdata loading can break the POS
When the incremental data loading is configured, there is a popup that is shown right before the incremental refresh is done, with a few seconds countdown (using a javascript interval), to allow the user to close the popup and cancel the process.
If another popup is opened while the masterdata refresh popup is being shown, a javascript error is thrown inside the js interval code (Uncaught TypeError: Cannot read property '$' of undefined) and the WebPOS enters an error loop which can only be fixed by reloading the application.
The issue can be reproduced in two ways:
1) Login in backend, go to the POS Terminal window, find the VBS-1 record, navigate to its POS Terminal Type and configure a very high "Time to Incrementally Refresh Masterdata (in minutes)" (i.e. 999999).
Go to the web pos and try to log in.

2) Login in backend, go to the POS Terminal window, find the VBS-1 record, navigate to its POS Terminal Type and configure a very low "Time to Incrementally Refresh Masterdata (in minutes)" (i.e. 0.5).
Login in web pos
Open devtools to be able to force the display of a new popup (in normal usage this can happen randomly, specially if using synchronized mode).
When the Masterdata Refresh popup is shown, execute the following to open a new popup: OB.UTIL.showConfirmation.display("Test", "Test");

In both cases the pos enters an error state and if the application is not reloaded the entire browser (and eventually the computer) gets frozen.
No tags attached.
blocks defect 0036531 closed ranjith_qualiantech_com [SERQA 2997] Popup showing seconds left for the masterdata loading can break the POS 
Issue History
2017-10-05 10:23marvintmTypedefect => backport
2017-10-05 10:23marvintmTarget Version => RR17Q3.1
2017-10-07 08:08hgbotCheckin
2017-10-07 08:08hgbotNote Added: 0099815
2017-10-07 08:08hgbotCheckin
2017-10-07 08:08hgbotNote Added: 0099816
2017-10-07 08:08hgbotStatusscheduled => resolved
2017-10-07 08:08hgbotResolutionopen => fixed
2017-10-07 08:08hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0aa7339d874c2f50f313299e3c19c8e274aba9c4 [^] => http://code.openbravo.com/retail/backports/3.0RR17Q3.1/org.openbravo.retail.posterminal/rev/3de798d80a3957fd2b4a98ca0c2003084fe8def1 [^]
2017-10-31 09:25marvintmStatusresolved => closed
2017-10-31 09:25marvintmFixed in Version => RR17Q3.1

Notes
(0099815)
hgbot   
2017-10-07 08:08   
Repository: retail/backports/3.0RR17Q3.1/org.openbravo.mobile.core
Changeset: 91cdab9f86098cec0e7d602b574d57491f58bc73
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Sat Oct 07 11:22:26 2017 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR17Q3.1/org.openbravo.mobile.core/rev/91cdab9f86098cec0e7d602b574d57491f58bc73 [^]

Related to issue 37008 : Validate refresh time for masterdata reload

* Refresh time for masterdata reload should be max of 99999 minutes

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0099816)
hgbot   
2017-10-07 08:08   
Repository: retail/backports/3.0RR17Q3.1/org.openbravo.retail.posterminal
Changeset: 3de798d80a3957fd2b4a98ca0c2003084fe8def1
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Sat Oct 07 11:22:42 2017 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR17Q3.1/org.openbravo.retail.posterminal/rev/3de798d80a3957fd2b4a98ca0c2003084fe8def1 [^]

Fixed issue 37008 : Masterdata reload popup structure changed

* Masterdata reload showConfirmation popup is replaced by creating popup manually
  in order to avoid the overwrite of master data reload popup by any new popup

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---