Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030418Openbravo ERP09. Financial managementpublic2015-07-23 17:152015-07-23 19:02
dmiguelez 
Triage Omni OMS 
immediatecriticalalways
closedfixed 
20Community Appliance
 
3.0PR15Q2.3 
dmiguelez
Core
No
0030418: 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.0PR15Q2.3
2015-07-23 17:19hgbotCheckin
2015-07-23 17:19hgbotNote Added: 0079050
2015-07-23 17:19hgbotStatusscheduled => resolved
2015-07-23 17:19hgbotResolutionopen => fixed
2015-07-23 17:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q2.3/rev/f6d7ef8a9f79df996a5181374d78cdc11b4962c7 [^]
2015-07-23 19:02dmiguelezReview Assigned To => dmiguelez
2015-07-23 19:02dmiguelezNote Added: 0079064
2015-07-23 19:02dmiguelezStatusresolved => closed

Notes
(0079050)
hgbot   
2015-07-23 17:19   
Repository: erp/backports/3.0PR15Q2.3
Changeset: f6d7ef8a9f79df996a5181374d78cdc11b4962c7
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.0PR15Q2.3/rev/f6d7ef8a9f79df996a5181374d78cdc11b4962c7 [^]

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

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