IDEMPIERE-1750:Restore M_ProductionPlan backward compatibility

variance isn't post by can't Identify finished BOM Product
This commit is contained in:
hieplq 2016-02-03 00:30:57 +07:00
parent 7d437aee54
commit d37e7661fe
1 changed files with 4 additions and 1 deletions

View File

@ -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);