Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0046529 | Retail Modules | Web POS | public | 2021-05-06 08:38 | 2021-05-11 08:06 |
|
Reporter | marvintm | |
Assigned To | ranjith_qualiantech_com | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR21Q3 | |
Merge Request Status | approved |
Review Assigned To | |
OBNetwork customer | Gold |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0046529: Cancel and replace fails when used from ExternalOrderLoader |
Description | 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 |
Steps To Reproduce | 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. |
Proposed Solution | The disableConcurrencyCheck method should also be called in the C&R flow. |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | feature request | 0045423 | | closed | javietxe | Add Cancel and replace in ExternalOrderLoader | depends on | backport | 0046531 | RR21Q2 | closed | ranjith_qualiantech_com | Cancel and replace fails when used from ExternalOrderLoader | depends on | backport | 0046532 | RR21Q1.2 | closed | ranjith_qualiantech_com | Cancel and replace fails when used from ExternalOrderLoader |
|
Attached Files | fixIssue46529.patch (865) 2021-05-06 08:40 https://issues.openbravo.com/file_download.php?file_id=15656&type=bug
fixIssue46529-2.patch (2,080) 2021-05-10 18:14 https://issues.openbravo.com/file_download.php?file_id=15684&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2021-05-06 08:38 | marvintm | New Issue | |
2021-05-06 08:38 | marvintm | Assigned To | => Retail |
2021-05-06 08:38 | marvintm | OBNetwork customer | => No |
2021-05-06 08:38 | marvintm | Triggers an Emergency Pack | => No |
2021-05-06 08:39 | marvintm | OBNetwork customer | No => Gold |
2021-05-06 08:39 | marvintm | Resolution time | => 1621461600 |
2021-05-06 08:39 | marvintm | Relationship added | related to 0045423 |
2021-05-06 08:39 | marvintm | Status | new => scheduled |
2021-05-06 08:40 | marvintm | File Added: fixIssue46529.patch | |
2021-05-06 08:42 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2021-05-10 07:15 | hgbot | Merge Request Status | => open |
2021-05-10 07:15 | hgbot | Note Added: 0127910 | |
2021-05-10 07:39 | hgbot | Merge Request Status | open => approved |
2021-05-10 07:39 | hgbot | Resolution | open => fixed |
2021-05-10 07:39 | hgbot | Status | scheduled => closed |
2021-05-10 07:39 | hgbot | Note Added: 0127918 | |
2021-05-10 07:39 | hgbot | Fixed in Version | => RR21Q3 |
2021-05-10 07:39 | hgbot | Note Added: 0127919 | |
2021-05-10 18:12 | marvintm | Note Added: 0127965 | |
2021-05-10 18:12 | marvintm | Status | closed => new |
2021-05-10 18:12 | marvintm | Resolution | fixed => open |
2021-05-10 18:12 | marvintm | Fixed in Version | RR21Q3 => |
2021-05-10 18:14 | marvintm | File Added: fixIssue46529-2.patch | |
2021-05-11 07:52 | hgbot | Note Added: 0127970 | |
2021-05-11 08:06 | hgbot | Note Added: 0127971 | |
2021-05-11 08:06 | hgbot | Resolution | open => fixed |
2021-05-11 08:06 | hgbot | Status | new => closed |
2021-05-11 08:06 | hgbot | Fixed in Version | => RR21Q3 |
2021-05-11 08:06 | hgbot | Note Added: 0127972 | |
Notes |
|
(0127910)
|
hgbot
|
2021-05-10 07:15
|
|
|
|
(0127918)
|
hgbot
|
2021-05-10 07:39
|
|
|
|
(0127919)
|
hgbot
|
2021-05-10 07:39
|
|
|
|
|
Instead, it would be better if canceledorder would not be required at all. This would make the API easier to use. |
|
|
(0127970)
|
hgbot
|
2021-05-11 07:52
|
|
|
|
(0127971)
|
hgbot
|
2021-05-11 08:06
|
|
|
|
(0127972)
|
hgbot
|
2021-05-11 08:06
|
|
|