From d37e7661fefc0fb3cfb6988f536fb0957bd0d9a7 Mon Sep 17 00:00:00 2001 From: hieplq Date: Wed, 3 Feb 2016 00:30:57 +0700 Subject: [PATCH] IDEMPIERE-1750:Restore M_ProductionPlan backward compatibility variance isn't post by can't Identify finished BOM Product --- org.adempiere.base/src/org/compiere/acct/Doc_Production.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 64fbcab5a0..334b7e9326 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_Production.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_Production.java @@ -111,7 +111,10 @@ public class Doc_Production extends Doc DocLine docLine = new DocLine (line, this); docLine.setQty (line.getMovementQty(), false); // Identify finished BOM Product - docLine.setProductionBOM(line.getM_Product_ID() == prod.getM_Product_ID()); + if (prod.isUseProductionPlan()) + docLine.setProductionBOM(line.getM_Product_ID() == line.getM_ProductionPlan().getM_Product_ID()); + else + docLine.setProductionBOM(line.getM_Product_ID() == prod.getM_Product_ID()); // if (log.isLoggable(Level.FINE)) log.fine(docLine.toString()); list.add (docLine);