Openbravo Issue Tracking System - Retail Modules
View Issue Details
0042566Retail ModulesWeb POSpublic2019-10-15 13:092019-12-25 21:18
aferraz 
ranjith_qualiantech_com 
normalmajorhave not tried
closedfixed 
5
 
RR19Q3.2RR19Q3.2 
guilleaer
Production - Confirmed Stable
2019-02-21
RR19Q2
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/fd2a851dbf79 [^]
No
0042566: Error when updating an order using ExternalOrderLoader
Error when updating an order using ExternalOrderLoader

Previously, OrderLoader only checked loaded property from order json when updating an existing order. Now, OrderLoader checks loaded property also from order lines json.

In case we are updating the order using the ExternalOrderLoader, loaded property is only added to order json, but not to order lines json, and OutDatedDataChangeException exception is thrown in OrderLoader.
Install retail pack modules.
Install Magento Connector:
- org.openbravo.externaldata.integration
- org.openbravo.service.external.integration
- org.openbravo.service.integration.magento.core
- org.openbravo.service.integration.magento.mappings

Run MagentoImportOrderEntityTest test two times:
- The first time it will run success because it will import new orders in OB.
- The second time it will fail because it will update those orders in OB.
Add loaded property also to order lines json in ExternalOrderLoader.disableConcurrencyCheck().
No tags attached.
blocks defect 0042020 closed ranjith_qualiantech_com Error when updating an order using ExternalOrderLoader 
Issue History
2019-12-16 11:41ranjith_qualiantech_comTypedefect => backport
2019-12-16 11:41ranjith_qualiantech_comTarget VersionRR20Q1 => RR19Q3.2
2019-12-24 11:55hgbotCheckin
2019-12-24 11:55hgbotNote Added: 0116504
2019-12-24 11:55hgbotStatusscheduled => resolved
2019-12-24 11:55hgbotResolutionopen => fixed
2019-12-24 11:55hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR19Q3.2/org.openbravo.retail.posterminal/rev/f03f3f451a2a346c50d8ad7faea9c7243b197eba [^]
2019-12-25 21:18guilleaerReview Assigned To => guilleaer
2019-12-25 21:18guilleaerStatusresolved => closed
2019-12-25 21:18guilleaerFixed in Version => RR19Q3.2

Notes
(0116504)
hgbot   
2019-12-24 11:55   
Repository: retail/backports/3.0RR19Q3.2/org.openbravo.retail.posterminal
Changeset: f03f3f451a2a346c50d8ad7faea9c7243b197eba
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Dec 24 16:24:55 2019 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR19Q3.2/org.openbravo.retail.posterminal/rev/f03f3f451a2a346c50d8ad7faea9c7243b197eba [^]

Fixed issue 42566 : Property loaded should be added to OrderLine JSON to avoid Concurrency Check

---
M src/org/openbravo/retail/posterminal/ExternalOrderLoader.java
---