[ 1812144 ] In LandedCost Cost Distribution for type "Cost" is not work. Following mar_cal_westf's advice.
This commit is contained in:
parent
faef3f0217
commit
a783f40b25
|
@ -580,13 +580,13 @@ public class MInOutLine extends X_M_InOutLine
|
||||||
{
|
{
|
||||||
if (MLandedCost.LANDEDCOSTDISTRIBUTION_Costs.equals(CostDistribution))
|
if (MLandedCost.LANDEDCOSTDISTRIBUTION_Costs.equals(CostDistribution))
|
||||||
{
|
{
|
||||||
//Goodwill
|
MInvoiceLine m_il = MInvoiceLine.getOfInOutLine(this);
|
||||||
int c_OrderLine_Id = getC_OrderLine_ID();
|
if (m_il == null)
|
||||||
if(c_OrderLine_Id != 0){
|
{
|
||||||
MOrderLine oLine = new MOrderLine(getCtx(), c_OrderLine_Id, get_TrxName());
|
log.severe("No Invoice Line for: " + this.toString());
|
||||||
return oLine.getLineNetAmt();
|
return Env.ZERO;
|
||||||
}
|
}
|
||||||
return Env.ZERO;
|
return m_il.getLineNetAmt();
|
||||||
}
|
}
|
||||||
else if (MLandedCost.LANDEDCOSTDISTRIBUTION_Line.equals(CostDistribution))
|
else if (MLandedCost.LANDEDCOSTDISTRIBUTION_Line.equals(CostDistribution))
|
||||||
return Env.ONE;
|
return Env.ONE;
|
||||||
|
|
Loading…
Reference in New Issue