Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030417Openbravo ERP09. Financial managementpublic2015-07-23 17:152015-07-23 19:03
dmiguelez 
Triage Omni OMS 
immediatecriticalalways
closedfixed 
20Community Appliance
 
3.0PR15Q3 
dmiguelez
Core
No
0030417: While calculating Cost Adjustments the Process stops randomly stating that there is no avg Cost even if there is one
While calculating Cost Adjustments the Process stops randomly stating that there is no avg Cost even if there is one
This has happened in a Client and we have not been able to reproduce it.

But, while debugging it we've realized that at some point in the Cost Adjustment Process, the process is looking for Average Costs records from a different Product than the one that is being Processed.

This is due to a global variable in AverageCostAdjustmen.java file that has not been initialized again and uses the value from the previous Transaction.
No tags attached.
blocks defect 0030416 closed Triage Omni OMS While calculating Cost Adjustments the Process stops randomly stating that there is no avg Cost even if there is one 
Issue History
2015-07-23 17:15dmiguelezTypedefect => backport
2015-07-23 17:15dmiguelezTarget Version => 3.0PR15Q3
2015-07-23 17:17hgbotCheckin
2015-07-23 17:17hgbotNote Added: 0079048
2015-07-23 17:17hgbotStatusscheduled => resolved
2015-07-23 17:17hgbotResolutionopen => fixed
2015-07-23 17:17hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q3/rev/c1a6e9f8901676ce99185d0796dd593be94ff6d5 [^]
2015-07-23 19:03dmiguelezReview Assigned To => dmiguelez
2015-07-23 19:03dmiguelezNote Added: 0079065
2015-07-23 19:03dmiguelezStatusresolved => closed

Notes
(0079048)
hgbot   
2015-07-23 17:17   
Repository: erp/backports/3.0PR15Q3
Changeset: c1a6e9f8901676ce99185d0796dd593be94ff6d5
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Jul 23 17:16:08 2015 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR15Q3/rev/c1a6e9f8901676ce99185d0796dd593be94ff6d5 [^]

Fixes issue 30417. Initialize global variable each time to
make sure it does not uses values from a previous execution.

---
M src/org/openbravo/costing/AverageCostAdjustment.java
---
(0079065)
dmiguelez   
2015-07-23 19:03   
Code Reviewed + Tested in several Clients