Revert BF 2431123 - Return Trx changes weighted average cost

This commit is contained in:
armenrz 2009-02-09 10:41:17 +00:00
parent 779d89462c
commit 0900f687a5
1 changed files with 2 additions and 8 deletions

View File

@ -866,10 +866,7 @@ public class MCostDetail extends X_M_CostDetail
if (ce.isAveragePO())
{
if (!isReturnTrx)
cost.setWeightedAverage(amt, qty);
else
cost.add(amt, qty);
cost.setWeightedAverage(amt, qty);
log.finer("PO - AveragePO - " + cost);
}
else if (ce.isLastPOPrice())
@ -907,10 +904,7 @@ public class MCostDetail extends X_M_CostDetail
if (ce.isAverageInvoice())
{
if (!isReturnTrx)
cost.setWeightedAverage(amt, qty);
else
cost.add(amt, qty);
cost.setWeightedAverage(amt, qty);
log.finer("Inv - AverageInv - " + cost);
}
else if (ce.isFifo()