diff --git a/base/src/org/eevolution/model/I_PP_Product_Planning.java b/base/src/org/eevolution/model/I_PP_Product_Planning.java index 465af334b8..a82ec820e4 100644 --- a/base/src/org/eevolution/model/I_PP_Product_Planning.java +++ b/base/src/org/eevolution/model/I_PP_Product_Planning.java @@ -147,10 +147,14 @@ public interface I_PP_Product_Planning /** Column name IsMPS */ public static final String COLUMNNAME_IsMPS = "IsMPS"; - /** Set Is MPS */ + /** Set Is MPS. + * Determines if this product is part of the master production schedule + */ public void setIsMPS (boolean IsMPS); - /** Get Is MPS */ + /** Get Is MPS. + * Determines if this product is part of the master production schedule + */ public boolean isMPS(); /** Column name IsPhantom */ @@ -280,17 +284,6 @@ public interface I_PP_Product_Planning /** Get Order Qty */ public BigDecimal getOrder_Qty(); - /** Column name Planner_ID */ - public static final String COLUMNNAME_Planner_ID = "Planner_ID"; - - /** Set Planner */ - public void setPlanner_ID (int Planner_ID); - - /** Get Planner */ - public int getPlanner_ID(); - - public I_AD_User getPlanner() throws RuntimeException; - /** Column name PP_Product_BOM_ID */ public static final String COLUMNNAME_PP_Product_BOM_ID = "PP_Product_BOM_ID"; @@ -315,18 +308,16 @@ public interface I_PP_Product_Planning /** Get Product Planning */ public int getPP_Product_Planning_ID(); - /** Column name SafetyStock */ - public static final String COLUMNNAME_SafetyStock = "SafetyStock"; + /** Column name Planner_ID */ + public static final String COLUMNNAME_Planner_ID = "Planner_ID"; - /** Set Safety Stock Qty. - * Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs - */ - public void setSafetyStock (BigDecimal SafetyStock); + /** Set Planner */ + public void setPlanner_ID (int Planner_ID); - /** Get Safety Stock Qty. - * Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs - */ - public BigDecimal getSafetyStock(); + /** Get Planner */ + public int getPlanner_ID(); + + public I_AD_User getPlanner() throws RuntimeException; /** Column name S_Resource_ID */ public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; @@ -343,6 +334,19 @@ public interface I_PP_Product_Planning public I_S_Resource getS_Resource() throws RuntimeException; + /** Column name SafetyStock */ + public static final String COLUMNNAME_SafetyStock = "SafetyStock"; + + /** Set Safety Stock Qty. + * Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs + */ + public void setSafetyStock (BigDecimal SafetyStock); + + /** Get Safety Stock Qty. + * Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs + */ + public BigDecimal getSafetyStock(); + /** Column name TimeFence */ public static final String COLUMNNAME_TimeFence = "TimeFence"; diff --git a/base/src/org/eevolution/model/X_PP_Product_Planning.java b/base/src/org/eevolution/model/X_PP_Product_Planning.java index 6432c40565..fa4a1372fd 100644 --- a/base/src/org/eevolution/model/X_PP_Product_Planning.java +++ b/base/src/org/eevolution/model/X_PP_Product_Planning.java @@ -22,6 +22,7 @@ import java.sql.ResultSet; import java.util.Properties; import org.compiere.model.*; import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; /** Generated Model for PP_Product_Planning * @author Adempiere (generated) @@ -32,7 +33,7 @@ public class X_PP_Product_Planning extends PO implements I_PP_Product_Planning, /** * */ - private static final long serialVersionUID = 20090915L; + private static final long serialVersionUID = 20100215L; /** Standard Constructor */ public X_PP_Product_Planning (Properties ctx, int PP_Product_Planning_ID, String trxName) @@ -175,14 +176,17 @@ public class X_PP_Product_Planning extends PO implements I_PP_Product_Planning, } /** Set Is MPS. - @param IsMPS Is MPS */ + @param IsMPS + Determines if this product is part of the master production schedule + */ public void setIsMPS (boolean IsMPS) { set_Value (COLUMNNAME_IsMPS, Boolean.valueOf(IsMPS)); } /** Get Is MPS. - @return Is MPS */ + @return Determines if this product is part of the master production schedule + */ public boolean isMPS () { Object oo = get_Value(COLUMNNAME_IsMPS); @@ -289,6 +293,14 @@ public class X_PP_Product_Planning extends PO implements I_PP_Product_Planning, return ii.intValue(); } + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_Product_ID())); + } + public I_M_Warehouse getM_Warehouse() throws RuntimeException { return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) @@ -434,31 +446,6 @@ public class X_PP_Product_Planning extends PO implements I_PP_Product_Planning, return bd; } - public I_AD_User getPlanner() throws RuntimeException - { - return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) - .getPO(getPlanner_ID(), get_TrxName()); } - - /** Set Planner. - @param Planner_ID Planner */ - public void setPlanner_ID (int Planner_ID) - { - if (Planner_ID < 1) - set_Value (COLUMNNAME_Planner_ID, null); - else - set_Value (COLUMNNAME_Planner_ID, Integer.valueOf(Planner_ID)); - } - - /** Get Planner. - @return Planner */ - public int getPlanner_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_Planner_ID); - if (ii == null) - return 0; - return ii.intValue(); - } - public org.eevolution.model.I_PP_Product_BOM getPP_Product_BOM() throws RuntimeException { return (org.eevolution.model.I_PP_Product_BOM)MTable.get(getCtx(), org.eevolution.model.I_PP_Product_BOM.Table_Name) @@ -507,24 +494,29 @@ public class X_PP_Product_Planning extends PO implements I_PP_Product_Planning, return ii.intValue(); } - /** Set Safety Stock Qty. - @param SafetyStock - Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs - */ - public void setSafetyStock (BigDecimal SafetyStock) + public I_AD_User getPlanner() throws RuntimeException + { + return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + .getPO(getPlanner_ID(), get_TrxName()); } + + /** Set Planner. + @param Planner_ID Planner */ + public void setPlanner_ID (int Planner_ID) { - set_Value (COLUMNNAME_SafetyStock, SafetyStock); + if (Planner_ID < 1) + set_Value (COLUMNNAME_Planner_ID, null); + else + set_Value (COLUMNNAME_Planner_ID, Integer.valueOf(Planner_ID)); } - /** Get Safety Stock Qty. - @return Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs - */ - public BigDecimal getSafetyStock () + /** Get Planner. + @return Planner */ + public int getPlanner_ID () { - BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SafetyStock); - if (bd == null) - return Env.ZERO; - return bd; + Integer ii = (Integer)get_Value(COLUMNNAME_Planner_ID); + if (ii == null) + return 0; + return ii.intValue(); } public I_S_Resource getS_Resource() throws RuntimeException @@ -555,6 +547,26 @@ public class X_PP_Product_Planning extends PO implements I_PP_Product_Planning, return ii.intValue(); } + /** Set Safety Stock Qty. + @param SafetyStock + Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs + */ + public void setSafetyStock (BigDecimal SafetyStock) + { + set_Value (COLUMNNAME_SafetyStock, SafetyStock); + } + + /** Get Safety Stock Qty. + @return Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs + */ + public BigDecimal getSafetyStock () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SafetyStock); + if (bd == null) + return Env.ZERO; + return bd; + } + /** Set Time Fence. @param TimeFence Time Fence */ public void setTimeFence (BigDecimal TimeFence) diff --git a/migration/354a-trunk/oracle/666_BF2952456_PP_Identifiers.sql b/migration/354a-trunk/oracle/666_BF2952456_PP_Identifiers.sql new file mode 100644 index 0000000000..8f6cad7372 --- /dev/null +++ b/migration/354a-trunk/oracle/666_BF2952456_PP_Identifiers.sql @@ -0,0 +1,20 @@ +-- Feb 15, 2010 5:40:55 PM CST +-- Create new importer for Planning Data and Forecast +UPDATE AD_Column SET AD_Reference_ID=19, AD_Reference_Value_ID=NULL, IsIdentifier='Y', IsUpdateable='N', SeqNo=1,Updated=TO_DATE('2010-02-15 17:40:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53389 +; + +-- Feb 15, 2010 5:41:22 PM CST +-- Create new importer for Planning Data and Forecast +UPDATE AD_Column SET Help=NULL, IsIdentifier='Y', SeqNo=2,Updated=TO_DATE('2010-02-15 17:41:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53400 +; + +-- Feb 15, 2010 5:41:22 PM CST +-- Create new importer for Planning Data and Forecast +UPDATE AD_Field SET Name='Resource', Description='Resource', Help=NULL WHERE AD_Column_ID=53400 AND IsCentrallyMaintained='Y' +; + +-- Feb 15, 2010 5:41:44 PM CST +-- Create new importer for Planning Data and Forecast +UPDATE AD_Column SET AD_Reference_ID=19, AD_Reference_Value_ID=NULL, IsIdentifier='Y', SeqNo=3,Updated=TO_DATE('2010-02-15 17:41:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53390 +; + diff --git a/migration/354a-trunk/postgresql/666_BF2952456_PP_Identifiers.sql b/migration/354a-trunk/postgresql/666_BF2952456_PP_Identifiers.sql new file mode 100644 index 0000000000..c91bcb3572 --- /dev/null +++ b/migration/354a-trunk/postgresql/666_BF2952456_PP_Identifiers.sql @@ -0,0 +1,20 @@ +-- Feb 15, 2010 5:40:55 PM CST +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Column SET AD_Reference_ID=19, AD_Reference_Value_ID=NULL, IsIdentifier='Y', IsUpdateable='N', SeqNo=1,Updated=TO_TIMESTAMP('2010-02-15 17:40:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53389 +; + +-- Feb 15, 2010 5:41:22 PM CST +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Column SET Help=NULL, IsIdentifier='Y', SeqNo=2,Updated=TO_TIMESTAMP('2010-02-15 17:41:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53400 +; + +-- Feb 15, 2010 5:41:22 PM CST +-- Create new importer for Planning Data and Forecast +UPDATE AD_Field SET Name='Resource', Description='Resource', Help=NULL WHERE AD_Column_ID=53400 AND IsCentrallyMaintained='Y' +; + +-- Feb 15, 2010 5:41:44 PM CST +-- Create new importer for Planning Data and Forecast +UPDATE AD_Column SET AD_Reference_ID=19, AD_Reference_Value_ID=NULL, IsIdentifier='Y', SeqNo=3,Updated=TO_TIMESTAMP('2010-02-15 17:41:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53390 +; +