Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036833Retail ModulesWeb POSpublic2017-08-24 13:002017-09-14 15:48
maite 
migueldejuana 
urgentmajoralways
closedfixed 
5
 
RR17Q2.3RR17Q2.3 
marvintm
No
0036833: Duplicated records in c_import_entry_archive under some circumstances
Receipts paid in the terminal are considered by RunSynchProcess to move them from local c_order table to message table. This is not hapenning in same transaction so in case terminal is reloaded (F5) when message has been created but order has not been deleted it is possible that 2 different records in message table are created for same order
1. Configure bad networking conditions
2. Create a ticket and pay it
3. Press F5 immediately to reload terminal
4. Check the backend, and verify that two import entries were created for the same ticket. This is wrong.
No tags attached.
blocks defect 0036712 closed migueldejuana Duplicated records in c_import_entry_archive under some circumstances 
Issue History
2017-09-11 19:12marvintmTypedefect => backport
2017-09-11 19:12marvintmTarget Version => RR17Q2.3
2017-09-12 10:34hgbotCheckin
2017-09-12 10:34hgbotNote Added: 0098970
2017-09-12 10:34hgbotStatusscheduled => resolved
2017-09-12 10:34hgbotResolutionopen => fixed
2017-09-12 10:34hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7d593fa0bdf68b2353f0cdf1bc9e9a38fedb6be6 [^] => http://code.openbravo.com/retail/backports/3.0RR17Q2.3/org.openbravo.mobile.core/rev/8622d312996f988b4595433d5931b7cfa47ab219 [^]
2017-09-12 13:50marvintmStatusresolved => closed
2017-09-12 13:50marvintmFixed in Version => RR17Q2.3
2017-09-14 15:48marvintmAssigned ToRetail => migueldejuana

Notes
(0098970)
hgbot   
2017-09-12 10:34   
Repository: retail/backports/3.0RR17Q2.3/org.openbravo.mobile.core
Changeset: 8622d312996f988b4595433d5931b7cfa47ab219
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue Sep 12 10:33:35 2017 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR17Q2.3/org.openbravo.mobile.core/rev/8622d312996f988b4595433d5931b7cfa47ab219 [^]

Fixed issue 0036833: Duplicated records in c_import_entry_archive under some circumstances

- Creating a message and deleting the related model in the local database must be in the same transaction.

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