From 489d7b0b2faac01cc9944546e8de56e854810a4a Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Thu, 2 Apr 2009 10:10:07 +0000 Subject: [PATCH] Its not calculating current cost for Product BOMs https://sourceforge.net/tracker/?func=detail&aid=2724570&group_id=176962&atid=934929 --- base/src/org/eevolution/model/MPPProductBOMLine.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/src/org/eevolution/model/MPPProductBOMLine.java b/base/src/org/eevolution/model/MPPProductBOMLine.java index 88f3c76992..f8afb7c2f7 100644 --- a/base/src/org/eevolution/model/MPPProductBOMLine.java +++ b/base/src/org/eevolution/model/MPPProductBOMLine.java @@ -182,8 +182,7 @@ public class MPPProductBOMLine extends X_PP_Product_BOMLine if (includeScrapQty) { BigDecimal scrapDec = getScrap().divide(Env.ONEHUNDRED, 12, BigDecimal.ROUND_UP); - qty = qty.divide(Env.ONE.subtract(scrapDec), precision, BigDecimal.ROUND_HALF_UP) - .multiply(Env.ONEHUNDRED); + qty = qty.divide(Env.ONE.subtract(scrapDec), precision, BigDecimal.ROUND_HALF_UP); } // if (qty.scale() > precision)