Its not calculating current cost for Product BOMs

https://sourceforge.net/tracker/?func=detail&aid=2724570&group_id=176962&atid=934929
This commit is contained in:
teo_sarca 2009-04-02 10:10:07 +00:00
parent caadb633ac
commit 489d7b0b2f
1 changed files with 1 additions and 2 deletions

View File

@ -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)