IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (warning deprecated of constructer)
constance of BigDecimal move to RoundingMode
This commit is contained in:
parent
bf3561fc0d
commit
ef57afb335
|
@ -226,7 +226,7 @@ public class MPPProductBOMLine extends X_PP_Product_BOMLine
|
|||
//
|
||||
if (includeScrapQty)
|
||||
{
|
||||
BigDecimal scrapDec = getScrap().divide(Env.ONEHUNDRED, 12, BigDecimal.ROUND_UP);
|
||||
BigDecimal scrapDec = getScrap().divide(Env.ONEHUNDRED, 12, RoundingMode.UP);
|
||||
qty = qty.divide(Env.ONE.subtract(scrapDec), precision, RoundingMode.HALF_UP);
|
||||
}
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue