IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (warning deprecated of constructer)

constance of BigDecimal move to RoundingMode
This commit is contained in:
hieplq 2018-10-24 12:11:33 +07:00
parent bf3561fc0d
commit ef57afb335
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ public class MPPProductBOMLine extends X_PP_Product_BOMLine
// //
if (includeScrapQty) 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); qty = qty.divide(Env.ONE.subtract(scrapDec), precision, RoundingMode.HALF_UP);
} }
// //