Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0048386
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Cash upmajorhave not tried2022-01-12 11:332022-02-16 08:54
Reporterludmila_ursuView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabasePostgreSQLJava version11.0.11
OS VersionDatabase version10Ant version1.10.5
Product VersionRR20Q3.4SCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0048386: A cancel and replace order causes an EWI

DescriptionAfter 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 ReproduceSteps 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 SolutionProposed solution

Apply this fix:
https://gitlab.com/obcustomers/ZOD/openbravo-20q1/-/commit/c88ebddf7c56b0d3db7039591196fe4281f63013 [^]
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(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
---

- Issue History
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 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 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 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
Powered by Mantis Bugtracker