Openbravo Issue Tracking System - Retail Modules
View Issue Details
0021954Retail ModulesWeb POSpublic2012-10-16 17:142012-10-31 10:55
marvintm 
marvintm 
normalmajorsometimes
closedfixed 
5
 
 
No
0021954: Under strange circumstances, the POS may send the same sales order twice
Under very specific circumstances, it is possible that the Web POS sends the same sales order twice to the backend, so the order would be duplicated.

For this to happen, the POS needs to go to offline mode while an order is being sent to the backend.
It is very difficult to reproduce this issue, the most reliable way is to add a large amount of artificial time to the OrderLoader process, and then cut the connection to the server while the request to save an order is being done.
The retriggering of an order will be detected, and in this case, the order will only be saved when an equivalent order doesn't exist in the database.
No tags attached.
Issue History
2012-10-16 17:14marvintmNew Issue
2012-10-16 17:14marvintmAssigned To => marvintm
2012-10-16 17:17hgbotCheckin
2012-10-16 17:17hgbotNote Added: 0053377
2012-10-16 17:17hgbotStatusnew => resolved
2012-10-16 17:17hgbotResolutionopen => fixed
2012-10-16 17:17hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6bf66d8867f43bedce8ff97dd62fd1511e31e4ba [^]
2012-10-16 17:25hgbotCheckin
2012-10-16 17:25hgbotNote Added: 0053394
2012-10-16 17:25hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6bf66d8867f43bedce8ff97dd62fd1511e31e4ba [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-discounts/rev/6bf66d8867f43bedce8ff97dd62fd1511e31e4ba [^]
2012-10-22 19:18hgbotCheckin
2012-10-22 19:18hgbotNote Added: 0053550
2012-10-22 19:18hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-discounts/rev/6bf66d8867f43bedce8ff97dd62fd1511e31e4ba [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-quotations/rev/6bf66d8867f43bedce8ff97dd62fd1511e31e4ba [^]
2012-10-24 17:28adrianromeroNote Added: 0053645
2012-10-24 17:28adrianromeroStatusresolved => closed
2012-10-31 09:37hgbotCheckin
2012-10-31 09:37hgbotNote Added: 0053879
2012-10-31 09:37hgbotStatusclosed => resolved
2012-10-31 09:37hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-quotations/rev/6bf66d8867f43bedce8ff97dd62fd1511e31e4ba [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-gal/rev/6bf66d8867f43bedce8ff97dd62fd1511e31e4ba [^]
2012-10-31 10:55adrianromeroStatusresolved => closed

Notes
(0053377)
hgbot   
2012-10-16 17:17   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 6bf66d8867f43bedce8ff97dd62fd1511e31e4ba
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Oct 16 17:16:11 2012 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6bf66d8867f43bedce8ff97dd62fd1511e31e4ba [^]

Fixed issue 21954. The orders will no longer be duplicated:
- From now on, if an order is being re-sent during login, it will have an special flag.
- If this flag is set, the backend will check if the order already exists before creating it.

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
(0053394)
hgbot   
2012-10-16 17:25   
Repository: erp/pmods/org.openbravo.retail.posterminal-discounts
Changeset: 6bf66d8867f43bedce8ff97dd62fd1511e31e4ba
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Oct 16 17:16:11 2012 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-discounts/rev/6bf66d8867f43bedce8ff97dd62fd1511e31e4ba [^]

Fixed issue 21954. The orders will no longer be duplicated:
- From now on, if an order is being re-sent during login, it will have an special flag.
- If this flag is set, the backend will check if the order already exists before creating it.

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
(0053550)
hgbot   
2012-10-22 19:18   
Repository: erp/pmods/org.openbravo.retail.posterminal-quotations
Changeset: 6bf66d8867f43bedce8ff97dd62fd1511e31e4ba
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Oct 16 17:16:11 2012 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-quotations/rev/6bf66d8867f43bedce8ff97dd62fd1511e31e4ba [^]

Fixed issue 21954. The orders will no longer be duplicated:
- From now on, if an order is being re-sent during login, it will have an special flag.
- If this flag is set, the backend will check if the order already exists before creating it.

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
(0053645)
adrianromero   
2012-10-24 17:28   
Closed for RMP16
(0053879)
hgbot   
2012-10-31 09:37   
Repository: erp/pmods/org.openbravo.retail.posterminal-gal
Changeset: 6bf66d8867f43bedce8ff97dd62fd1511e31e4ba
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Oct 16 17:16:11 2012 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-gal/rev/6bf66d8867f43bedce8ff97dd62fd1511e31e4ba [^]

Fixed issue 21954. The orders will no longer be duplicated:
- From now on, if an order is being re-sent during login, it will have an special flag.
- If this flag is set, the backend will check if the order already exists before creating it.

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---