From 98baad232a11c597e8819bb619efe0c50c00b974 Mon Sep 17 00:00:00 2001 From: armenrz Date: Sun, 21 Sep 2008 05:13:47 +0000 Subject: [PATCH] [ 1812144 ] In LandedCost Cost Distribution for type "Cost" is not work. --- base/src/org/compiere/model/MInOutLine.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/model/MInOutLine.java b/base/src/org/compiere/model/MInOutLine.java index 8d346d6e47..dfdfb7fe74 100644 --- a/base/src/org/compiere/model/MInOutLine.java +++ b/base/src/org/compiere/model/MInOutLine.java @@ -580,8 +580,12 @@ public class MInOutLine extends X_M_InOutLine { if (MLandedCost.LANDEDCOSTDISTRIBUTION_Costs.equals(CostDistribution)) { - // TODO Costs! - log.severe("Not Implemented yet - Cost"); + //Goodwill + int c_OrderLine_Id = getC_OrderLine_ID(); + if(c_OrderLine_Id != 0){ + MOrderLine oLine = new MOrderLine(getCtx(), c_OrderLine_Id, get_TrxName()); + return oLine.getLineNetAmt(); + } return Env.ZERO; } else if (MLandedCost.LANDEDCOSTDISTRIBUTION_Line.equals(CostDistribution))