Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
| View Issue Details | |||||||||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
| 0029574 | Openbravo ERP | 04. Warehouse management | public | 2015-04-13 16:54 | 2015-05-07 22:16 | ||||||||||||||
| Reporter | VictorVillar | ||||||||||||||||||
| Assigned To | jorge-garcia | ||||||||||||||||||
| Priority | immediate | Severity | major | Reproducibility | always | ||||||||||||||
| Status | closed | Resolution | fixed | ||||||||||||||||
| Platform | OS | 5 | OS Version | ||||||||||||||||
| Product Version | pi | ||||||||||||||||||
| Target Version | Fixed in Version | pi | |||||||||||||||||
| Merge Request Status | |||||||||||||||||||
| Review Assigned To | umartirena | ||||||||||||||||||
| OBNetwork customer | OBPS | ||||||||||||||||||
| Web browser | |||||||||||||||||||
| Modules | Core | ||||||||||||||||||
| Support ticket | 35525 | ||||||||||||||||||
| Regression level | |||||||||||||||||||
| Regression date | |||||||||||||||||||
| Regression introduced in release | |||||||||||||||||||
| Regression introduced by commit | |||||||||||||||||||
| Triggers an Emergency Pack | No | ||||||||||||||||||
| Summary | 0029574: It is not possible to reactivate a Landed Cost under some circumstancies | ||||||||||||||||||
| Description | It is not possible to reactivate a Landed Cost under some circumstancies. Necessary to have more than 100 registers in M_LC_ReceiptLine_Amt table. For instance, 1 Goods receipt with 200 lines and one landed cost affecting to this Landed Cost. | ||||||||||||||||||
| Steps To Reproduce | Necessary to have more than 100 registers in M_LC_ReceiptLine_Amt table. For instance, 1 Goods receipt with 200 lines and one landed cost affecting to this Landed Cost. Once you have completed it and you try to reactivate it, you receive the following error: 'a different object with the same identifier value was already associated with the session: [LandedCostReceiptLineAmt#38B8F2EA56834B20A02AB4C111E5903D]' It seems that the problem is in LandedCostDistributionAlgorithm.java -- method: cancelDistributeAmount. OBDal.getInstance().save(lcCost); | ||||||||||||||||||
| Proposed Solution | We have checked in the client's environment that the following change is fixing the problem. List<String> idList = OBDao.getIDListFromOBObject(lcCost.getLandedCostReceiptLineAmtList()); ++++ OBDal.getInstance().save(lcCost); for (String id : idList) { i++; LCReceiptLineAmt lcrla = OBDal.getInstance().get(LCReceiptLineAmt.class, id); lcCost.getLandedCostReceiptLineAmtList().remove(lcrla); OBDal.getInstance().remove(lcrla); if (i % 100 == 0) { ----- OBDal.getInstance().save(lcCost); OBDal.getInstance().flush(); OBDal.getInstance().getSession().clear(); | ||||||||||||||||||
| Additional Information | |||||||||||||||||||
| Tags | No tags attached. | ||||||||||||||||||
| Relationships |
| ||||||||||||||||||
| Attached Files | |||||||||||||||||||
| Issue History | |||||||||||||||||||
| Date Modified | Username | Field | Change | ||||||||||||||||
| 2015-04-13 16:54 | VictorVillar | New Issue | |||||||||||||||||
| 2015-04-13 16:54 | VictorVillar | Assigned To | => umartirena | ||||||||||||||||
| 2015-04-13 16:54 | VictorVillar | OBNetwork customer | => Yes | ||||||||||||||||
| 2015-04-13 16:54 | VictorVillar | Modules | => Core | ||||||||||||||||
| 2015-04-13 16:54 | VictorVillar | Support ticket | => 35525 | ||||||||||||||||
| 2015-04-13 16:54 | VictorVillar | Resolution time | => 1429048800 | ||||||||||||||||
| 2015-04-13 16:54 | VictorVillar | Triggers an Emergency Pack | => No | ||||||||||||||||
| 2015-04-13 16:54 | VictorVillar | Issue Monitored: networkb | |||||||||||||||||
| 2015-04-14 12:48 | Triage Finance | Assigned To | umartirena => Triage Finance | ||||||||||||||||
| 2015-04-14 17:17 | umartirena | Status | new => scheduled | ||||||||||||||||
| 2015-04-14 17:24 | eduardo_Argal | Assigned To | Triage Finance => jorge-garcia | ||||||||||||||||
| 2015-04-14 18:04 | hgbot | Checkin | |||||||||||||||||
| 2015-04-14 18:04 | hgbot | Note Added: 0076537 | |||||||||||||||||
| 2015-04-14 18:04 | hgbot | Status | scheduled => resolved | ||||||||||||||||
| 2015-04-14 18:04 | hgbot | Resolution | open => fixed | ||||||||||||||||
| 2015-04-14 18:04 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/8ca445154dbb2682bc9f2b085ffb09a5febdaccb [^] | ||||||||||||||||
| 2015-04-14 19:19 | umartirena | Review Assigned To | => umartirena | ||||||||||||||||
| 2015-04-14 19:19 | umartirena | Note Added: 0076543 | |||||||||||||||||
| 2015-04-14 19:19 | umartirena | Status | resolved => closed | ||||||||||||||||
| 2015-04-14 19:19 | umartirena | Fixed in Version | => pi | ||||||||||||||||
| 2015-05-07 22:16 | hudsonbot | Checkin | |||||||||||||||||
| 2015-05-07 22:16 | hudsonbot | Note Added: 0077126 | |||||||||||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||