Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029191Openbravo ERP04. Warehouse managementpublic2015-02-26 13:522015-04-01 08:31
umartirena 
umartirena 
urgentmajorN/A
closedfixed 
5
 
3.0PR15Q1.23.0PR15Q1.2 
Sandrahuguet
Core
No
0029191: Costing Background process does not finish under certain cirumnstances
Costing Background process gets stuck so it doesn't continue calculating cost of transactions, but it does not finish and doesn't return any error.

The error is related to rounding quantities to costing precission.
We have an environment of a client in which this problem happens. As the scenario is quite complex to reproduce, it is possible to reproduce on that environment.
Approved
blocks defect 0029079 closed umartirena Costing Background process does not finish under certain cirumnstances 
Issue History
2015-03-09 09:24umartirenaTypedefect => backport
2015-03-09 09:24umartirenaTarget Version => 3.0PR15Q1.2
2015-03-09 20:00dmitry_mezentsevTag Attached: Approved
2015-03-25 08:51hgbotCheckin
2015-03-25 08:51hgbotNote Added: 0075954
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/4b156502982751d8d872b7ac8177159a437815c7 [^] => http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/4c24198c7d78812593683d8bde639103b7c65b17 [^]
2015-03-25 08:53SandrahuguetReview Assigned To => Sandrahuguet
2015-03-25 08:53SandrahuguetNote Added: 0075958
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: 0076237
2015-04-01 08:10hgbotStatusclosed => resolved
2015-04-01 08:10hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/4c24198c7d78812593683d8bde639103b7c65b17 [^] => http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/4c24198c7d78812593683d8bde639103b7c65b17 [^]
2015-04-01 08:31priyamStatusresolved => closed
2015-04-01 08:31priyamNote Added: 0076252

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

Fixes bug 29191: Fixed Costing Background infinite loop.

Costing Background process, due to Cost Adjustments new implementation, on a certain point of the code, it was not applying correctly a setScale method to round a value of the expected cost. This was causing to have allways a difference between the expected cost and unitcost. Because of this, an adjustment was being created to adjust this difference, and to adjust all related transactions, causing an infinite loop

---
M src/org/openbravo/costing/AverageCostAdjustment.java
---
(0075958)
Sandrahuguet   
2015-03-25 08:53   
Code review + testing OK
(0076237)
hgbot   
2015-04-01 08:10   
Repository: erp/backports/3.0PR15Q2
Changeset: 4c24198c7d78812593683d8bde639103b7c65b17
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Thu Feb 26 15:36:55 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/4c24198c7d78812593683d8bde639103b7c65b17 [^]

Fixes bug 29191: Fixed Costing Background infinite loop.

Costing Background process, due to Cost Adjustments new implementation, on a certain point of the code, it was not applying correctly a setScale method to round a value of the expected cost. This was causing to have allways a difference between the expected cost and unitcost. Because of this, an adjustment was being created to adjust this difference, and to adjust all related transactions, causing an infinite loop

---
M src/org/openbravo/costing/AverageCostAdjustment.java
---
(0076252)
priyam   
2015-04-01 08:31   
closed again, as the status changed due the merge tag of 3.0PR15Q1.2 to backports/3.0PR15Q2