Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0048386 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Cash up | major | have not tried | 2022-01-12 11:33 | 2022-02-16 08:54 | |||
Reporter | ludmila_ursu | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | PostgreSQL | Java version | 11.0.11 | |||
OS Version | Database version | 10 | Ant version | 1.10.5 | ||||
Product Version | RR20Q3.4 | SCM revision | ||||||
Merge Request Status | approved | |||||||
Review Assigned To | ||||||||
OBNetwork customer | OBPS | |||||||
Support ticket | 36623 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0048386: A cancel and replace order causes an EWI | |||||||
Description | After doing one sale, customer_1 wanted to cancel and replace the first order (the replace was a new order, for 0.01 E). This cancel and replace order provoked an EWI in the backoffice: Caused by: org.openbravo.base.exception.OBException: A different object with the same identifier value was already associated with the session : [Order#30F63F17B28CB0ED25D412E32164F01D] at org.openbravo.erpCommon.businessUtility.ReplaceOrderExecutor.cancelAndReplaceOrder(ReplaceOrderExecutor.java:167) The same error was experienced by customer_2 (ZenDesk ticket 23027). The fix that was applied was this one: https://gitlab.com/obcustomers/ZOD/openbravo-20q1/-/commit/c88ebddf7c56b0d3db7039591196fe4281f63013 [^] This corrected the error. For customer_1, the service team applied the same fix. At the present moment, the EWI is solved. We are not certain if correction was OK, because of applying the fix, or because of restarting the server (during deployment). But since the defect seems to be present in the core of Openbravo, can you please check, if the fix mentioned, must be also applied to other customers ? Thank you for your help. I remain available if needed. | |||||||
Steps To Reproduce | Steps to reproduce: The steps are: 1. Make a sales. 2. Make a Cancel & Replace of the sales that you did in the step 1. 3. Check that the first order was canceled with the second that you do in step 2. | |||||||
Proposed Solution | Proposed solution Apply this fix: https://gitlab.com/obcustomers/ZOD/openbravo-20q1/-/commit/c88ebddf7c56b0d3db7039591196fe4281f63013 [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0134778) hgbot (developer) 2022-02-04 06:57 |
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/523 [^] |
(0135044) hgbot (developer) 2022-02-16 08:54 |
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/523 [^] |
(0135045) hgbot (developer) 2022-02-16 08:54 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/openbravo [^] Changeset: 48c4b8ab934044bd4d3efd6c951cd71c561c454d Author: Ranjith S R <ranjith@qualiantech.com> Date: 16-02-2022 07:54:27 URL: https://gitlab.com/openbravo/product/openbravo/-/commit/48c4b8ab934044bd4d3efd6c951cd71c561c454d [^] Fixed ISSUE-48386: Refresh Order before completing when doing Cancel & Replace Sometimes, inverse order is created with same identifier. To avoid this, Order should be refreshed --- M src/org/openbravo/erpCommon/businessUtility/ReplaceOrderExecutor.java --- |
![]() |
|||
Date Modified | Username | Field | Change |
2022-01-12 11:33 | ludmila_ursu | New Issue | |
2022-01-12 11:33 | ludmila_ursu | Assigned To | => Retail |
2022-01-12 11:33 | ludmila_ursu | OBNetwork customer | => OBPS |
2022-01-12 11:33 | ludmila_ursu | Support ticket | => 36623 |
2022-01-12 11:33 | ludmila_ursu | Triggers an Emergency Pack | => No |
2022-02-02 17:09 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2022-02-04 06:57 | hgbot | Merge Request Status | => open |
2022-02-04 06:57 | hgbot | Note Added: 0134778 | |
2022-02-04 06:57 | ranjith_qualiantech_com | Status | new => scheduled |
2022-02-14 16:29 | ludmila_ursu | Description Updated | View Revisions |
2022-02-16 08:54 | hgbot | Merge Request Status | open => approved |
2022-02-16 08:54 | hgbot | Resolution | open => fixed |
2022-02-16 08:54 | hgbot | Status | scheduled => closed |
2022-02-16 08:54 | hgbot | Note Added: 0135044 | |
2022-02-16 08:54 | hgbot | Fixed in Version | => PR22Q2 |
2022-02-16 08:54 | hgbot | Note Added: 0135045 |
Copyright © 2000 - 2009 MantisBT Group |