libero: BOM Qty is not well calculated when we include the scrap. We forgot to multiply by 100
This commit is contained in:
parent
5a2384733f
commit
8d932458df
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue