Revert BF 2431123 - Return Trx changes weighted average cost
This commit is contained in:
parent
779d89462c
commit
0900f687a5
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue