From 1e41bbd864d57779aec75e51b87813de2641ac1a Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 18 Jul 2008 03:46:07 +0000 Subject: [PATCH] [ 1965015 ] Posting not balanced when is producing more than 1 produc Fix a rounding problem found --- base/src/org/compiere/acct/Doc_Production.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/src/org/compiere/acct/Doc_Production.java b/base/src/org/compiere/acct/Doc_Production.java index dd09b77f73..57349ddc6d 100644 --- a/base/src/org/compiere/acct/Doc_Production.java +++ b/base/src/org/compiere/acct/Doc_Production.java @@ -194,8 +194,7 @@ public class Doc_Production extends Doc if (line.getQty() != mpp.getProductionQty()) { // if the line doesn't correspond with the whole qty produced then apply prorate // costs = costs * line_qty / production_qty - costs = costs.multiply(line.getQty(), - new MathContext(as.getCostingPrecision(), RoundingMode.valueOf(BigDecimal.ROUND_HALF_UP))); + costs = costs.multiply(line.getQty()); costs = costs.divide(mpp.getProductionQty(), as.getCostingPrecision(), BigDecimal.ROUND_HALF_UP); } }