From ef57afb33537f85c42a56492e90c19889c155af6 Mon Sep 17 00:00:00 2001 From: hieplq Date: Wed, 24 Oct 2018 12:11:33 +0700 Subject: [PATCH] IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (warning deprecated of constructer) constance of BigDecimal move to RoundingMode --- .../src/org/eevolution/model/MPPProductBOMLine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/eevolution/model/MPPProductBOMLine.java b/org.adempiere.base/src/org/eevolution/model/MPPProductBOMLine.java index 241e744bee..6750910dae 100644 --- a/org.adempiere.base/src/org/eevolution/model/MPPProductBOMLine.java +++ b/org.adempiere.base/src/org/eevolution/model/MPPProductBOMLine.java @@ -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); } //