Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029080Openbravo ERP04. Warehouse managementpublic2015-02-26 14:052015-03-24 17:21
umartirena 
umartirena 
urgentmajoralways
closedfixed 
5
 
3.0PR15Q2 
Sandrahuguet
Core
No
0029080: [Cost Adjustments] Costing Background process fails under certain circumstances
Costing Background process fails while trying to create a Costing Record and there is no previous one. The process would try to obtain an Starting Date for the new Costing Record executing getStartingDate() method of AverageAlgorithm.java.

This process would fail at this point when the product of the transaction is of "production" type. The following error is obtained:

"2015-02-25 18:31:24.294 - Unknown entity: org.openbravo.model.ad.system.Client
"

We haven't been able to reproduce in live.builds, but there is an environment of a client in which it happens, just ask for this environment.
No tags attached.
depends on backport 00291903.0PR15Q1.2 closed umartirena [Cost Adjustments] Costing Background process fails under certain circumstances 
Issue History
2015-02-26 14:05umartirenaNew Issue
2015-02-26 14:05umartirenaAssigned To => Sandrahuguet
2015-02-26 14:05umartirenaModules => Core
2015-02-26 14:05umartirenaTriggers an Emergency Pack => No
2015-02-26 14:05umartirenaAssigned ToSandrahuguet => umartirena
2015-02-26 19:36hgbotCheckin
2015-02-26 19:36hgbotNote Added: 0074997
2015-02-26 19:36hgbotStatusnew => resolved
2015-02-26 19:36hgbotResolutionopen => fixed
2015-02-26 19:36hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ecf72f76195b8ff8849c707800322a54214ca21a [^]
2015-02-27 16:11hudsonbotCheckin
2015-02-27 16:11hudsonbotNote Added: 0075048
2015-03-09 09:22umartirenaStatusresolved => new
2015-03-09 09:22umartirenaResolutionfixed => open
2015-03-09 09:23umartirenaStatusnew => scheduled
2015-03-09 09:23umartirenaStatusscheduled => resolved
2015-03-09 09:23umartirenaFixed in Version => pi
2015-03-09 09:23umartirenaResolutionopen => fixed
2015-03-24 17:21SandrahuguetReview Assigned To => Sandrahuguet
2015-03-24 17:21SandrahuguetNote Added: 0075941
2015-03-24 17:21SandrahuguetStatusresolved => closed
2015-03-24 17:21SandrahuguetFixed in Versionpi => 3.0PR15Q2

Notes
(0074997)
hgbot   
2015-02-26 19:36   
Repository: erp/devel/pi
Changeset: ecf72f76195b8ff8849c707800322a54214ca21a
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Thu Feb 26 15:23:25 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/ecf72f76195b8ff8849c707800322a54214ca21a [^]

Fixes bug 29080: getStartingDate() method does not fail in Costing Background.

An OBQuery is being executed in getStartingDate() method inside AverageAlgorithm. There are 2 parameters in this OBQuery that are not setting properly, 'client' and 'org'. The whereclause is filtering by 'id' of these properties and instead of passing the id of these objects, the object was being passed to the OBQuery. These sometimes works but other times don't, so this has been changed to always setting the id's as parameters.

---
M src/org/openbravo/costing/AverageAlgorithm.java
---
(0075048)
hudsonbot   
2015-02-27 16:11   
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/7f9c56fa7aba [^]
Maturity status: Test
(0075941)
Sandrahuguet   
2015-03-24 17:21   
Code review + testing OK