Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037173Retail ModulesWeb POSpublic2017-08-16 12:152017-10-31 09:27
jorge-garcia 
jorge-garcia 
urgentmajorhave not tried
closedfixed 
5
 
RR17Q2.4RR17Q2.4 
marvintm
No
0037173: A sanity check must be added to the login to avoid some scenarios with corrupted data
The idea of this sanity check is simple and it's ONLY used in full refresh:
 * During the login, data from masterdata is loaded to the webPOS
 * This sanity check will compare the number of records sent from the server with the number of records present in the client-side database.
 * Here could be two scenarios:
   * Scenario 1 - All models has all the data sent by the server
     - In this case nothing happens and the user could work as usual
   * Scenario 2 - Some models doesn't have the same number of records in websql and in the server
     - In this case, a popup will be shown to force to the user to refresh again all the models
Refer to the description to understand the problem
No tags attached.
blocks defect 0036654 closed jorge-garcia A sanity check must be added to the login to avoid some scenarios with corrupted data 
Issue History
2017-10-27 09:17jorge-garciaTypedefect => backport
2017-10-27 09:17jorge-garciaTarget Version => RR17Q2.4
2017-10-27 12:10hgbotCheckin
2017-10-27 12:10hgbotNote Added: 0100102
2017-10-27 12:11hgbotCheckin
2017-10-27 12:11hgbotNote Added: 0100105
2017-10-27 12:11hgbotStatusscheduled => resolved
2017-10-27 12:11hgbotResolutionopen => fixed
2017-10-27 12:11hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/443b0a0eb45eeca9e03efe0080f6632ad046c624 [^] => http://code.openbravo.com/retail/backports/3.0RR17Q2.4/org.openbravo.mobile.core/rev/c42830ff471853f2ee067a3a91d3b592ce89365a [^]
2017-10-31 09:27marvintmStatusresolved => closed
2017-10-31 09:27marvintmFixed in Version => RR17Q2.4
2017-11-17 10:50jorge-garciaRelationship addedcauses 0037287

Notes
(0100102)
hgbot   
2017-10-27 12:10   
Repository: retail/backports/3.0RR17Q2.4/org.openbravo.retail.posterminal
Changeset: f65b2937e6723252d834f6e12d1f4e60dd600ffb
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Oct 27 09:40:14 2017 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR17Q2.4/org.openbravo.retail.posterminal/rev/f65b2937e6723252d834f6e12d1f4e60dd600ffb [^]

Related to issue 37173: A sanity check must be added to the login to avoid some
scenarios with corrupted data

Change Discounts query to discard promotions deactivate during a full request.

---
M src/org/openbravo/retail/posterminal/master/Discount.java
---
(0100105)
hgbot   
2017-10-27 12:11   
Repository: retail/backports/3.0RR17Q2.4/org.openbravo.mobile.core
Changeset: c42830ff471853f2ee067a3a91d3b592ce89365a
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Oct 27 09:42:04 2017 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR17Q2.4/org.openbravo.mobile.core/rev/c42830ff471853f2ee067a3a91d3b592ce89365a [^]

Fixed issue 37173: A sanity check must be added to the login to avoid some
scenarios with corrupted data

It’s necessary to add a check during the login of WebPOS to be sure all the
data is correctly save in the client-side.

This check is only done during a full refresh, when we can be sure that the
number of records retrieved from the server are all the records that should
be added in the client.

In addition, some new log messages has been added to help us to debug
possible errors in the future.

---
M src/org/openbravo/mobile/core/process/ProcessHQLQuery.java
M web/org.openbravo.mobile.core/source/data/ob-dal.js
M web/org.openbravo.mobile.core/source/data/ob-datasource.js
---