Adding new reference for Back-flush methods
http://sourceforge.net/tracker2/?func=detail&atid=879335&aid=2492429&group_id=176962
This commit is contained in:
parent
17f90dac81
commit
fbc0fa1815
|
@ -21,12 +21,7 @@ package org.eevolution.model;
|
|||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import org.compiere.model.I_C_UOM;
|
||||
import org.compiere.model.I_M_ChangeNotice;
|
||||
import org.compiere.model.I_M_Product;
|
||||
import org.compiere.model.I_M_Warehouse;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for PP_Order_BOMLine
|
||||
|
@ -102,19 +97,6 @@ public interface I_PP_Order_BOMLine
|
|||
*/
|
||||
public String getBackflushGroup();
|
||||
|
||||
/** Column name ComponentType */
|
||||
public static final String COLUMNNAME_ComponentType = "ComponentType";
|
||||
|
||||
/** Set Component Type.
|
||||
* Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public void setComponentType (String ComponentType);
|
||||
|
||||
/** Get Component Type.
|
||||
* Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public String getComponentType();
|
||||
|
||||
/** Column name C_UOM_ID */
|
||||
public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID";
|
||||
|
||||
|
@ -130,6 +112,19 @@ public interface I_PP_Order_BOMLine
|
|||
|
||||
public I_C_UOM getC_UOM() throws RuntimeException;
|
||||
|
||||
/** Column name ComponentType */
|
||||
public static final String COLUMNNAME_ComponentType = "ComponentType";
|
||||
|
||||
/** Set Component Type.
|
||||
* Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public void setComponentType (String ComponentType);
|
||||
|
||||
/** Get Component Type.
|
||||
* Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public String getComponentType();
|
||||
|
||||
/** Column name DateDelivered */
|
||||
public static final String COLUMNNAME_DateDelivered = "DateDelivered";
|
||||
|
||||
|
@ -331,6 +326,15 @@ public interface I_PP_Order_BOMLine
|
|||
|
||||
public I_M_Warehouse getM_Warehouse() throws RuntimeException;
|
||||
|
||||
/** Column name PP_Order_BOMLine_ID */
|
||||
public static final String COLUMNNAME_PP_Order_BOMLine_ID = "PP_Order_BOMLine_ID";
|
||||
|
||||
/** Set Manufacturing Order BOM Line */
|
||||
public void setPP_Order_BOMLine_ID (int PP_Order_BOMLine_ID);
|
||||
|
||||
/** Get Manufacturing Order BOM Line */
|
||||
public int getPP_Order_BOMLine_ID();
|
||||
|
||||
/** Column name PP_Order_BOM_ID */
|
||||
public static final String COLUMNNAME_PP_Order_BOM_ID = "PP_Order_BOM_ID";
|
||||
|
||||
|
@ -342,15 +346,6 @@ public interface I_PP_Order_BOMLine
|
|||
|
||||
public org.eevolution.model.I_PP_Order_BOM getPP_Order_BOM() throws RuntimeException;
|
||||
|
||||
/** Column name PP_Order_BOMLine_ID */
|
||||
public static final String COLUMNNAME_PP_Order_BOMLine_ID = "PP_Order_BOMLine_ID";
|
||||
|
||||
/** Set Manufacturing Order BOM Line */
|
||||
public void setPP_Order_BOMLine_ID (int PP_Order_BOMLine_ID);
|
||||
|
||||
/** Get Manufacturing Order BOM Line */
|
||||
public int getPP_Order_BOMLine_ID();
|
||||
|
||||
/** Column name PP_Order_ID */
|
||||
public static final String COLUMNNAME_PP_Order_ID = "PP_Order_ID";
|
||||
|
||||
|
@ -362,19 +357,6 @@ public interface I_PP_Order_BOMLine
|
|||
|
||||
public org.eevolution.model.I_PP_Order getPP_Order() throws RuntimeException;
|
||||
|
||||
/** Column name QtyBatch */
|
||||
public static final String COLUMNNAME_QtyBatch = "QtyBatch";
|
||||
|
||||
/** Set Quantity in %.
|
||||
* Indicate the Quantity % use in this Formula
|
||||
*/
|
||||
public void setQtyBatch (BigDecimal QtyBatch);
|
||||
|
||||
/** Get Quantity in %.
|
||||
* Indicate the Quantity % use in this Formula
|
||||
*/
|
||||
public BigDecimal getQtyBatch();
|
||||
|
||||
/** Column name QtyBOM */
|
||||
public static final String COLUMNNAME_QtyBOM = "QtyBOM";
|
||||
|
||||
|
@ -388,6 +370,19 @@ public interface I_PP_Order_BOMLine
|
|||
*/
|
||||
public BigDecimal getQtyBOM();
|
||||
|
||||
/** Column name QtyBatch */
|
||||
public static final String COLUMNNAME_QtyBatch = "QtyBatch";
|
||||
|
||||
/** Set Quantity in %.
|
||||
* Indicate the Quantity % use in this Formula
|
||||
*/
|
||||
public void setQtyBatch (BigDecimal QtyBatch);
|
||||
|
||||
/** Get Quantity in %.
|
||||
* Indicate the Quantity % use in this Formula
|
||||
*/
|
||||
public BigDecimal getQtyBatch();
|
||||
|
||||
/** Column name QtyDelivered */
|
||||
public static final String COLUMNNAME_QtyDelivered = "QtyDelivered";
|
||||
|
||||
|
|
|
@ -21,11 +21,7 @@ package org.eevolution.model;
|
|||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import org.compiere.model.I_C_UOM;
|
||||
import org.compiere.model.I_M_ChangeNotice;
|
||||
import org.compiere.model.I_M_Product;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for PP_Product_BOMLine
|
||||
|
@ -88,19 +84,6 @@ public interface I_PP_Product_BOMLine
|
|||
*/
|
||||
public String getBackflushGroup();
|
||||
|
||||
/** Column name ComponentType */
|
||||
public static final String COLUMNNAME_ComponentType = "ComponentType";
|
||||
|
||||
/** Set Component Type.
|
||||
* Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public void setComponentType (String ComponentType);
|
||||
|
||||
/** Get Component Type.
|
||||
* Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public String getComponentType();
|
||||
|
||||
/** Column name C_UOM_ID */
|
||||
public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID";
|
||||
|
||||
|
@ -116,6 +99,19 @@ public interface I_PP_Product_BOMLine
|
|||
|
||||
public I_C_UOM getC_UOM() throws RuntimeException;
|
||||
|
||||
/** Column name ComponentType */
|
||||
public static final String COLUMNNAME_ComponentType = "ComponentType";
|
||||
|
||||
/** Set Component Type.
|
||||
* Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public void setComponentType (String ComponentType);
|
||||
|
||||
/** Get Component Type.
|
||||
* Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public String getComponentType();
|
||||
|
||||
/** Column name Description */
|
||||
public static final String COLUMNNAME_Description = "Description";
|
||||
|
||||
|
@ -276,6 +272,19 @@ public interface I_PP_Product_BOMLine
|
|||
|
||||
public I_M_Product getM_Product() throws RuntimeException;
|
||||
|
||||
/** Column name PP_Product_BOMLine_ID */
|
||||
public static final String COLUMNNAME_PP_Product_BOMLine_ID = "PP_Product_BOMLine_ID";
|
||||
|
||||
/** Set BOM Line.
|
||||
* BOM Line
|
||||
*/
|
||||
public void setPP_Product_BOMLine_ID (int PP_Product_BOMLine_ID);
|
||||
|
||||
/** Get BOM Line.
|
||||
* BOM Line
|
||||
*/
|
||||
public int getPP_Product_BOMLine_ID();
|
||||
|
||||
/** Column name PP_Product_BOM_ID */
|
||||
public static final String COLUMNNAME_PP_Product_BOM_ID = "PP_Product_BOM_ID";
|
||||
|
||||
|
@ -291,18 +300,18 @@ public interface I_PP_Product_BOMLine
|
|||
|
||||
public org.eevolution.model.I_PP_Product_BOM getPP_Product_BOM() throws RuntimeException;
|
||||
|
||||
/** Column name PP_Product_BOMLine_ID */
|
||||
public static final String COLUMNNAME_PP_Product_BOMLine_ID = "PP_Product_BOMLine_ID";
|
||||
/** Column name QtyBOM */
|
||||
public static final String COLUMNNAME_QtyBOM = "QtyBOM";
|
||||
|
||||
/** Set BOM Line.
|
||||
* BOM Line
|
||||
/** Set Quantity.
|
||||
* Indicate the Quantity use in this BOM
|
||||
*/
|
||||
public void setPP_Product_BOMLine_ID (int PP_Product_BOMLine_ID);
|
||||
public void setQtyBOM (BigDecimal QtyBOM);
|
||||
|
||||
/** Get BOM Line.
|
||||
* BOM Line
|
||||
/** Get Quantity.
|
||||
* Indicate the Quantity use in this BOM
|
||||
*/
|
||||
public int getPP_Product_BOMLine_ID();
|
||||
public BigDecimal getQtyBOM();
|
||||
|
||||
/** Column name QtyBatch */
|
||||
public static final String COLUMNNAME_QtyBatch = "QtyBatch";
|
||||
|
@ -317,19 +326,6 @@ public interface I_PP_Product_BOMLine
|
|||
*/
|
||||
public BigDecimal getQtyBatch();
|
||||
|
||||
/** Column name QtyBOM */
|
||||
public static final String COLUMNNAME_QtyBOM = "QtyBOM";
|
||||
|
||||
/** Set Quantity.
|
||||
* Indicate the Quantity use in this BOM
|
||||
*/
|
||||
public void setQtyBOM (BigDecimal QtyBOM);
|
||||
|
||||
/** Get Quantity.
|
||||
* Indicate the Quantity use in this BOM
|
||||
*/
|
||||
public BigDecimal getQtyBOM();
|
||||
|
||||
/** Column name Scrap */
|
||||
public static final String COLUMNNAME_Scrap = "Scrap";
|
||||
|
||||
|
|
|
@ -23,15 +23,7 @@ import java.sql.ResultSet;
|
|||
import java.sql.Timestamp;
|
||||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.model.I_C_UOM;
|
||||
import org.compiere.model.I_M_ChangeNotice;
|
||||
import org.compiere.model.I_M_Product;
|
||||
import org.compiere.model.I_M_Warehouse;
|
||||
import org.compiere.model.I_Persistent;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.PO;
|
||||
import org.compiere.model.POInfo;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
|
@ -58,11 +50,11 @@ public class X_PP_Order_BOMLine extends PO implements I_PP_Order_BOMLine, I_Pers
|
|||
// @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM PP_Order_BOMLine WHERE PP_Order_ID=@PP_Order_ID@
|
||||
setM_Product_ID (0);
|
||||
setM_Warehouse_ID (0);
|
||||
setPP_Order_BOM_ID (0);
|
||||
setPP_Order_BOMLine_ID (0);
|
||||
setPP_Order_BOM_ID (0);
|
||||
setPP_Order_ID (0);
|
||||
setQtyBatch (Env.ZERO);
|
||||
setQtyBOM (Env.ZERO);
|
||||
setQtyBatch (Env.ZERO);
|
||||
setQtyDelivered (Env.ZERO);
|
||||
setQtyPost (Env.ZERO);
|
||||
setQtyReject (Env.ZERO);
|
||||
|
@ -162,42 +154,6 @@ public class X_PP_Order_BOMLine extends PO implements I_PP_Order_BOMLine, I_Pers
|
|||
return (String)get_Value(COLUMNNAME_BackflushGroup);
|
||||
}
|
||||
|
||||
/** ComponentType AD_Reference_ID=53225 */
|
||||
public static final int COMPONENTTYPE_AD_Reference_ID=53225;
|
||||
/** By Product = BY */
|
||||
public static final String COMPONENTTYPE_ByProduct = "BY";
|
||||
/** Component = CO */
|
||||
public static final String COMPONENTTYPE_Component = "CO";
|
||||
/** Phantom = PH */
|
||||
public static final String COMPONENTTYPE_Phantom = "PH";
|
||||
/** Packing = PK */
|
||||
public static final String COMPONENTTYPE_Packing = "PK";
|
||||
/** Planning = PL */
|
||||
public static final String COMPONENTTYPE_Planning = "PL";
|
||||
/** Tools = TL */
|
||||
public static final String COMPONENTTYPE_Tools = "TL";
|
||||
/** Option = OP */
|
||||
public static final String COMPONENTTYPE_Option = "OP";
|
||||
/** Variant = VA */
|
||||
public static final String COMPONENTTYPE_Variant = "VA";
|
||||
/** Set Component Type.
|
||||
@param ComponentType
|
||||
Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public void setComponentType (String ComponentType)
|
||||
{
|
||||
|
||||
if (ComponentType == null || ComponentType.equals("BY") || ComponentType.equals("CO") || ComponentType.equals("PH") || ComponentType.equals("PK") || ComponentType.equals("PL") || ComponentType.equals("TL") || ComponentType.equals("OP") || ComponentType.equals("VA")); else throw new IllegalArgumentException ("ComponentType Invalid value - " + ComponentType + " - Reference_ID=53225 - BY - CO - PH - PK - PL - TL - OP - VA"); set_Value (COLUMNNAME_ComponentType, ComponentType);
|
||||
}
|
||||
|
||||
/** Get Component Type.
|
||||
@return Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public String getComponentType ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_ComponentType);
|
||||
}
|
||||
|
||||
public I_C_UOM getC_UOM() throws RuntimeException
|
||||
{
|
||||
Class<?> clazz = MTable.getClass(I_C_UOM.Table_Name);
|
||||
|
@ -236,6 +192,45 @@ public class X_PP_Order_BOMLine extends PO implements I_PP_Order_BOMLine, I_Pers
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** ComponentType AD_Reference_ID=53225 */
|
||||
public static final int COMPONENTTYPE_AD_Reference_ID=53225;
|
||||
/** By Product = BY */
|
||||
public static final String COMPONENTTYPE_ByProduct = "BY";
|
||||
/** Component = CO */
|
||||
public static final String COMPONENTTYPE_Component = "CO";
|
||||
/** Phantom = PH */
|
||||
public static final String COMPONENTTYPE_Phantom = "PH";
|
||||
/** Packing = PK */
|
||||
public static final String COMPONENTTYPE_Packing = "PK";
|
||||
/** Planning = PL */
|
||||
public static final String COMPONENTTYPE_Planning = "PL";
|
||||
/** Tools = TL */
|
||||
public static final String COMPONENTTYPE_Tools = "TL";
|
||||
/** Option = OP */
|
||||
public static final String COMPONENTTYPE_Option = "OP";
|
||||
/** Variant = VA */
|
||||
public static final String COMPONENTTYPE_Variant = "VA";
|
||||
/** Set Component Type.
|
||||
@param ComponentType
|
||||
Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public void setComponentType (String ComponentType)
|
||||
{
|
||||
|
||||
if (ComponentType == null || ComponentType.equals("BY") || ComponentType.equals("CO") || ComponentType.equals("PH") || ComponentType.equals("PK") || ComponentType.equals("PL") || ComponentType.equals("TL") || ComponentType.equals("OP") || ComponentType.equals("VA"));
|
||||
else throw new IllegalArgumentException ("ComponentType Invalid value - " + ComponentType + " - Reference_ID=53225 - BY - CO - PH - PK - PL - TL - OP - VA");
|
||||
|
||||
set_Value (COLUMNNAME_ComponentType, ComponentType);
|
||||
}
|
||||
|
||||
/** Get Component Type.
|
||||
@return Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public String getComponentType ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_ComponentType);
|
||||
}
|
||||
|
||||
/** Set Date Delivered.
|
||||
@param DateDelivered
|
||||
Date when the product was delivered
|
||||
|
@ -376,8 +371,10 @@ public class X_PP_Order_BOMLine extends PO implements I_PP_Order_BOMLine, I_Pers
|
|||
public static final int ISSUEMETHOD_AD_Reference_ID=53226;
|
||||
/** Issue = 0 */
|
||||
public static final String ISSUEMETHOD_Issue = "0";
|
||||
/** BackFlush = 1 */
|
||||
public static final String ISSUEMETHOD_BackFlush = "1";
|
||||
/** Backflush = 1 */
|
||||
public static final String ISSUEMETHOD_Backflush = "1";
|
||||
/** Floor Stock = 2 */
|
||||
public static final String ISSUEMETHOD_FloorStock = "2";
|
||||
/** Set Issue Method.
|
||||
@param IssueMethod
|
||||
There are two methods for issue the components to Manufacturing Order
|
||||
|
@ -385,7 +382,10 @@ public class X_PP_Order_BOMLine extends PO implements I_PP_Order_BOMLine, I_Pers
|
|||
public void setIssueMethod (String IssueMethod)
|
||||
{
|
||||
|
||||
if (IssueMethod == null || IssueMethod.equals("0") || IssueMethod.equals("1")); else throw new IllegalArgumentException ("IssueMethod Invalid value - " + IssueMethod + " - Reference_ID=53226 - 0 - 1"); set_Value (COLUMNNAME_IssueMethod, IssueMethod);
|
||||
if (IssueMethod == null || IssueMethod.equals("0") || IssueMethod.equals("1") || IssueMethod.equals("2"));
|
||||
else throw new IllegalArgumentException ("IssueMethod Invalid value - " + IssueMethod + " - Reference_ID=53226 - 0 - 1 - 2");
|
||||
|
||||
set_Value (COLUMNNAME_IssueMethod, IssueMethod);
|
||||
}
|
||||
|
||||
/** Get Issue Method.
|
||||
|
@ -605,6 +605,25 @@ public class X_PP_Order_BOMLine extends PO implements I_PP_Order_BOMLine, I_Pers
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Manufacturing Order BOM Line.
|
||||
@param PP_Order_BOMLine_ID Manufacturing Order BOM Line */
|
||||
public void setPP_Order_BOMLine_ID (int PP_Order_BOMLine_ID)
|
||||
{
|
||||
if (PP_Order_BOMLine_ID < 1)
|
||||
throw new IllegalArgumentException ("PP_Order_BOMLine_ID is mandatory.");
|
||||
set_ValueNoCheck (COLUMNNAME_PP_Order_BOMLine_ID, Integer.valueOf(PP_Order_BOMLine_ID));
|
||||
}
|
||||
|
||||
/** Get Manufacturing Order BOM Line.
|
||||
@return Manufacturing Order BOM Line */
|
||||
public int getPP_Order_BOMLine_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_BOMLine_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.eevolution.model.I_PP_Order_BOM getPP_Order_BOM() throws RuntimeException
|
||||
{
|
||||
Class<?> clazz = MTable.getClass(org.eevolution.model.I_PP_Order_BOM.Table_Name);
|
||||
|
@ -640,25 +659,6 @@ public class X_PP_Order_BOMLine extends PO implements I_PP_Order_BOMLine, I_Pers
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Manufacturing Order BOM Line.
|
||||
@param PP_Order_BOMLine_ID Manufacturing Order BOM Line */
|
||||
public void setPP_Order_BOMLine_ID (int PP_Order_BOMLine_ID)
|
||||
{
|
||||
if (PP_Order_BOMLine_ID < 1)
|
||||
throw new IllegalArgumentException ("PP_Order_BOMLine_ID is mandatory.");
|
||||
set_ValueNoCheck (COLUMNNAME_PP_Order_BOMLine_ID, Integer.valueOf(PP_Order_BOMLine_ID));
|
||||
}
|
||||
|
||||
/** Get Manufacturing Order BOM Line.
|
||||
@return Manufacturing Order BOM Line */
|
||||
public int getPP_Order_BOMLine_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_BOMLine_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.eevolution.model.I_PP_Order getPP_Order() throws RuntimeException
|
||||
{
|
||||
Class<?> clazz = MTable.getClass(org.eevolution.model.I_PP_Order.Table_Name);
|
||||
|
@ -694,28 +694,6 @@ public class X_PP_Order_BOMLine extends PO implements I_PP_Order_BOMLine, I_Pers
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Quantity in %.
|
||||
@param QtyBatch
|
||||
Indicate the Quantity % use in this Formula
|
||||
*/
|
||||
public void setQtyBatch (BigDecimal QtyBatch)
|
||||
{
|
||||
if (QtyBatch == null)
|
||||
throw new IllegalArgumentException ("QtyBatch is mandatory.");
|
||||
set_ValueNoCheck (COLUMNNAME_QtyBatch, QtyBatch);
|
||||
}
|
||||
|
||||
/** Get Quantity in %.
|
||||
@return Indicate the Quantity % use in this Formula
|
||||
*/
|
||||
public BigDecimal getQtyBatch ()
|
||||
{
|
||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyBatch);
|
||||
if (bd == null)
|
||||
return Env.ZERO;
|
||||
return bd;
|
||||
}
|
||||
|
||||
/** Set Quantity.
|
||||
@param QtyBOM
|
||||
Indicate the Quantity use in this BOM
|
||||
|
@ -738,6 +716,28 @@ public class X_PP_Order_BOMLine extends PO implements I_PP_Order_BOMLine, I_Pers
|
|||
return bd;
|
||||
}
|
||||
|
||||
/** Set Quantity in %.
|
||||
@param QtyBatch
|
||||
Indicate the Quantity % use in this Formula
|
||||
*/
|
||||
public void setQtyBatch (BigDecimal QtyBatch)
|
||||
{
|
||||
if (QtyBatch == null)
|
||||
throw new IllegalArgumentException ("QtyBatch is mandatory.");
|
||||
set_ValueNoCheck (COLUMNNAME_QtyBatch, QtyBatch);
|
||||
}
|
||||
|
||||
/** Get Quantity in %.
|
||||
@return Indicate the Quantity % use in this Formula
|
||||
*/
|
||||
public BigDecimal getQtyBatch ()
|
||||
{
|
||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyBatch);
|
||||
if (bd == null)
|
||||
return Env.ZERO;
|
||||
return bd;
|
||||
}
|
||||
|
||||
/** Set Delivered Quantity.
|
||||
@param QtyDelivered
|
||||
Delivered Quantity
|
||||
|
|
|
@ -23,14 +23,7 @@ import java.sql.ResultSet;
|
|||
import java.sql.Timestamp;
|
||||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.model.I_C_UOM;
|
||||
import org.compiere.model.I_M_ChangeNotice;
|
||||
import org.compiere.model.I_M_Product;
|
||||
import org.compiere.model.I_Persistent;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.PO;
|
||||
import org.compiere.model.POInfo;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.util.Env;
|
||||
|
||||
/** Generated Model for PP_Product_BOMLine
|
||||
|
@ -55,8 +48,8 @@ public class X_PP_Product_BOMLine extends PO implements I_PP_Product_BOMLine, I_
|
|||
setLine (0);
|
||||
// @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM PP_Product_BOMLine WHERE PP_Product_BOM_ID=@PP_Product_BOM_ID@
|
||||
setM_Product_ID (0);
|
||||
setPP_Product_BOM_ID (0);
|
||||
setPP_Product_BOMLine_ID (0);
|
||||
setPP_Product_BOM_ID (0);
|
||||
setValidFrom (new Timestamp( System.currentTimeMillis() ));
|
||||
// @#Date@
|
||||
} */
|
||||
|
@ -127,42 +120,6 @@ public class X_PP_Product_BOMLine extends PO implements I_PP_Product_BOMLine, I_
|
|||
return (String)get_Value(COLUMNNAME_BackflushGroup);
|
||||
}
|
||||
|
||||
/** ComponentType AD_Reference_ID=53225 */
|
||||
public static final int COMPONENTTYPE_AD_Reference_ID=53225;
|
||||
/** By Product = BY */
|
||||
public static final String COMPONENTTYPE_ByProduct = "BY";
|
||||
/** Component = CO */
|
||||
public static final String COMPONENTTYPE_Component = "CO";
|
||||
/** Phantom = PH */
|
||||
public static final String COMPONENTTYPE_Phantom = "PH";
|
||||
/** Packing = PK */
|
||||
public static final String COMPONENTTYPE_Packing = "PK";
|
||||
/** Planning = PL */
|
||||
public static final String COMPONENTTYPE_Planning = "PL";
|
||||
/** Tools = TL */
|
||||
public static final String COMPONENTTYPE_Tools = "TL";
|
||||
/** Option = OP */
|
||||
public static final String COMPONENTTYPE_Option = "OP";
|
||||
/** Variant = VA */
|
||||
public static final String COMPONENTTYPE_Variant = "VA";
|
||||
/** Set Component Type.
|
||||
@param ComponentType
|
||||
Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public void setComponentType (String ComponentType)
|
||||
{
|
||||
|
||||
if (ComponentType == null || ComponentType.equals("BY") || ComponentType.equals("CO") || ComponentType.equals("PH") || ComponentType.equals("PK") || ComponentType.equals("PL") || ComponentType.equals("TL") || ComponentType.equals("OP") || ComponentType.equals("VA")); else throw new IllegalArgumentException ("ComponentType Invalid value - " + ComponentType + " - Reference_ID=53225 - BY - CO - PH - PK - PL - TL - OP - VA"); set_Value (COLUMNNAME_ComponentType, ComponentType);
|
||||
}
|
||||
|
||||
/** Get Component Type.
|
||||
@return Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public String getComponentType ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_ComponentType);
|
||||
}
|
||||
|
||||
public I_C_UOM getC_UOM() throws RuntimeException
|
||||
{
|
||||
Class<?> clazz = MTable.getClass(I_C_UOM.Table_Name);
|
||||
|
@ -202,6 +159,45 @@ public class X_PP_Product_BOMLine extends PO implements I_PP_Product_BOMLine, I_
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** ComponentType AD_Reference_ID=53225 */
|
||||
public static final int COMPONENTTYPE_AD_Reference_ID=53225;
|
||||
/** By Product = BY */
|
||||
public static final String COMPONENTTYPE_ByProduct = "BY";
|
||||
/** Component = CO */
|
||||
public static final String COMPONENTTYPE_Component = "CO";
|
||||
/** Phantom = PH */
|
||||
public static final String COMPONENTTYPE_Phantom = "PH";
|
||||
/** Packing = PK */
|
||||
public static final String COMPONENTTYPE_Packing = "PK";
|
||||
/** Planning = PL */
|
||||
public static final String COMPONENTTYPE_Planning = "PL";
|
||||
/** Tools = TL */
|
||||
public static final String COMPONENTTYPE_Tools = "TL";
|
||||
/** Option = OP */
|
||||
public static final String COMPONENTTYPE_Option = "OP";
|
||||
/** Variant = VA */
|
||||
public static final String COMPONENTTYPE_Variant = "VA";
|
||||
/** Set Component Type.
|
||||
@param ComponentType
|
||||
Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public void setComponentType (String ComponentType)
|
||||
{
|
||||
|
||||
if (ComponentType == null || ComponentType.equals("BY") || ComponentType.equals("CO") || ComponentType.equals("PH") || ComponentType.equals("PK") || ComponentType.equals("PL") || ComponentType.equals("TL") || ComponentType.equals("OP") || ComponentType.equals("VA"));
|
||||
else throw new IllegalArgumentException ("ComponentType Invalid value - " + ComponentType + " - Reference_ID=53225 - BY - CO - PH - PK - PL - TL - OP - VA");
|
||||
|
||||
set_Value (COLUMNNAME_ComponentType, ComponentType);
|
||||
}
|
||||
|
||||
/** Get Component Type.
|
||||
@return Component Type for a Bill of Material or Formula
|
||||
*/
|
||||
public String getComponentType ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_ComponentType);
|
||||
}
|
||||
|
||||
/** Set Description.
|
||||
@param Description
|
||||
Optional short description of the record
|
||||
|
@ -325,8 +321,10 @@ public class X_PP_Product_BOMLine extends PO implements I_PP_Product_BOMLine, I_
|
|||
public static final int ISSUEMETHOD_AD_Reference_ID=53226;
|
||||
/** Issue = 0 */
|
||||
public static final String ISSUEMETHOD_Issue = "0";
|
||||
/** BackFlush = 1 */
|
||||
public static final String ISSUEMETHOD_BackFlush = "1";
|
||||
/** Backflush = 1 */
|
||||
public static final String ISSUEMETHOD_Backflush = "1";
|
||||
/** Floor Stock = 2 */
|
||||
public static final String ISSUEMETHOD_FloorStock = "2";
|
||||
/** Set Issue Method.
|
||||
@param IssueMethod
|
||||
There are two methods for issue the components to Manufacturing Order
|
||||
|
@ -334,7 +332,10 @@ public class X_PP_Product_BOMLine extends PO implements I_PP_Product_BOMLine, I_
|
|||
public void setIssueMethod (String IssueMethod)
|
||||
{
|
||||
if (IssueMethod == null) throw new IllegalArgumentException ("IssueMethod is mandatory");
|
||||
if (IssueMethod.equals("0") || IssueMethod.equals("1")); else throw new IllegalArgumentException ("IssueMethod Invalid value - " + IssueMethod + " - Reference_ID=53226 - 0 - 1"); set_Value (COLUMNNAME_IssueMethod, IssueMethod);
|
||||
if (IssueMethod.equals("0") || IssueMethod.equals("1") || IssueMethod.equals("2"));
|
||||
else throw new IllegalArgumentException ("IssueMethod Invalid value - " + IssueMethod + " - Reference_ID=53226 - 0 - 1 - 2");
|
||||
|
||||
set_Value (COLUMNNAME_IssueMethod, IssueMethod);
|
||||
}
|
||||
|
||||
/** Get Issue Method.
|
||||
|
@ -485,6 +486,28 @@ public class X_PP_Product_BOMLine extends PO implements I_PP_Product_BOMLine, I_
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set BOM Line.
|
||||
@param PP_Product_BOMLine_ID
|
||||
BOM Line
|
||||
*/
|
||||
public void setPP_Product_BOMLine_ID (int PP_Product_BOMLine_ID)
|
||||
{
|
||||
if (PP_Product_BOMLine_ID < 1)
|
||||
throw new IllegalArgumentException ("PP_Product_BOMLine_ID is mandatory.");
|
||||
set_ValueNoCheck (COLUMNNAME_PP_Product_BOMLine_ID, Integer.valueOf(PP_Product_BOMLine_ID));
|
||||
}
|
||||
|
||||
/** Get BOM Line.
|
||||
@return BOM Line
|
||||
*/
|
||||
public int getPP_Product_BOMLine_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_PP_Product_BOMLine_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.eevolution.model.I_PP_Product_BOM getPP_Product_BOM() throws RuntimeException
|
||||
{
|
||||
Class<?> clazz = MTable.getClass(org.eevolution.model.I_PP_Product_BOM.Table_Name);
|
||||
|
@ -523,26 +546,24 @@ public class X_PP_Product_BOMLine extends PO implements I_PP_Product_BOMLine, I_
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set BOM Line.
|
||||
@param PP_Product_BOMLine_ID
|
||||
BOM Line
|
||||
/** Set Quantity.
|
||||
@param QtyBOM
|
||||
Indicate the Quantity use in this BOM
|
||||
*/
|
||||
public void setPP_Product_BOMLine_ID (int PP_Product_BOMLine_ID)
|
||||
public void setQtyBOM (BigDecimal QtyBOM)
|
||||
{
|
||||
if (PP_Product_BOMLine_ID < 1)
|
||||
throw new IllegalArgumentException ("PP_Product_BOMLine_ID is mandatory.");
|
||||
set_ValueNoCheck (COLUMNNAME_PP_Product_BOMLine_ID, Integer.valueOf(PP_Product_BOMLine_ID));
|
||||
set_Value (COLUMNNAME_QtyBOM, QtyBOM);
|
||||
}
|
||||
|
||||
/** Get BOM Line.
|
||||
@return BOM Line
|
||||
/** Get Quantity.
|
||||
@return Indicate the Quantity use in this BOM
|
||||
*/
|
||||
public int getPP_Product_BOMLine_ID ()
|
||||
public BigDecimal getQtyBOM ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_PP_Product_BOMLine_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyBOM);
|
||||
if (bd == null)
|
||||
return Env.ZERO;
|
||||
return bd;
|
||||
}
|
||||
|
||||
/** Set Quantity in %.
|
||||
|
@ -565,26 +586,6 @@ public class X_PP_Product_BOMLine extends PO implements I_PP_Product_BOMLine, I_
|
|||
return bd;
|
||||
}
|
||||
|
||||
/** Set Quantity.
|
||||
@param QtyBOM
|
||||
Indicate the Quantity use in this BOM
|
||||
*/
|
||||
public void setQtyBOM (BigDecimal QtyBOM)
|
||||
{
|
||||
set_Value (COLUMNNAME_QtyBOM, QtyBOM);
|
||||
}
|
||||
|
||||
/** Get Quantity.
|
||||
@return Indicate the Quantity use in this BOM
|
||||
*/
|
||||
public BigDecimal getQtyBOM ()
|
||||
{
|
||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyBOM);
|
||||
if (bd == null)
|
||||
return Env.ZERO;
|
||||
return bd;
|
||||
}
|
||||
|
||||
/** Set % Scrap.
|
||||
@param Scrap
|
||||
Indicate the % Scrap for calculate the Scrap Quantity
|
||||
|
|
Loading…
Reference in New Issue