Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036760Openbravo ERP05. Production managementpublic2017-08-31 13:382017-09-21 16:49
martinsdan 
AtulOpenbravo 
normalmajorhave not tried
closedfixed 
4510.12
3.0PR17Q1 
3.0PR17Q4 
aferraz
Core
No
0036760: Error when running a Landing Cost with more than one Landed Cost Distribution Algorithm
An error occurs when processing a Landed Cost with costs with different Landed Cost Distribution Algorithms

An error is thrown:
"Detail formatter error:
        An exception occurred: org.hibernate.LazyInitializationException"

In the interface it is shown:
"could not initialize proxy - no Session"
- Create a new Landed Cost Distribution Algorithm
- Create a new Landed Cost Type
- Create a Landed Cost
- Add a receipt
- Add several costs with at least two Landed Cost Distribution Algorithms
- Click process
A patch is attached. It is not the ideal solution, but it works.
No tags attached.
patch landedCostAlgorithm.patch (718) 2017-08-31 13:38
https://issues.openbravo.com/file_download.php?file_id=11027&type=bug
Issue History
2017-08-31 13:38martinsdanNew Issue
2017-08-31 13:38martinsdanAssigned To => platform
2017-08-31 13:38martinsdanFile Added: landedCostAlgorithm.patch
2017-08-31 13:38martinsdanModules => Core
2017-08-31 13:38martinsdanTriggers an Emergency Pack => No
2017-08-31 14:08ngarciaResolution time => 1505944800
2017-08-31 14:08ngarciaIssue Monitored: networkb
2017-08-31 14:12ngarciaIssue Monitored: ngarcia
2017-08-31 14:22alostaleAssigned Toplatform => Triage Finance
2017-08-31 14:22alostaleCategoryA. Platform => 05. Production management
2017-08-31 14:36aferrazAssigned ToTriage Finance => AtulOpenbravo
2017-09-04 08:04AtulOpenbravoStatusnew => scheduled
2017-09-04 08:06AtulOpenbravoNote Added: 0098783
2017-09-04 08:06AtulOpenbravoNote Edited: 0098783bug_revision_view_page.php?bugnote_id=0098783#r15792
2017-09-04 12:57hgbotCheckin
2017-09-04 12:57hgbotNote Added: 0098802
2017-09-04 12:57hgbotStatusscheduled => resolved
2017-09-04 12:57hgbotResolutionopen => fixed
2017-09-04 12:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f6988eb821e2a9aa481401740dfa5cbe6e170a9c [^]
2017-09-04 12:57aferrazReview Assigned To => aferraz
2017-09-04 12:57aferrazNote Added: 0098803
2017-09-04 12:57aferrazStatusresolved => closed
2017-09-04 12:57aferrazFixed in Version => 3.0PR17Q4
2017-09-21 16:49hudsonbotCheckin
2017-09-21 16:49hudsonbotNote Added: 0099355

Notes
(0098783)
AtulOpenbravo   
2017-09-04 08:06   
- Login as System Admin
- Create a new Landed Cost Distribution Algorithm
- Logout and Login as F&B International Group Admin
- Create a new Landed Cost Type
- Create a Goods Receipt for any business partner and add line for any product,
  process it.
- Create a Landed Cost
- Add information in receipt tab with Goods Receipt header and lines created in above step.
- Add several costs with at least two Landed Cost Distribution Algorithms.
- Click process, realize that process is executed successfully.

(0098802)
hgbot   
2017-09-04 12:57   
Repository: erp/devel/pi
Changeset: f6988eb821e2a9aa481401740dfa5cbe6e170a9c
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Mon Sep 04 11:38:56 2017 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/f6988eb821e2a9aa481401740dfa5cbe6e170a9c [^]

Fixes issue 36760: Error when running a Landing Cost

To avoid org.hibernate.LazyInitializationException Landed Cost Cost Object
is re-initialized

---
M src/org/openbravo/costing/LandedCostProcess.java
---
(0098803)
aferraz   
2017-09-04 12:57   
Code review + Testing OK
(0099355)
hudsonbot   
2017-09-21 16:49   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9750b78d3e5c [^]
Maturity status: Test