* [ 1647734 ] incorrect cost used in Shipment and MM (Avg PO costing)
This commit is contained in:
parent
e0dd4d1b66
commit
814dba2eda
|
@ -214,6 +214,8 @@ public class Doc_InOut extends Doc
|
||||||
int C_OrderLine_ID = line.getC_OrderLine_ID();
|
int C_OrderLine_ID = line.getC_OrderLine_ID();
|
||||||
MOrderLine orderLine = new MOrderLine (getCtx(), C_OrderLine_ID, getTrxName());
|
MOrderLine orderLine = new MOrderLine (getCtx(), C_OrderLine_ID, getTrxName());
|
||||||
costs = orderLine.getPriceCost();
|
costs = orderLine.getPriceCost();
|
||||||
|
if (costs == null || costs.signum() == 0)
|
||||||
|
costs = orderLine.getPriceActual();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue