From 3006bd82a15767056665011e367091a7f17e5457 Mon Sep 17 00:00:00 2001 From: trifonnt Date: Sat, 22 May 2010 18:04:54 +0000 Subject: [PATCH] BF [3005450] - Distribution of Landed Costs wrongly calculated https://sourceforge.net/tracker/?func=detail&atid=879332&aid=3005450&group_id=176962 --- base/src/org/compiere/model/MInOutLine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MInOutLine.java b/base/src/org/compiere/model/MInOutLine.java index 6137e28086..82a1935496 100644 --- a/base/src/org/compiere/model/MInOutLine.java +++ b/base/src/org/compiere/model/MInOutLine.java @@ -642,7 +642,7 @@ public class MInOutLine extends X_M_InOutLine log.severe("No Invoice Line for: " + this.toString()); return Env.ZERO; } - return m_il.getLineNetAmt(); + return this.getMovementQty().multiply(m_il.getPriceActual()); // Actual delivery } else if (MLandedCost.LANDEDCOSTDISTRIBUTION_Line.equals(CostDistribution)) return Env.ONE;