Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029190Openbravo ERP04. Warehouse managementpublic2015-02-26 14:052015-04-01 08:31
umartirena 
umartirena 
urgentmajoralways
closedfixed 
5
 
3.0PR15Q1.23.0PR15Q1.2 
Sandrahuguet
Core
No
0029190: [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.
Approved
blocks defect 0029080 closed umartirena [Cost Adjustments] Costing Background process fails under certain circumstances 
Issue History
2015-03-09 09:23umartirenaTypedefect => backport
2015-03-09 09:23umartirenaTarget Version => 3.0PR15Q1.2
2015-03-09 20:00dmitry_mezentsevTag Attached: Approved
2015-03-25 08:51hgbotCheckin
2015-03-25 08:51hgbotNote Added: 0075955
2015-03-25 08:51hgbotStatusscheduled => resolved
2015-03-25 08:51hgbotResolutionopen => fixed
2015-03-25 08:51hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/ecf72f76195b8ff8849c707800322a54214ca21a [^] => http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/fc7373f7d27c8e328fa23fa78ecde811bbcf086f [^]
2015-03-25 08:53SandrahuguetReview Assigned To => Sandrahuguet
2015-03-25 08:53SandrahuguetNote Added: 0075959
2015-03-25 08:53SandrahuguetStatusresolved => closed
2015-03-25 08:53SandrahuguetFixed in Version => 3.0PR15Q1.2
2015-04-01 08:10hgbotCheckin
2015-04-01 08:10hgbotNote Added: 0076238
2015-04-01 08:10hgbotStatusclosed => resolved
2015-04-01 08:10hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/fc7373f7d27c8e328fa23fa78ecde811bbcf086f [^] => http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/fc7373f7d27c8e328fa23fa78ecde811bbcf086f [^]
2015-04-01 08:31priyamStatusresolved => closed
2015-04-01 08:31priyamNote Added: 0076251

Notes
(0075955)
hgbot   
2015-03-25 08:51   
Repository: erp/backports/3.0PR15Q1.2
Changeset: fc7373f7d27c8e328fa23fa78ecde811bbcf086f
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Thu Feb 26 15:23:25 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/fc7373f7d27c8e328fa23fa78ecde811bbcf086f [^]

Fixes bug 29190: 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
---
(0075959)
Sandrahuguet   
2015-03-25 08:53   
Code review + testing OK
(0076238)
hgbot   
2015-04-01 08:10   
Repository: erp/backports/3.0PR15Q2
Changeset: fc7373f7d27c8e328fa23fa78ecde811bbcf086f
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Thu Feb 26 15:23:25 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/fc7373f7d27c8e328fa23fa78ecde811bbcf086f [^]

Fixes bug 29190: 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
---
(0076251)
priyam   
2015-04-01 08:31   
closed again, as the status changed due the merge tag of 3.0PR15Q1.2 to backports/3.0PR15Q2