The Product Planning Table have not identifiers

kind regards
Victor Perez
www.e-evolution.com
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2952456
This commit is contained in:
vpj-cd 2010-02-16 00:20:34 +00:00
parent 95ab6652f8
commit 6dc566294e
4 changed files with 121 additions and 65 deletions

View File

@ -147,10 +147,14 @@ public interface I_PP_Product_Planning
/** Column name IsMPS */ /** Column name IsMPS */
public static final String COLUMNNAME_IsMPS = "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); 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(); public boolean isMPS();
/** Column name IsPhantom */ /** Column name IsPhantom */
@ -280,17 +284,6 @@ public interface I_PP_Product_Planning
/** Get Order Qty */ /** Get Order Qty */
public BigDecimal getOrder_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 */ /** Column name PP_Product_BOM_ID */
public static final String COLUMNNAME_PP_Product_BOM_ID = "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 */ /** Get Product Planning */
public int getPP_Product_Planning_ID(); public int getPP_Product_Planning_ID();
/** Column name SafetyStock */ /** Column name Planner_ID */
public static final String COLUMNNAME_SafetyStock = "SafetyStock"; public static final String COLUMNNAME_Planner_ID = "Planner_ID";
/** Set Safety Stock Qty. /** Set Planner */
* 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 setPlanner_ID (int Planner_ID);
*/
public void setSafetyStock (BigDecimal SafetyStock);
/** Get Safety Stock Qty. /** Get Planner */
* 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 int getPlanner_ID();
*/
public BigDecimal getSafetyStock(); public I_AD_User getPlanner() throws RuntimeException;
/** Column name S_Resource_ID */ /** Column name S_Resource_ID */
public static final String COLUMNNAME_S_Resource_ID = "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; 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 */ /** Column name TimeFence */
public static final String COLUMNNAME_TimeFence = "TimeFence"; public static final String COLUMNNAME_TimeFence = "TimeFence";

View File

@ -22,6 +22,7 @@ import java.sql.ResultSet;
import java.util.Properties; import java.util.Properties;
import org.compiere.model.*; import org.compiere.model.*;
import org.compiere.util.Env; import org.compiere.util.Env;
import org.compiere.util.KeyNamePair;
/** Generated Model for PP_Product_Planning /** Generated Model for PP_Product_Planning
* @author Adempiere (generated) * @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 */ /** Standard Constructor */
public X_PP_Product_Planning (Properties ctx, int PP_Product_Planning_ID, String trxName) 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. /** 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) public void setIsMPS (boolean IsMPS)
{ {
set_Value (COLUMNNAME_IsMPS, Boolean.valueOf(IsMPS)); set_Value (COLUMNNAME_IsMPS, Boolean.valueOf(IsMPS));
} }
/** Get Is MPS. /** Get Is MPS.
@return Is MPS */ @return Determines if this product is part of the master production schedule
*/
public boolean isMPS () public boolean isMPS ()
{ {
Object oo = get_Value(COLUMNNAME_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(); 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 public I_M_Warehouse getM_Warehouse() throws RuntimeException
{ {
return (I_M_Warehouse)MTable.get(getCtx(), I_M_Warehouse.Table_Name) 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; 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 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) 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(); return ii.intValue();
} }
/** Set Safety Stock Qty. public I_AD_User getPlanner() throws RuntimeException
@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 return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name)
*/ .getPO(getPlanner_ID(), get_TrxName()); }
public void setSafetyStock (BigDecimal SafetyStock)
/** 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. /** Get Planner.
@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 @return Planner */
*/ public int getPlanner_ID ()
public BigDecimal getSafetyStock ()
{ {
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SafetyStock); Integer ii = (Integer)get_Value(COLUMNNAME_Planner_ID);
if (bd == null) if (ii == null)
return Env.ZERO; return 0;
return bd; return ii.intValue();
} }
public I_S_Resource getS_Resource() throws RuntimeException 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(); 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. /** Set Time Fence.
@param TimeFence Time Fence */ @param TimeFence Time Fence */
public void setTimeFence (BigDecimal TimeFence) public void setTimeFence (BigDecimal TimeFence)

View File

@ -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
;

View File

@ -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
;