MPPOrderBOMLine: throw exception if using not supported component types
This commit is contained in:
parent
7ecf75273a
commit
24fd729e47
|
@ -19,6 +19,7 @@ import java.math.BigDecimal;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import org.adempiere.exceptions.AdempiereException;
|
||||||
import org.compiere.model.MProduct;
|
import org.compiere.model.MProduct;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
@ -208,6 +209,10 @@ public class MPPOrderBOMLine extends X_PP_Order_BOMLine
|
||||||
{
|
{
|
||||||
this.setQtyRequiered(this.getQtyBOM());
|
this.setQtyRequiered(this.getQtyBOM());
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new AdempiereException("@NotSupported@ @ComponentType@ "+this.getComponentType());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -224,6 +229,10 @@ public class MPPOrderBOMLine extends X_PP_Order_BOMLine
|
||||||
{
|
{
|
||||||
this.setQtyRequiered(this.getQtyBOM());
|
this.setQtyRequiered(this.getQtyBOM());
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new AdempiereException("@NotSupported@ @ComponentType@ "+this.getComponentType());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set Scrap of Component
|
// Set Scrap of Component
|
||||||
|
|
Loading…
Reference in New Issue