Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005611Openbravo ERP04. Warehouse managementpublic2008-10-22 10:292009-03-10 09:07
nataliaperu 
gorkaion 
normalminoralways
closedfixed 
5
2.35 
2.35MP13 
Core
No
0005611: Generate Average costs process does not calculate correctly the average
When an order contains two lines with the same product and one of them has price 0, the process does not take into account the product with price 0.
Comment the following lines in GENERATE_AVERAGE_COST procedure:

      --IF(Cur_InOutLine.MOVEMENTDATE=v_DateOld AND Cur_InOutLine.M_PRODUCT_ID=v_ProductOld) THEN
        v_CumQty:=v_CumQty + Cur_InOutLine.MOVEMENTQTY;
     -- END IF;
commsup_sprint6
blocks defect 0005525 closed gorkaion Generate Average costs process does not calculate correctly the average 
Issue History
2008-10-22 10:29psarobeNew Issue
2008-10-22 10:29psarobeAssigned To => gorkaion
2008-10-22 10:29psarobeStatusnew => scheduled
2009-01-19 13:45psarobeversion => 2.35
2009-02-16 12:46svnbotCheckin
2009-02-16 12:46svnbotNote Added: 0013518
2009-02-16 12:46svnbotStatusscheduled => resolved
2009-02-16 12:46svnbotResolutionopen => fixed
2009-02-16 12:46svnbotsvn_revision => 13223
2009-02-19 12:52gorkaionTag Attached: commsup_sprint6
2009-03-06 16:09psarobeFixed in Version => 2.35MP12
2009-03-10 09:07psarobeRegression testing => No
2009-03-10 09:07psarobeStatusresolved => closed

Notes
(0013518)
svnbot   
2009-02-16 12:46   
Repository: openbravo
Revision: 13223
Author: gorkaion
Date: 2009-02-16 12:46:18 +0100 (Mon, 16 Feb 2009)

Fixed bug 5611. Applied proposed solution in Generate_Average_Costs procedure.

---
U branches/r2.3x/database/model/functions/GENERATE_AVERAGE_COSTS.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=13223&sc=1 [^]