Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036809Retail ModulesWeb POSpublic2017-09-08 09:112017-10-02 10:57
adrianromero 
jorge-garcia 
urgentmajorhave not tried
closedfixed 
5
 
RR17Q4 
marvintm
No
0036809: When refreshing (F5) in all windows but Web POS, the window appears before finishing loading all models
In any other window different than main Web POS window, for example Cashup, Cash Managemement, ... If the user press F5 to reload the page, the loading message appears but when the progress bar is around 25% the window is displayed. it does not wait for all models to be loaded. Also it can be observed that in the console window of the web browser, the models continue loading.

The same is happening with Open till. The window gets opened before the models get loaded even if it is a Full Refresh.
* Log in Web POS as Vallblanca in live builds
* Navigate to Cash Up
* Open Developer tools and go to Console tab.
* Refresh the web browser. Press F5
* Observe that when the loading bar is around 25% while loading Tax Rate Model the cashup window appears.
* Observe in the console the log traces showing that models continue loading while the user can operate the Cashup window.
No window should be opened if the models are not properly loaded
No tags attached.
related to defect 0035795 closed ranjith_qualiantech_com If you cancel in Count Cash tab, the WebPOS could enter in a inconsistent status 
depends on backport 0036980RR17Q3.1 closed jorge-garcia When refreshing (F5) in all windows but Web POS, the window appears before finishing loading all models 
depends on backport 0036981RR17Q2.4 closed jorge-garcia When refreshing (F5) in all windows but Web POS, the window appears before finishing loading all models 
has duplicate defect 0036241 closed guillermogil With bad connectivity and pagination WebPOS can get loaded even without all the information 
Issue History
2017-09-08 09:11adrianromeroNew Issue
2017-09-08 09:11adrianromeroAssigned To => Retail
2017-09-08 09:11adrianromeroTriggers an Emergency Pack => No
2017-09-21 15:14guillermogilDescription Updatedbug_revision_view_page.php?rev_id=15960#r15960
2017-09-21 15:20guillermogilIssue Monitored: guillermogil
2017-09-21 15:21guillermogilDescription Updatedbug_revision_view_page.php?rev_id=15961#r15961
2017-09-21 15:21guillermogilProposed Solution updated
2017-09-25 16:51egoitzResolution time => 1507500000
2017-09-25 16:58egoitzIssue Monitored: egoitz
2017-09-25 16:58egoitzIssue Monitored: malsasua
2017-09-25 16:59egoitzRelationship addedrelated to 0035795
2017-09-28 09:13hgbotCheckin
2017-09-28 09:13hgbotNote Added: 0099640
2017-09-28 09:14hgbotCheckin
2017-09-28 09:14hgbotNote Added: 0099641
2017-09-28 09:14hgbotStatusnew => resolved
2017-09-28 09:14hgbotResolutionopen => fixed
2017-09-28 09:14hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/bee387376275f82b0da54f8dbf69206d24d73632 [^]
2017-09-28 09:18jorge-garciaRelationship addedhas duplicate 0036241
2017-09-28 09:27marvintmAssigned ToRetail => jorge-garcia
2017-09-29 15:23hgbotCheckin
2017-09-29 15:23hgbotNote Added: 0099682
2017-10-02 10:56marvintmStatusresolved => new
2017-10-02 10:56marvintmResolutionfixed => open
2017-10-02 10:57marvintmStatusnew => scheduled
2017-10-02 10:57marvintmStatusscheduled => resolved
2017-10-02 10:57marvintmFixed in Version => RR17Q4
2017-10-02 10:57marvintmResolutionopen => fixed
2017-10-02 10:57marvintmReview Assigned To => marvintm
2017-10-02 10:57marvintmStatusresolved => closed

Notes
(0099640)
hgbot   
2017-09-28 09:13   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c85940e2ef34785e63bb674c40e4a514df11151d
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Sep 25 10:48:35 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c85940e2ef34785e63bb674c40e4a514df11151d [^]

Related to issue 36809: When refreshing in all windows but Web POS the window
appears before finishing loading all models

Change the listener to indicate the models has changed.

---
M web/org.openbravo.retail.posterminal/js/data/windowmodel.js
---
(0099641)
hgbot   
2017-09-28 09:14   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: bee387376275f82b0da54f8dbf69206d24d73632
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Sep 27 12:23:15 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/bee387376275f82b0da54f8dbf69206d24d73632 [^]

Fixed issue 36809: When refreshing in all windows but Web POS the window
appears before finishing loading all models

The solution is to wait until all models are loaded.

Fix some problems when navigating to other windows such as Cashup,
CashManagement and CashUpPartial.

Also fixed some problems if the user refresh the webPOS in a different
windows apart from pointofsale.

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
M web/org.openbravo.mobile.core/source/data/ob-windowmodel.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0099682)
hgbot   
2017-09-29 15:23   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 54c1a4ec32615945d1292ebdaff520f88af15709
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Sep 28 14:54:17 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/54c1a4ec32615945d1292ebdaff520f88af15709 [^]

Related to issue 36809: When refreshing in all windows but Web POS the window
appears before finishing loading all models

Check if model to be loaded has modelName defined. If not, the model will
not be loaded and used in the aplication.

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