* [ 1647734 ] incorrect cost used in Shipment and MM (Avg PO costing)

This commit is contained in:
Heng Sin Low 2007-03-27 13:06:18 +00:00
parent e0dd4d1b66
commit 814dba2eda
1 changed files with 2 additions and 0 deletions

View File

@ -214,6 +214,8 @@ public class Doc_InOut extends Doc
int C_OrderLine_ID = line.getC_OrderLine_ID();
MOrderLine orderLine = new MOrderLine (getCtx(), C_OrderLine_ID, getTrxName());
costs = orderLine.getPriceCost();
if (costs == null || costs.signum() == 0)
costs = orderLine.getPriceActual();
}
else
{