Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007911Openbravo ERP04. Warehouse managementpublic2009-03-03 10:422009-04-22 00:01
networkb 
gorkaion 
immediatemajoralways
closedfixed 
5
2.40 
2.50 
Core
No
0007911: 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.
depends on backport 0007921 closed gorkaion Calculate average costs does not work properly if products are included in several good receipts 
jpg 1.jpg (169,233) 2009-03-03 10:42
https://issues.openbravo.com/file_download.php?file_id=956&type=bug
jpg

jpg 2.jpg (169,810) 2009-03-03 10:43
https://issues.openbravo.com/file_download.php?file_id=957&type=bug
jpg
Issue History
2009-03-03 10:42networkbNew Issue
2009-03-03 10:42networkbAssigned To => rafaroda
2009-03-03 10:42networkbFile Added: 1.jpg
2009-03-03 10:42networkbRegression testing => No
2009-03-03 10:43networkbFile Added: 2.jpg
2009-03-03 11:07rafarodaAssigned Torafaroda => gorkaion
2009-03-03 15:39gorkaionStatusnew => scheduled
2009-03-03 15:39gorkaionfix_in_branch => trunk
2009-03-03 15:55hgbotCheckin
2009-03-03 15:55hgbotNote Added: 0014324
2009-03-03 15:55hgbotStatusscheduled => resolved
2009-03-03 15:55hgbotResolutionopen => fixed
2009-03-03 15:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4f09786a6cfc8d5f88c91669218ed27cd68363cb [^]
2009-04-21 10:33psarobeStatusresolved => closed
2009-04-22 00:01anonymoussf_bug_id0 => 2778039

Notes
(0014324)
hgbot   
2009-03-03 15:55   
Repository: erp/devel/pi
Changeset: 4f09786a6cfc8d5f88c91669218ed27cd68363cb
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Tue Mar 03 15:51:53 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/4f09786a6cfc8d5f88c91669218ed27cd68363cb [^]

Fixed bug 7911. 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/M_GENERATE_AVERAGE_COSTS.xml
---