Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038894Retail ModulesWeb POSpublic2018-05-28 11:352018-07-05 11:11
malsasua 
jorge-garcia 
normalmajorsometimes
closedfixed 
5
 
RR18Q2.1RR18Q2.1 
guilleaer
No
0038894: POS is ready but master refresh process is running yet
Sometimes, the POS is ready to do sales, but the master refresh process continue executing in background.
Sometimes:
. slow network
. execute master refresh
No tags attached.
blocks defect 0038640 closed jorge-garcia POS is ready but master refresh process is running yet 
Issue History
2018-07-05 08:27jorge-garciaTypedefect => backport
2018-07-05 08:27jorge-garciaTarget Version => RR18Q2.1
2018-07-05 10:25hgbotCheckin
2018-07-05 10:25hgbotNote Added: 0105620
2018-07-05 10:26hgbotCheckin
2018-07-05 10:26hgbotNote Added: 0105622
2018-07-05 10:26hgbotStatusscheduled => resolved
2018-07-05 10:26hgbotResolutionopen => fixed
2018-07-05 10:26hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/76b04df18c4c746eb6c64dc621962f8d2aeb1dc1 [^] => http://code.openbravo.com/retail/backports/3.0RR18Q2.1/org.openbravo.mobile.core/rev/c67e30ce3a8cbe3bd38984018e06d72370b8c7c8 [^]
2018-07-05 11:11guilleaerReview Assigned Tomarvintm => guilleaer
2018-07-05 11:11guilleaerStatusresolved => closed
2018-07-05 11:11guilleaerFixed in Version => RR18Q2.1

Notes
(0105620)
hgbot   
2018-07-05 10:25   
Repository: retail/backports/3.0RR18Q2.1/org.openbravo.retail.posterminal
Changeset: cef0c07afc0f75333a3ef6cb0872132623e237e1
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Jul 05 08:45:57 2018 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR18Q2.1/org.openbravo.retail.posterminal/rev/cef0c07afc0f75333a3ef6cb0872132623e237e1 [^]

Related to issue 38894: POS is ready but master refresh process is running yet

If manifest fails, OK button callback should launch showLoading window.

Added flag terminalCorrectlyLoadedFromBackend to terminal object to indicate
if terminal request has succedeed.

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0105622)
hgbot   
2018-07-05 10:26   
Repository: retail/backports/3.0RR18Q2.1/org.openbravo.mobile.core
Changeset: c67e30ce3a8cbe3bd38984018e06d72370b8c7c8
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Jul 05 08:50:38 2018 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR18Q2.1/org.openbravo.mobile.core/rev/c67e30ce3a8cbe3bd38984018e06d72370b8c7c8 [^]

Fixed issue 38894: POS is ready but master refresh process is running yet

The solution is to serialize the login process to wait until all datasources
are loaded in order to show the main window.

LoadRegistered windows now supports a callback.

The datasource array is a list of all datasources for the registered windows
instead of been a array for each windows defined.

Added callback if incremental refresh fail to render main window.

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---