Openbravo Issue Tracking System - Retail Modules
View Issue Details
0042565Retail ModulesWeb POSpublic2019-10-15 13:092019-12-30 13:22
aferraz 
ranjith_qualiantech_com 
normalmajorhave not tried
closedfixed 
5
 
RR19Q4.1RR19Q4.1 
guilleaer
Production - Confirmed Stable
2019-02-21
RR19Q2
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/fd2a851dbf79 [^]
No
0042565: 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 => RR19Q4.1
2019-12-24 12:00hgbotCheckin
2019-12-24 12:00hgbotNote Added: 0116505
2019-12-24 12:00hgbotStatusscheduled => resolved
2019-12-24 12:00hgbotResolutionopen => fixed
2019-12-24 12:00hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR19Q4.1/org.openbravo.retail.posterminal/rev/93008c916585837f7eccb79b9b7430edf59d426d [^]
2019-12-30 13:22guilleaerReview Assigned To => guilleaer
2019-12-30 13:22guilleaerStatusresolved => closed
2019-12-30 13:22guilleaerFixed in Version => RR19Q4.1

Notes
(0116505)
hgbot   
2019-12-24 12:00   
Repository: retail/backports/3.0RR19Q4.1/org.openbravo.retail.posterminal
Changeset: 93008c916585837f7eccb79b9b7430edf59d426d
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Dec 24 16:30:47 2019 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR19Q4.1/org.openbravo.retail.posterminal/rev/93008c916585837f7eccb79b9b7430edf59d426d [^]

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

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