libero: BOM Qty is not well calculated when we include the scrap. We forgot to multiply by 100

This commit is contained in:
teo_sarca 2009-03-06 06:49:06 +00:00
parent 5a2384733f
commit 8d932458df
1 changed files with 2 additions and 1 deletions

View File

@ -182,7 +182,8 @@ 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);
qty = qty.divide(Env.ONE.subtract(scrapDec), precision, BigDecimal.ROUND_HALF_UP)
.multiply(Env.ONEHUNDRED);
}
//
if (qty.scale() > precision)