IDEMPIERE-1750:Restore M_ProductionPlan backward compatibility
variance isn't post by can't Identify finished BOM Product
This commit is contained in:
parent
7d437aee54
commit
d37e7661fe
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue