Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040729Retail ModulesWeb POSpublic2019-03-07 12:352019-05-02 15:17
malsasua 
javierRodriguez 
urgentcriticalalways
closedfixed 
5
 
RR19Q2RR19Q2 
marvintm
No
0040729: sales orders are missing when environment is updated from 17Q3 to 18Q3
when there are sales orders pending to sync in the terminal, and system is updated from 17Q3 (or before) to 18Q3 (or higher), the sales orders never are synced to the backoffice.
[POS]
. in 17Q3
. go offline
. complete Sales Order SO1 -> record is stored in message local table

. update to 18Q3
. go online
. the records in local table are deleted, but sales order SO1 is not sent to backoffice -> there is not any record in Data IMport Entry with this sales order

It seems that this problem is generated by Terminal Log functionality, as it is changing the table "message" structure (see attachments)
No tags attached.
blocks defect 0040336 closed javierRodriguez sales orders are missing when environment is updated from 17Q3 to 18Q3 
Issue History
2019-04-30 14:38javierRodriguezTypedefect => backport
2019-04-30 14:38javierRodriguezTarget Version => RR19Q2
2019-04-30 14:59hgbotCheckin
2019-04-30 14:59hgbotNote Added: 0111389
2019-04-30 14:59hgbotStatusscheduled => resolved
2019-04-30 14:59hgbotResolutionopen => fixed
2019-04-30 14:59hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/d8e541e2640072aa6f992bcd1e209b68ea9cbc05 [^] => http://code.openbravo.com/retail/backports/3.0RR19Q2/org.openbravo.mobile.core/rev/6d9529275e19753d97409bebf61dd584a1054679 [^]
2019-05-02 12:21hgbotCheckin
2019-05-02 12:21hgbotNote Added: 0111431
2019-05-02 15:17marvintmReview Assigned To => marvintm
2019-05-02 15:17marvintmStatusresolved => closed
2019-05-02 15:17marvintmFixed in Version => RR19Q2

Notes
(0111389)
hgbot   
2019-04-30 14:59   
Repository: retail/backports/3.0RR19Q2/org.openbravo.mobile.core
Changeset: 6d9529275e19753d97409bebf61dd584a1054679
Author: Javier Rodriguez <javier.rodriguez <at> openbravo.com>
Date: Tue Apr 30 14:57:46 2019 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR19Q2/org.openbravo.mobile.core/rev/6d9529275e19753d97409bebf61dd584a1054679 [^]

Fixed issue 40729: sales orders are missing when environment is updated from 17Q3 to 18Q3

Created a new function to check if there is any data to sync in message table before drop all local database

if there is something, the app will try to sync all this data. if any data failed, A pop up will be shown and it will
force to relog again.

there is also a modification in sendAllMessages function wich allow as to add a callback and also a errorcalback

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0111431)
hgbot   
2019-05-02 12:21   
Repository: retail/backports/3.0RR19Q2/org.openbravo.mobile.core
Changeset: 3a25838878ff11df5d88e91b3262c85613629e70
Author: Javier Rodriguez <javier.rodriguez <at> openbravo.com>
Date: Thu May 02 12:21:22 2019 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR19Q2/org.openbravo.mobile.core/rev/3a25838878ff11df5d88e91b3262c85613629e70 [^]

Related to issue 40729

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