Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027947Openbravo ERP04. Warehouse managementpublic2014-10-22 13:402014-12-30 23:23
aferraz 
umartirena 
normalminoralways
closedfixed 
30Professional Appliance
 
 
Core
No
0027947: An exception is raised when running Costing Background process
An exception is raised when running Costing Background process
In "QA Testing" client:

Create a new Product named "Costing N2" for Spain organization.
Go to Price tab, select "Purchase" price list and enter a unit/list price of 5 €.

Go to Goods Receipt window and create a new receipt dated on 22-10-2014, product "Costing N2" and quantity 10. Complete. Let's say this is receipt 10000506.

Navigate to Process Request window and run "Costing Background process".

Go to receipt window and post the receipt 10000506.
Realize that the value posted to the ledger is 50.00 (10 units * 5 €/unit)

Go to Goods Shipment window and create a new shipment dated on 01-11-2014, product "Costing N2" and quantity 8. Complete. Let's say this is shipment 500276.

Navigate to Process Request window and run "Costing Background process".

Go to shipment window and post the shipment 500276.
Realize that the value posted to the ledger is 40.00 (8 units * 5 €/unit)

Go to Goods Receipt window and create a new receipt dated on 06-11-2014, product "Costing N2" and quantity 10. Complete. Let's say this is receipt 10000507.

Navigate to Process Request window and run "Costing Background process".

Go to receipt window and post the receipt 10000507.
Realize that the value posted to the ledger is 50.00 (10 units * 5 €/unit)

Go to Goods Shipment window and create a new shipment dated on 27-10-2014, product "Costing N2" and quantity 10. Complete. Let's say this is shipment 500277.

Navigate to Process Request window and run "Costing Background process".

Go to shipment window and post the shipment 500277.
Realize that the value posted to the ledger is 50.00 (10 units * 5 €/unit)

Realize that an error and an exception have been raised during the last execution of "Costing Background process":

ERROR org.openbravo.costing.CostingBackground - Unknown entity: org.openbravo.model.common.enterprise.Organization

org.hibernate.MappingException: Unknown entity: org.openbravo.model.common.enterprise.Organization

Navigate to Cost Adjustment window, search the last created record:

- Cost adjustment 1: source process Backdated Transaction, adjusted amount 0.00, inventory transaction points to shipment 500277.
The cost adjustment created is correct but the Costing Background process shouldn't raise any exception.
No tags attached.
png Exception.png (174,205) 2014-10-22 13:40
https://issues.openbravo.com/file_download.php?file_id=7413&type=bug
png
Issue History
2014-10-22 13:40aferrazNew Issue
2014-10-22 13:40aferrazAssigned To => umartirena
2014-10-22 13:40aferrazFile Added: Exception.png
2014-10-22 13:40aferrazModules => Core
2014-10-22 13:40aferrazTriggers an Emergency Pack => No
2014-10-22 18:47umartirenaStatusnew => scheduled
2014-10-22 18:47umartirenafix_in_branch => pi
2014-10-23 17:06hgbotCheckin
2014-10-23 17:06hgbotNote Added: 0071139
2014-10-23 17:06hgbotStatusscheduled => resolved
2014-10-23 17:06hgbotResolutionopen => fixed
2014-10-23 17:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a5d83a77b1e40c69e02f32d2889b8f2f598c078e [^]
2014-10-28 12:07psanjuanNote Added: 0071216
2014-10-28 12:07psanjuanStatusresolved => closed
2014-10-28 12:07psanjuanfix_in_branchpi =>
2014-12-30 23:23hudsonbotCheckin
2014-12-30 23:23hudsonbotNote Added: 0072978

Notes
(0071139)
hgbot   
2014-10-23 17:06   
Repository: erp/devel/pi
Changeset: a5d83a77b1e40c69e02f32d2889b8f2f598c078e
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Thu Oct 23 17:04:33 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a5d83a77b1e40c69e02f32d2889b8f2f598c078e [^]

Fixed issue 27947.Use org id instead of object in OBQuery

When filtering a OBCriteria or OBQuery by a BaseOBObject after a clear session
can fail if the object is not correctly reattached to the session. Filtering
by its id avoid this issue.

---
M src/org/openbravo/costing/CostingUtils.java
---
(0071216)
psanjuan   
2014-10-28 12:07   
Verified. No exception is raised.
(0072978)
hudsonbot   
2014-12-30 23:23   
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/6525fe229e06 [^]
Maturity status: Test