Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041831Retail ModulesWeb POSpublic2019-09-18 09:342019-11-04 11:22
samuel_nicuesa 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
pi 
RR20Q1 
jorge-garcia
No
0041831: Incremental Refresh is not happening immediately if Time to Show incremental Refresh Popup = 0
Incremental Refresh is not happening immediately if Time to Show incremental Refresh Popup = 0
[BO]

- Login in Back Office.
- Using Posterminal CMS-1 navigate to pos terminal type.
- Configure:
    Time to Incrementally Refresh Masterdata = 1
    Time to Show incremental Refresh Popup = 0
[POS]

- Login in WEB POS.
- Modify the name of 1 product in BackOffice.
- The incremental Refresh will happen in 1 minute and the new product name will be loaded in Chrome Database.
- These changes won't be reflected in WEB POS until complete / delete the current ticket.
No tags attached.
related to feature request 0041027 closed gorka_gil Optimize masterdata incremental refresh process 
related to feature request 0041832 new Retail Wrong message is shown "Master data refresh will happen after this ticket is closed" 
Issue History
2019-09-18 09:34samuel_nicuesaNew Issue
2019-09-18 09:34samuel_nicuesaAssigned To => Retail
2019-09-18 09:34samuel_nicuesaResolution time => 1570572000
2019-09-18 09:34samuel_nicuesaTriggers an Emergency Pack => No
2019-09-18 09:45samuel_nicuesaNote Added: 0114622
2019-09-20 10:20gorka_gilRelationship addedrelated to 0041027
2019-09-20 10:32gorka_gilNote Added: 0114687
2019-09-20 10:36gorka_gilIssue Monitored: gorka_gil
2019-09-30 14:40ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-09-30 14:40ranjith_qualiantech_comStatusnew => scheduled
2019-10-03 04:54hgbotCheckin
2019-10-03 04:54hgbotNote Added: 0114894
2019-10-03 04:54hgbotStatusscheduled => resolved
2019-10-03 04:54hgbotResolutionopen => fixed
2019-10-03 04:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/34f062da4b007629bf7e05a283a5da6397f327b7 [^]
2019-10-04 08:20jorge-garciaReview Assigned To => jorge-garcia
2019-10-04 09:29jorge-garciaNote Added: 0114911
2019-10-04 09:29jorge-garciaStatusresolved => closed
2019-10-04 09:29jorge-garciaFixed in Version => RR20Q1
2019-10-17 11:30samuel_nicuesaSummaryIncremental Refresh is not happening inmediately if Time to Show incremental Refresh Popup = 0 => Incremental Refresh is not happening immediately if Time to Show incremental Refresh Popup = 0
2019-10-17 11:30samuel_nicuesaDescription Updatedbug_revision_view_page.php?rev_id=19512#r19512
2019-10-17 11:32samuel_nicuesaNote Added: 0115138
2019-10-17 14:06samuel_nicuesaStatusclosed => new
2019-10-17 18:31rafarodaIssue Monitored: rafaroda
2019-10-18 10:11samuel_nicuesaNote Edited: 0115138bug_revision_view_page.php?bugnote_id=0115138#r19526
2019-10-18 11:28ranjith_qualiantech_comStatusnew => scheduled
2019-10-18 12:40marvintmStatusscheduled => resolved
2019-10-18 12:40marvintmStatusresolved => closed
2019-11-04 11:22rafarodaRelationship addedrelated to 0041832

Notes
(0114622)
samuel_nicuesa   
2019-09-18 09:45   
https://drive.google.com/file/d/181MO06V37i1JELr8ziIMz5qj7a8j9ivm/view?usp=sharing [^]

https://drive.google.com/file/d/1EjufywduZKQpYDwgYd42Yvkeno1tT4zS/view?usp=sharing [^]
(0114687)
gorka_gil   
2019-09-20 10:32   
Tip for work with masterdata refresh:
- when masterdata timeout finish calls to OB.UTIL.loadModelsIncFunc()
- when the force popup timeout finish, or when navigate or when the ticket is closed it calls to OB.UTIL.checkRefreshMasterData()

Calling to this two functions for developing save the time to wait for the timeouts.

Also maybe this issue is just when finish the first function, if not defined the second timeout, call to the second function.
(0114894)
hgbot   
2019-10-03 04:54   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 34f062da4b007629bf7e05a283a5da6397f327b7
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Oct 03 08:22:58 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/34f062da4b007629bf7e05a283a5da6397f327b7 [^]

Fixed issue 41831 : MasterData should be saved in POS once all models are loaded in Incremental Refresh

* During Incremental Refresh, masterdataRefreshStatus willbe updated only when all models are loaded.
  So MasterData should be saved after that process

---
M web/org.openbravo.retail.posterminal/js/utils/ob-utilitiesuipos.js
---
(0114911)
jorge-garcia   
2019-10-04 09:29   
Code reviewed and tested
(0115138)
samuel_nicuesa   
2019-10-17 11:32   
(edited on: 2019-10-18 10:11)
Today I cannot reproduce the issue in Live.
Please ignore this note and close the issues

While testing this solution in Livebuils using the following configuration
->Time to Incrementally Refresh Masterdata = 1
->Time to Show incremental Refresh Popup = 0
the incremental refresh is not happening after 1 minute.
If I execute the refresh data the changes are reflected in WEB POS
-Test Done:
1) Configure the terminal type
->Time to Incrementally Refresh Masterdata = 1
->Time to Show incremental Refresh Popup = 0
2) Change one product name
3) Login in WEB POS
5) Check the configuration 1 - 0 in the chrome console
6) Check the product name and it has not changed
7) After 1 or 2 minutes the product doesn't change because of the incremental is not executed in the background
8) Click on refresh data and then the product name changes.

See the video:
https://drive.google.com/file/d/1njOMdEPYpHCwDLLSlQowUvM2YNpJDN8V/view?usp=sharing [^]