Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046532Retail ModulesWeb POSpublic2021-05-06 08:382021-05-11 08:24
marvintm 
ranjith_qualiantech_com 
normalmajorhave not tried
closedfixed 
5
 
RR21Q1.2RR21Q1.2 
No
0046532: Cancel and replace fails when used from ExternalOrderLoader
ExternalOrderLoader can be used to Cancel&Replace an order after it was implemented in the following issue:

https://issues.openbravo.com/view.php?id=45423 [^]

However, it currently fails if used because of an "OutDatedDataChangeException" error. This error happens because in C&R the canceledorder needs to be specified, but then the concurrency modification check is performed. This problem is avoided in the Cancel order flow because there the check is disabled. The same thing should be done for the C&R flow
Download the postman from the Retail API repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api/-/blob/master/examples/Retail%20API.postman_collection.json [^]

Execute the "Import Order - Order with consistent id (to C&R later)" request (in Order folder). An order will be created in the backend.
Execute the "Import Order - Order cancel and replace" request (in Order folder). Verify that it fails with OutDatedDataChangeException exception.
The disableConcurrencyCheck method should also be called in the C&R flow.
No tags attached.
blocks defect 0046529 closed ranjith_qualiantech_com Cancel and replace fails when used from ExternalOrderLoader 
Issue History
2021-05-06 08:39marvintmTypedefect => backport
2021-05-06 08:39marvintmTarget Version => RR21Q1.2
2021-05-06 11:54ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-05-10 15:27hgbotNote Added: 0127949
2021-05-10 16:10hgbotResolutionopen => fixed
2021-05-10 16:10hgbotStatusscheduled => closed
2021-05-10 16:10hgbotNote Added: 0127957
2021-05-10 16:10hgbotFixed in Version => RR21Q1.2
2021-05-10 16:10hgbotNote Added: 0127958
2021-05-10 18:25marvintmStatusclosed => new
2021-05-10 18:25marvintmResolutionfixed => open
2021-05-10 18:25marvintmFixed in VersionRR21Q1.2 =>
2021-05-11 08:14hgbotNote Added: 0127973
2021-05-11 08:21ranjith_qualiantech_comStatusnew => scheduled
2021-05-11 08:24hgbotResolutionopen => fixed
2021-05-11 08:24hgbotStatusscheduled => closed
2021-05-11 08:24hgbotNote Added: 0127977
2021-05-11 08:24hgbotFixed in Version => RR21Q1.2
2021-05-11 08:24hgbotNote Added: 0127978

Notes
(0127949)
hgbot   
2021-05-10 15:27   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/407 [^]
(0127957)
hgbot   
2021-05-10 16:10   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/407 [^]
(0127958)
hgbot   
2021-05-10 16:10   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: aa34f4d8e4ffc9eb6a55d88505ad8951f4af81f7
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-05-10T18:49:43+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/aa34f4d8e4ffc9eb6a55d88505ad8951f4af81f7 [^]

Fixed ISSUE-46532: Transform CR Details in ExternalOrderLoader

---
M src/org/openbravo/retail/posterminal/ExternalOrderLoader.java
---
(0127973)
hgbot   
2021-05-11 08:14   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/409 [^]
(0127977)
hgbot   
2021-05-11 08:24   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/409 [^]
(0127978)
hgbot   
2021-05-11 08:24   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 5d5078e694da38e215fcbe83bedaa34335865549
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-05-11T11:42:04+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/5d5078e694da38e215fcbe83bedaa34335865549 [^]

Fixed ISSUE-46532: Skip Last Modification validation when doing CR from EOL

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