From 945b7cccb75a8f181117f7afbf847e76b70c89cf Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 17 May 2016 13:46:34 -0700 Subject: [PATCH] IDEMPIERE-3082:Production posting not balanced when serializing finished product / peer review - fix issue from previous commit that broke the posting of single product --- org.adempiere.base/src/org/compiere/acct/Doc_Production.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/acct/Doc_Production.java b/org.adempiere.base/src/org/compiere/acct/Doc_Production.java index dee433f68c..91edc1d9ae 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_Production.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_Production.java @@ -84,10 +84,8 @@ public class Doc_Production extends Doc BigDecimal qtyProduced = null; Integer key = isUsePlan?line.getM_ProductionPlan_ID():line.getM_Production_ID(); - qtyProduced = mQtyProduced.get(line.getM_ProductionPlan_ID()); - if (mQtyProduced.containsKey(key)){ - qtyProduced = mQtyProduced.get(line.getM_ProductionPlan_ID()); + qtyProduced = mQtyProduced.get(key); }else{ qtyProduced = BigDecimal.ZERO; mQtyProduced.put(key, qtyProduced);