Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007921Openbravo ERP04. Warehouse managementpublic2009-03-03 10:422009-03-26 17:51
networkb 
gorkaion 
immediatemajoralways
closedfixed 
5
2.40 
2.40MP4 
OBPS
Core
No
0007921: Calculate average costs does not work properly if products are included in several good receipts
A product is included in diferent good receipts with diferent dates.
If Calculate average cost is launched, does not calculate properly its costs.

In addition to this, if the process is launched several times without any modification in the application, returns diferent costs for the same product

(see attached files)
1 Generate a permanent cost for a product.
2 Generate a physical inventory with this amount.
3 Generate diferent good receipts in diferent dates, that includes this product.
4 Launch Calculate average cost. See the results (even starting date and end date are not correct)
5 Launch again the procees. It returns diferent costs for the same product.
No tags attached.
blocks defect 0007911 closed gorkaion Calculate average costs does not work properly if products are included in several good receipts 
Issue History
2009-03-03 15:39gorkaionTypedefect => backport
2009-03-03 15:39gorkaionfix_in_branch => 2.40
2009-03-11 15:02hgbotCheckin
2009-03-11 15:02hgbotNote Added: 0014578
2009-03-11 15:02hgbotStatusscheduled => resolved
2009-03-11 15:02hgbotResolutionopen => fixed
2009-03-11 15:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/aa189fed089cf59fee0f64e83a46f931c1189102 [^]
2009-03-24 11:01psarobeFixed in Version => 2.40MP4
2009-03-26 17:51psarobeStatusresolved => closed

Notes
(0014578)
hgbot   
2009-03-11 15:02   
Repository: erp/stable/2.40
Changeset: aa189fed089cf59fee0f64e83a46f931c1189102
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Tue Mar 03 19:05:42 2009 +0100
URL: http://code.openbravo.com/erp/stable/2.40/rev/aa189fed089cf59fee0f64e83a46f931c1189102 [^]

Fixed bug 7921. Modified the generate average costs procedure. When the generated costs are deleted the dateto of the permanent costs are recalculated.

---
M src-db/database/model/functions/GENERATE_AVERAGE_COSTS.xml
---