Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037009Retail ModulesWeb POSpublic2017-07-24 16:232017-10-31 09:25
aaroncalero 
ranjith_qualiantech_com 
highmajorrandom
closedfixed 
5
 
RR17Q2.4RR17Q2.4 
marvintm
No
0037009: [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 => RR17Q2.4
2017-10-07 08:05hgbotCheckin
2017-10-07 08:05hgbotNote Added: 0099813
2017-10-07 08:06hgbotCheckin
2017-10-07 08:06hgbotNote Added: 0099814
2017-10-07 08:06hgbotStatusscheduled => resolved
2017-10-07 08:06hgbotResolutionopen => fixed
2017-10-07 08:06hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0aa7339d874c2f50f313299e3c19c8e274aba9c4 [^] => http://code.openbravo.com/retail/backports/3.0RR17Q2.4/org.openbravo.retail.posterminal/rev/db7b26db5fc42fbb4e58d21acc875bb0deb84d33 [^]
2017-10-31 09:25marvintmStatusresolved => closed
2017-10-31 09:25marvintmFixed in Version => RR17Q2.4

Notes
(0099813)
hgbot   
2017-10-07 08:05   
Repository: retail/backports/3.0RR17Q2.4/org.openbravo.mobile.core
Changeset: 356d1a338a812d9cbdd8135310b4af048d988426
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Sat Oct 07 11:19:58 2017 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR17Q2.4/org.openbravo.mobile.core/rev/356d1a338a812d9cbdd8135310b4af048d988426 [^]

Related to issue 37009 : 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
---
(0099814)
hgbot   
2017-10-07 08:06   
Repository: retail/backports/3.0RR17Q2.4/org.openbravo.retail.posterminal
Changeset: db7b26db5fc42fbb4e58d21acc875bb0deb84d33
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Sat Oct 07 11:20:09 2017 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR17Q2.4/org.openbravo.retail.posterminal/rev/db7b26db5fc42fbb4e58d21acc875bb0deb84d33 [^]

Fixed issue 37009 : 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
---