Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030416Openbravo ERP09. Financial managementpublic2015-07-23 17:152015-08-20 23:16
dmiguelez 
Triage Omni OMS 
immediatecriticalalways
closedfixed 
20Community Appliance
 
 
dmiguelez
Core
No
0030416: 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.
depends on backport 00304173.0PR15Q3 closed Triage Omni OMS While calculating Cost Adjustments the Process stops randomly stating that there is no avg Cost even if there is one 
depends on backport 00304183.0PR15Q2.3 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:15dmiguelezNew Issue
2015-07-23 17:15dmiguelezAssigned To => Triage Finance
2015-07-23 17:15dmiguelezModules => Core
2015-07-23 17:15dmiguelezTriggers an Emergency Pack => No
2015-07-23 17:15dmiguelezStatusnew => scheduled
2015-07-23 17:16hgbotCheckin
2015-07-23 17:16hgbotNote Added: 0079047
2015-07-23 17:16hgbotStatusscheduled => resolved
2015-07-23 17:16hgbotResolutionopen => fixed
2015-07-23 17:16hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5e1331b3eaa7afdaeb0b7d5ab86b15097452adc6 [^]
2015-07-23 19:02dmiguelezReview Assigned To => dmiguelez
2015-07-23 19:02dmiguelezNote Added: 0079063
2015-07-23 19:02dmiguelezStatusresolved => closed
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079507

Notes
(0079047)
hgbot   
2015-07-23 17:16   
Repository: erp/devel/pi
Changeset: 5e1331b3eaa7afdaeb0b7d5ab86b15097452adc6
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Jul 23 17:16:08 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/5e1331b3eaa7afdaeb0b7d5ab86b15097452adc6 [^]

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

---
M src/org/openbravo/costing/AverageCostAdjustment.java
---
(0079063)
dmiguelez   
2015-07-23 19:02   
Code Reviewed + Tested in several Clients
(0079507)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test