IDEMPIERE-3082:Production posting not balanced when serializing finished product / peer review - fix issue from previous commit that broke the posting of single product

This commit is contained in:
Carlos Ruiz 2016-05-17 13:46:34 -07:00
parent fce5824142
commit 945b7cccb7
1 changed files with 1 additions and 3 deletions

View File

@ -84,10 +84,8 @@ public class Doc_Production extends Doc
BigDecimal qtyProduced = null; BigDecimal qtyProduced = null;
Integer key = isUsePlan?line.getM_ProductionPlan_ID():line.getM_Production_ID(); Integer key = isUsePlan?line.getM_ProductionPlan_ID():line.getM_Production_ID();
qtyProduced = mQtyProduced.get(line.getM_ProductionPlan_ID());
if (mQtyProduced.containsKey(key)){ if (mQtyProduced.containsKey(key)){
qtyProduced = mQtyProduced.get(line.getM_ProductionPlan_ID()); qtyProduced = mQtyProduced.get(key);
}else{ }else{
qtyProduced = BigDecimal.ZERO; qtyProduced = BigDecimal.ZERO;
mQtyProduced.put(key, qtyProduced); mQtyProduced.put(key, qtyProduced);