Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030435Retail ModulesWeb POSpublic2015-07-27 14:432015-07-30 13:25
Orekaria 
Orekaria 
normalmajoralways
closedfixed 
5
 
RR15Q2.3RR15Q2.3 
guilleaer
No
0030435: The 'syncAllModels ' process is reporting that the server synchronization has finished before the client has been updated
The synchronization is executing the success callbacks before the last stage of the synchronization, that is, updating the client tables, has been done.
In the 'ob-terminal-model.js' file, 'removeSyncedElemsCallback' method, verify that the models are being asynchronously flushed
No tags attached.
blocks defect 0030433RR15Q4 closed Orekaria The 'syncAllModels ' process is reporting that the server synchronization has finished before the client has been updated 
patch 1319.patch (2,225) 2015-07-27 14:44
https://issues.openbravo.com/file_download.php?file_id=8306&type=bug
Issue History
2015-07-27 14:44OrekariaTypedefect => backport
2015-07-27 14:44OrekariaTarget Version => RR15Q2.3
2015-07-27 14:44OrekariaFile Added: 1319.patch
2015-07-27 14:51OrekariaSummaryThe 'syncAllModels ' process is reporting that the server synchronization has finished before it has actually finished => The 'syncAllModels ' process is reporting that the server synchronization has finished before the client has been updated
2015-07-29 17:10OrekariaNote Added: 0079118
2015-07-30 11:17hgbotCheckin
2015-07-30 11:17hgbotNote Added: 0079126
2015-07-30 11:17hgbotStatusscheduled => resolved
2015-07-30 11:17hgbotResolutionopen => fixed
2015-07-30 11:17hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR15Q2.3/org.openbravo.mobile.core/rev/c6fab3b362164c0c557ae67442e95702f0f5f45d [^]
2015-07-30 13:25guilleaerReview Assigned To => guilleaer
2015-07-30 13:25guilleaerNote Added: 0079130
2015-07-30 13:25guilleaerStatusresolved => closed
2015-07-30 13:25guilleaerFixed in Version => RR15Q2.3

Notes
(0079118)
Orekaria   
2015-07-29 17:10   
Please note that the attached patch is not the solution, but a prevention of the consequences
(0079126)
hgbot   
2015-07-30 11:17   
Repository: retail/backports/3.0RR15Q2.3/org.openbravo.mobile.core
Changeset: c6fab3b362164c0c557ae67442e95702f0f5f45d
Author: Rafa Alonso <ral <at> openbravo.com>
Date: Thu Jul 30 11:16:49 2015 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR15Q2.3/org.openbravo.mobile.core/rev/c6fab3b362164c0c557ae67442e95702f0f5f45d [^]

Fixes issue 30435: Update only the 'isBeingProcessed' field when synchronized

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0079130)
guilleaer   
2015-07-30 13:25   
Here I'm explain all the details that I've about this issue, which as explained above is not completely resolved but it is prevented by this fix.

The issue was detected because the cashup table, being more specific total retail transactions field suddenly is updated to a previous status. It creates a big problem because calculated total retail transactions are not OK.

According to the information that we have saw thanks to the logs included in customer, we know that when we recover the connectivity after a offline period this issue is more reproducible than in other scenarios.

This issue will be closed, because the problem is fixed, but some analysis should be done there to ensure that we are doing that we want during the synchronization.