Implementing Local Phantom

This commit is contained in:
vpj-cd 2008-09-06 22:32:46 +00:00
parent 895e58208c
commit 9feb992370
1 changed files with 4 additions and 4 deletions

View File

@ -209,13 +209,13 @@ public class M_Production_Run extends SvrProcess {
line = line * m_level;
for(MPPProductBOMLine bomline : bom_lines)
{
MProduct componet = MProduct.get(getCtx(), bomline.getM_Product_ID());
MProduct component = MProduct.get(getCtx(), bomline.getM_Product_ID());
if(componet.isBOM() && !componet.isStocked())
if(component.isBOM() && !component.isStocked())
{
explosion(pp, componet, bomline.getQtyBOM() , line);
explosion(pp, component, bomline.getQtyBOM() , line);
}
else if(!componet.isBOM() && componet.isStocked())
else if(!component.isBOM() && component.isStocked() || MPPProductBOMLine.COMPONENTTYPE_Phantom.equals(bomline.getComponentType()))
{
line += 1;
X_M_ProductionLine pl = new X_M_ProductionLine(getCtx(), 0 , get_TrxName());