diff --git a/base/src/org/compiere/model/I_C_DocType.java b/base/src/org/compiere/model/I_C_DocType.java index 930f08cda2..a3bc7412ec 100644 --- a/base/src/org/compiere/model/I_C_DocType.java +++ b/base/src/org/compiere/model/I_C_DocType.java @@ -1,31 +1,22 @@ -/********************************************************************** - * This file is part of Adempiere ERP Bazaar * - * http://www.adempiere.org * - * * - * Copyright (C) Trifon Trifonov. * - * Copyright (C) Contributors * - * * - * This program is free software, you can redistribute it and/or * - * modify it under the terms of the GNU General Public License * - * as published by the Free Software Foundation, either version 2 * - * of the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY, without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program, if not, write to the Free Software * - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * - * MA 02110-1301, USA. * - * * - * Contributors: * - * - Trifon Trifonov (trifonnt@users.sourceforge.net) * - * * - * Sponsors: * - * - Company (http://www.site.com) * - **********************************************************************/ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * + * This program is free software; + you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY; + without even the implied * + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * + * See the GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program; + if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + * For the text or an alternative of this public license, you may reach us * + * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * + * or via info@compiere.org or http://www.compiere.org/license.html * + *****************************************************************************/ package org.compiere.model; import java.math.BigDecimal; @@ -52,6 +43,19 @@ public interface I_C_DocType /** Load Meta Data */ + /** Column name AD_Org_ID */ + public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; + + /** Set Organization. + * Organizational entity within client + */ + public void setAD_Org_ID (int AD_Org_ID); + + /** Get Organization. + * Organizational entity within client + */ + public int getAD_Org_ID(); + /** Column name AD_PrintFormat_ID */ public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; @@ -65,7 +69,7 @@ public interface I_C_DocType */ public int getAD_PrintFormat_ID(); - public I_AD_PrintFormat getAD_PrintFormat() throws Exception; + public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException; /** Column name C_DocTypeDifference_ID */ public static final String COLUMNNAME_C_DocTypeDifference_ID = "C_DocTypeDifference_ID"; @@ -80,19 +84,6 @@ public interface I_C_DocType */ public int getC_DocTypeDifference_ID(); - /** Column name C_DocType_ID */ - public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; - - /** Set Document Type. - * Document type or rules - */ - public void setC_DocType_ID (int C_DocType_ID); - - /** Get Document Type. - * Document type or rules - */ - public int getC_DocType_ID(); - /** Column name C_DocTypeInvoice_ID */ public static final String COLUMNNAME_C_DocTypeInvoice_ID = "C_DocTypeInvoice_ID"; @@ -132,6 +123,19 @@ public interface I_C_DocType */ public int getC_DocTypeShipment_ID(); + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + /** Column name DefiniteSequence_ID */ public static final String COLUMNNAME_DefiniteSequence_ID = "DefiniteSequence_ID"; @@ -232,7 +236,7 @@ public interface I_C_DocType */ public int getGL_Category_ID(); - public I_GL_Category getGL_Category() throws Exception; + public I_GL_Category getGL_Category() throws RuntimeException; /** Column name HasCharges */ public static final String COLUMNNAME_HasCharges = "HasCharges"; @@ -312,19 +316,6 @@ public interface I_C_DocType */ public boolean isDocNoControlled(); - /** Column name IsIndexed */ - public static final String COLUMNNAME_IsIndexed = "IsIndexed"; - - /** Set Indexed. - * Index the document for the internal search engine - */ - public void setIsIndexed (boolean IsIndexed); - - /** Get Indexed. - * Index the document for the internal search engine - */ - public boolean isIndexed(); - /** Column name IsInTransit */ public static final String COLUMNNAME_IsInTransit = "IsInTransit"; @@ -338,6 +329,19 @@ public interface I_C_DocType */ public boolean isInTransit(); + /** Column name IsIndexed */ + public static final String COLUMNNAME_IsIndexed = "IsIndexed"; + + /** Set Indexed. + * Index the document for the internal search engine + */ + public void setIsIndexed (boolean IsIndexed); + + /** Get Indexed. + * Index the document for the internal search engine + */ + public boolean isIndexed(); + /** Column name IsOverwriteDateOnComplete */ public static final String COLUMNNAME_IsOverwriteDateOnComplete = "IsOverwriteDateOnComplete"; @@ -369,19 +373,6 @@ public interface I_C_DocType */ public boolean isPickQAConfirm(); - /** Column name IsShipConfirm */ - public static final String COLUMNNAME_IsShipConfirm = "IsShipConfirm"; - - /** Set Ship/Receipt Confirmation. - * Require Ship or Receipt Confirmation before processing - */ - public void setIsShipConfirm (boolean IsShipConfirm); - - /** Get Ship/Receipt Confirmation. - * Require Ship or Receipt Confirmation before processing - */ - public boolean isShipConfirm(); - /** Column name IsSOTrx */ public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; @@ -395,6 +386,19 @@ public interface I_C_DocType */ public boolean isSOTrx(); + /** Column name IsShipConfirm */ + public static final String COLUMNNAME_IsShipConfirm = "IsShipConfirm"; + + /** Set Ship/Receipt Confirmation. + * Require Ship or Receipt Confirmation before processing + */ + public void setIsShipConfirm (boolean IsShipConfirm); + + /** Get Ship/Receipt Confirmation. + * Require Ship or Receipt Confirmation before processing + */ + public boolean isShipConfirm(); + /** Column name IsSplitWhenDifference */ public static final String COLUMNNAME_IsSplitWhenDifference = "IsSplitWhenDifference"; diff --git a/base/src/org/compiere/model/MSetup.java b/base/src/org/compiere/model/MSetup.java index f815333378..4064c80959 100644 --- a/base/src/org/compiere/model/MSetup.java +++ b/base/src/org/compiere/model/MSetup.java @@ -688,24 +688,6 @@ public final class MSetup createDocType("Manufacturing Order Planning","Order Planning", MDocType.DOCBASETYPE_ManufacturingOrder, null, 0, 0, 81000, GL_Manufacturing); - createDocType("Manufacturing Order Receipt", "Order Receipt", - MDocType.DOCBASETYPE_ManufacturingOrderReceipt, null, - 0, 0, 82000, GL_Manufacturing); - createDocType("Manufacturing Order Issue","Order Issue", - MDocType.DOCBASETYPE_ManufacturingOrderIssue, null, - 0, 0, 83000, GL_Manufacturing); - createDocType("Manufacturing Order Method Variance", "Method Variance", - MDocType.DOCBASETYPE_ManufacturingOrderMethodVariance, null, - 0, 0, 84000, GL_Manufacturing); - createDocType("Manufacturing Order Use Variance", "Use Variance", - MDocType.DOCBASETYPE_ManufacturingOrderUseVariance, null, - 0, 0, 84100, GL_Manufacturing); - createDocType("Manufacturing Order Rate Variance","Rate Variance", - MDocType.DOCBASETYPE_ManufacturingOrderRateVariance, null, - 0, 0, 84200, GL_Manufacturing); - createDocType("Manufacturing Operation Activity","Operation Activity", - MDocType.DOCBASETYPE_ManufacturingOperationActivity, null, - 0, 0, 85000, GL_Manufacturing); createDocType("Maintenance Order","Maintenance Order", MDocType.DOCBASETYPE_MaintenanceOrder, null, 0, 0, 86000, GL_Manufacturing); diff --git a/base/src/org/compiere/model/ProductCost.java b/base/src/org/compiere/model/ProductCost.java index 0de8df274a..6c38886257 100644 --- a/base/src/org/compiere/model/ProductCost.java +++ b/base/src/org/compiere/model/ProductCost.java @@ -137,7 +137,26 @@ public class ProductCost public static final int ACCTTYPE_P_CostAdjustment = 9; /** Inventory Clearing */ public static final int ACCTTYPE_P_InventoryClearing = 10; - + /** Work in Process */ + public static final int ACCTTYPE_P_WorkInProcess = 11; + /** Method Change Variance */ + public static final int ACCTTYPE_P_MethodChangeVariance = 12; + /** Material Usage Variance */ + public static final int ACCTTYPE_P_UsageVariance = 13; + /** Material Rate Variance */ + public static final int ACCTTYPE_P_RateVariance = 14; + /** Mix Variance */ + public static final int ACCTTYPE_P_MixVariance = 15; + /** Floor Stock */ + public static final int ACCTTYPE_P_FloorStock = 16; + /** Cost Production */ + public static final int ACCTTYPE_P_CostOfProduction = 16; + /** Labor */ + public static final int ACCTTYPE_P_Labor = 14; + /** Burden */ + public static final int ACCTTYPE_P_Burden = 15; + + /** * Line Account from Product * diff --git a/base/src/org/compiere/model/X_C_DocType.java b/base/src/org/compiere/model/X_C_DocType.java index 69ff6d638a..45a8b627a0 100644 --- a/base/src/org/compiere/model/X_C_DocType.java +++ b/base/src/org/compiere/model/X_C_DocType.java @@ -19,6 +19,7 @@ package org.compiere.model; import java.lang.reflect.Constructor; import java.sql.ResultSet; +import java.sql.Timestamp; import java.util.Properties; import java.util.logging.Level; import org.compiere.util.KeyNamePair; @@ -52,11 +53,11 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent setIsDefaultCounterDoc (false); setIsDocNoControlled (true); // Y - setIsIndexed (false); setIsInTransit (false); + setIsIndexed (false); setIsPickQAConfirm (false); - setIsShipConfirm (false); setIsSOTrx (false); + setIsShipConfirm (false); setIsSplitWhenDifference (false); // N setName (null); @@ -92,7 +93,7 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return sb.toString(); } - public I_AD_PrintFormat getAD_PrintFormat() throws Exception + public I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException { Class clazz = MTable.getClass(I_AD_PrintFormat.Table_Name); I_AD_PrintFormat result = null; @@ -103,7 +104,7 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent } catch (Exception e) { log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw e; + throw new RuntimeException( e ); } return result; } @@ -131,8 +132,14 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return ii.intValue(); } - /** C_DocTypeDifference_ID AD_Reference_ID=170 */ - public static final int C_DOCTYPEDIFFERENCE_ID_AD_Reference_ID=170; + public int getAD_PrintFormat_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFormat_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + /** Set Difference Document. @param C_DocTypeDifference_ID Document type for generating in dispute Shipments @@ -156,6 +163,107 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return ii.intValue(); } + public int getC_DocTypeDifference_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeDifference_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Document Type for Invoice. + @param C_DocTypeInvoice_ID + Document type used for invoices generated from this sales document + */ + public void setC_DocTypeInvoice_ID (int C_DocTypeInvoice_ID) + { + if (C_DocTypeInvoice_ID < 1) + set_Value (COLUMNNAME_C_DocTypeInvoice_ID, null); + else + set_Value (COLUMNNAME_C_DocTypeInvoice_ID, Integer.valueOf(C_DocTypeInvoice_ID)); + } + + /** Get Document Type for Invoice. + @return Document type used for invoices generated from this sales document + */ + public int getC_DocTypeInvoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeInvoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public int getC_DocTypeInvoice_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeInvoice_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Document Type for ProForma. + @param C_DocTypeProforma_ID + Document type used for pro forma invoices generated from this sales document + */ + public void setC_DocTypeProforma_ID (int C_DocTypeProforma_ID) + { + if (C_DocTypeProforma_ID < 1) + set_Value (COLUMNNAME_C_DocTypeProforma_ID, null); + else + set_Value (COLUMNNAME_C_DocTypeProforma_ID, Integer.valueOf(C_DocTypeProforma_ID)); + } + + /** Get Document Type for ProForma. + @return Document type used for pro forma invoices generated from this sales document + */ + public int getC_DocTypeProforma_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeProforma_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public int getC_DocTypeProforma_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeProforma_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Document Type for Shipment. + @param C_DocTypeShipment_ID + Document type used for shipments generated from this sales document + */ + public void setC_DocTypeShipment_ID (int C_DocTypeShipment_ID) + { + if (C_DocTypeShipment_ID < 1) + set_Value (COLUMNNAME_C_DocTypeShipment_ID, null); + else + set_Value (COLUMNNAME_C_DocTypeShipment_ID, Integer.valueOf(C_DocTypeShipment_ID)); + } + + /** Get Document Type for Shipment. + @return Document type used for shipments generated from this sales document + */ + public int getC_DocTypeShipment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeShipment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public int getC_DocTypeShipment_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeShipment_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + /** Set Document Type. @param C_DocType_ID Document type or rules @@ -178,83 +286,14 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return ii.intValue(); } - /** C_DocTypeInvoice_ID AD_Reference_ID=170 */ - public static final int C_DOCTYPEINVOICE_ID_AD_Reference_ID=170; - /** Set Document Type for Invoice. - @param C_DocTypeInvoice_ID - Document type used for invoices generated from this sales document - */ - public void setC_DocTypeInvoice_ID (int C_DocTypeInvoice_ID) + public int getC_DocType_ID (Timestamp timeLine) { - if (C_DocTypeInvoice_ID < 1) - set_Value (COLUMNNAME_C_DocTypeInvoice_ID, null); - else - set_Value (COLUMNNAME_C_DocTypeInvoice_ID, Integer.valueOf(C_DocTypeInvoice_ID)); - } - - /** Get Document Type for Invoice. - @return Document type used for invoices generated from this sales document - */ - public int getC_DocTypeInvoice_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeInvoice_ID); + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID,timeLine); if (ii == null) return 0; return ii.intValue(); } - /** C_DocTypeProforma_ID AD_Reference_ID=170 */ - public static final int C_DOCTYPEPROFORMA_ID_AD_Reference_ID=170; - /** Set Document Type for ProForma. - @param C_DocTypeProforma_ID - Document type used for pro forma invoices generated from this sales document - */ - public void setC_DocTypeProforma_ID (int C_DocTypeProforma_ID) - { - if (C_DocTypeProforma_ID < 1) - set_Value (COLUMNNAME_C_DocTypeProforma_ID, null); - else - set_Value (COLUMNNAME_C_DocTypeProforma_ID, Integer.valueOf(C_DocTypeProforma_ID)); - } - - /** Get Document Type for ProForma. - @return Document type used for pro forma invoices generated from this sales document - */ - public int getC_DocTypeProforma_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeProforma_ID); - if (ii == null) - return 0; - return ii.intValue(); - } - - /** C_DocTypeShipment_ID AD_Reference_ID=170 */ - public static final int C_DOCTYPESHIPMENT_ID_AD_Reference_ID=170; - /** Set Document Type for Shipment. - @param C_DocTypeShipment_ID - Document type used for shipments generated from this sales document - */ - public void setC_DocTypeShipment_ID (int C_DocTypeShipment_ID) - { - if (C_DocTypeShipment_ID < 1) - set_Value (COLUMNNAME_C_DocTypeShipment_ID, null); - else - set_Value (COLUMNNAME_C_DocTypeShipment_ID, Integer.valueOf(C_DocTypeShipment_ID)); - } - - /** Get Document Type for Shipment. - @return Document type used for shipments generated from this sales document - */ - public int getC_DocTypeShipment_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeShipment_ID); - if (ii == null) - return 0; - return ii.intValue(); - } - - /** DefiniteSequence_ID AD_Reference_ID=128 */ - public static final int DEFINITESEQUENCE_ID_AD_Reference_ID=128; /** Set Definite Sequence. @param DefiniteSequence_ID Definite Sequence */ public void setDefiniteSequence_ID (int DefiniteSequence_ID) @@ -275,6 +314,14 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return ii.intValue(); } + public int getDefiniteSequence_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_DefiniteSequence_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + /** Set Description. @param Description Optional short description of the record @@ -292,6 +339,11 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return (String)get_Value(COLUMNNAME_Description); } + public String getDescription (Timestamp timeLine) + { + return (String)get_Value(COLUMNNAME_Description,timeLine); + } + /** DocBaseType AD_Reference_ID=183 */ public static final int DOCBASETYPE_AD_Reference_ID=183; /** GL Journal = GLJ */ @@ -340,22 +392,10 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent public static final String DOCBASETYPE_MatchPO = "MXP"; /** Project Issue = PJI */ public static final String DOCBASETYPE_ProjectIssue = "PJI"; - /** Manufacturing Operation Activity = MOA */ - public static final String DOCBASETYPE_ManufacturingOperationActivity = "MOA"; /** Maintenance Order = MOF */ public static final String DOCBASETYPE_MaintenanceOrder = "MOF"; - /** Manufacturing Order Issue = MOI */ - public static final String DOCBASETYPE_ManufacturingOrderIssue = "MOI"; - /** Manufacturing Order Method Variance = MOM */ - public static final String DOCBASETYPE_ManufacturingOrderMethodVariance = "MOM"; /** Manufacturing Order = MOP */ public static final String DOCBASETYPE_ManufacturingOrder = "MOP"; - /** Manufacturing Order Receipt = MOR */ - public static final String DOCBASETYPE_ManufacturingOrderReceipt = "MOR"; - /** Manufacturing Order Use Variance = MOU */ - public static final String DOCBASETYPE_ManufacturingOrderUseVariance = "MOU"; - /** Manufacturing Order Rate Variance = MOV */ - public static final String DOCBASETYPE_ManufacturingOrderRateVariance = "MOV"; /** Quality Order = MQO */ public static final String DOCBASETYPE_QualityOrder = "MQO"; /** Payroll = HRP */ @@ -369,7 +409,7 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent public void setDocBaseType (String DocBaseType) { if (DocBaseType == null) throw new IllegalArgumentException ("DocBaseType is mandatory"); - if (DocBaseType.equals("GLJ") || DocBaseType.equals("GLD") || DocBaseType.equals("API") || DocBaseType.equals("APP") || DocBaseType.equals("ARI") || DocBaseType.equals("ARR") || DocBaseType.equals("SOO") || DocBaseType.equals("ARF") || DocBaseType.equals("MMS") || DocBaseType.equals("MMR") || DocBaseType.equals("MMM") || DocBaseType.equals("POO") || DocBaseType.equals("POR") || DocBaseType.equals("MMI") || DocBaseType.equals("APC") || DocBaseType.equals("ARC") || DocBaseType.equals("CMB") || DocBaseType.equals("CMC") || DocBaseType.equals("CMA") || DocBaseType.equals("MMP") || DocBaseType.equals("MXI") || DocBaseType.equals("MXP") || DocBaseType.equals("PJI") || DocBaseType.equals("MOA") || DocBaseType.equals("MOF") || DocBaseType.equals("MOI") || DocBaseType.equals("MOM") || DocBaseType.equals("MOP") || DocBaseType.equals("MOR") || DocBaseType.equals("MOU") || DocBaseType.equals("MOV") || DocBaseType.equals("MQO") || DocBaseType.equals("HRP") || DocBaseType.equals("DOO")); else throw new IllegalArgumentException ("DocBaseType Invalid value - " + DocBaseType + " - Reference_ID=183 - GLJ - GLD - API - APP - ARI - ARR - SOO - ARF - MMS - MMR - MMM - POO - POR - MMI - APC - ARC - CMB - CMC - CMA - MMP - MXI - MXP - PJI - MOA - MOF - MOI - MOM - MOP - MOR - MOU - MOV - MQO - HRP - DOO"); set_Value (COLUMNNAME_DocBaseType, DocBaseType); + if (DocBaseType.equals("GLJ") || DocBaseType.equals("GLD") || DocBaseType.equals("API") || DocBaseType.equals("APP") || DocBaseType.equals("ARI") || DocBaseType.equals("ARR") || DocBaseType.equals("SOO") || DocBaseType.equals("ARF") || DocBaseType.equals("MMS") || DocBaseType.equals("MMR") || DocBaseType.equals("MMM") || DocBaseType.equals("POO") || DocBaseType.equals("POR") || DocBaseType.equals("MMI") || DocBaseType.equals("APC") || DocBaseType.equals("ARC") || DocBaseType.equals("CMB") || DocBaseType.equals("CMC") || DocBaseType.equals("CMA") || DocBaseType.equals("MMP") || DocBaseType.equals("MXI") || DocBaseType.equals("MXP") || DocBaseType.equals("PJI") || DocBaseType.equals("MOF") || DocBaseType.equals("MOP") || DocBaseType.equals("MQO") || DocBaseType.equals("HRP") || DocBaseType.equals("DOO")); else throw new IllegalArgumentException ("DocBaseType Invalid value - " + DocBaseType + " - Reference_ID=183 - GLJ - GLD - API - APP - ARI - ARR - SOO - ARF - MMS - MMR - MMM - POO - POR - MMI - APC - ARC - CMB - CMC - CMA - MMP - MXI - MXP - PJI - MOF - MOP - MQO - HRP - DOO"); set_Value (COLUMNNAME_DocBaseType, DocBaseType); } /** Get Document BaseType. @@ -380,8 +420,11 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return (String)get_Value(COLUMNNAME_DocBaseType); } - /** DocNoSequence_ID AD_Reference_ID=128 */ - public static final int DOCNOSEQUENCE_ID_AD_Reference_ID=128; + public String getDocBaseType (Timestamp timeLine) + { + return (String)get_Value(COLUMNNAME_DocBaseType,timeLine); + } + /** Set Document Sequence. @param DocNoSequence_ID Document sequence determines the numbering of documents @@ -405,6 +448,14 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return ii.intValue(); } + public int getDocNoSequence_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_DocNoSequence_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + /** DocSubTypeSO AD_Reference_ID=148 */ public static final int DOCSUBTYPESO_AD_Reference_ID=148; /** On Credit Order = WI */ @@ -441,6 +492,11 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return (String)get_Value(COLUMNNAME_DocSubTypeSO); } + public String getDocSubTypeSO (Timestamp timeLine) + { + return (String)get_Value(COLUMNNAME_DocSubTypeSO,timeLine); + } + /** Set Document Copies. @param DocumentCopies Number of copies to be printed @@ -461,6 +517,14 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return ii.intValue(); } + public int getDocumentCopies (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_DocumentCopies,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + /** Set Document Note. @param DocumentNote Additional information for a Document @@ -478,7 +542,12 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return (String)get_Value(COLUMNNAME_DocumentNote); } - public I_GL_Category getGL_Category() throws Exception + public String getDocumentNote (Timestamp timeLine) + { + return (String)get_Value(COLUMNNAME_DocumentNote,timeLine); + } + + public I_GL_Category getGL_Category() throws RuntimeException { Class clazz = MTable.getClass(I_GL_Category.Table_Name); I_GL_Category result = null; @@ -489,7 +558,7 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent } catch (Exception e) { log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw e; + throw new RuntimeException( e ); } return result; } @@ -516,6 +585,14 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return ii.intValue(); } + public int getGL_Category_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Category_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + /** Set Charges. @param HasCharges Charges can be added to the document @@ -540,6 +617,18 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return false; } + public boolean isHasCharges (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_HasCharges,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Pro forma Invoice. @param HasProforma Indicates if Pro Forma Invoices can be generated from this document @@ -564,6 +653,18 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return false; } + public boolean isHasProforma (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_HasProforma,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Create Counter Document. @param IsCreateCounter Create Counter Document @@ -588,6 +689,18 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return false; } + public boolean isCreateCounter (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_IsCreateCounter,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Default. @param IsDefault Default value @@ -612,6 +725,18 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return false; } + public boolean isDefault (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_IsDefault,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Default Counter Document. @param IsDefaultCounterDoc The document type is the default counter document type @@ -636,6 +761,18 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return false; } + public boolean isDefaultCounterDoc (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_IsDefaultCounterDoc,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Document is Number Controlled. @param IsDocNoControlled The document has a document sequence @@ -660,21 +797,9 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return false; } - /** Set Indexed. - @param IsIndexed - Index the document for the internal search engine - */ - public void setIsIndexed (boolean IsIndexed) + public boolean isDocNoControlled (Timestamp timeLine) { - set_Value (COLUMNNAME_IsIndexed, Boolean.valueOf(IsIndexed)); - } - - /** Get Indexed. - @return Index the document for the internal search engine - */ - public boolean isIndexed () - { - Object oo = get_Value(COLUMNNAME_IsIndexed); + Object oo = get_Value(COLUMNNAME_IsDocNoControlled,timeLine); if (oo != null) { if (oo instanceof Boolean) @@ -708,6 +833,54 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return false; } + public boolean isInTransit (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_IsInTransit,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Indexed. + @param IsIndexed + Index the document for the internal search engine + */ + public void setIsIndexed (boolean IsIndexed) + { + set_Value (COLUMNNAME_IsIndexed, Boolean.valueOf(IsIndexed)); + } + + /** Get Indexed. + @return Index the document for the internal search engine + */ + public boolean isIndexed () + { + Object oo = get_Value(COLUMNNAME_IsIndexed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public boolean isIndexed (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_IsIndexed,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Overwrite Date on Complete. @param IsOverwriteDateOnComplete Overwrite Date on Complete */ public void setIsOverwriteDateOnComplete (boolean IsOverwriteDateOnComplete) @@ -729,6 +902,18 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return false; } + public boolean isOverwriteDateOnComplete (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_IsOverwriteDateOnComplete,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Overwrite Sequence on Complete. @param IsOverwriteSeqOnComplete Overwrite Sequence on Complete */ public void setIsOverwriteSeqOnComplete (boolean IsOverwriteSeqOnComplete) @@ -750,6 +935,18 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return false; } + public boolean isOverwriteSeqOnComplete (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_IsOverwriteSeqOnComplete,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Pick/QA Confirmation. @param IsPickQAConfirm Require Pick or QA Confirmation before processing @@ -774,21 +971,9 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return false; } - /** Set Ship/Receipt Confirmation. - @param IsShipConfirm - Require Ship or Receipt Confirmation before processing - */ - public void setIsShipConfirm (boolean IsShipConfirm) + public boolean isPickQAConfirm (Timestamp timeLine) { - set_Value (COLUMNNAME_IsShipConfirm, Boolean.valueOf(IsShipConfirm)); - } - - /** Get Ship/Receipt Confirmation. - @return Require Ship or Receipt Confirmation before processing - */ - public boolean isShipConfirm () - { - Object oo = get_Value(COLUMNNAME_IsShipConfirm); + Object oo = get_Value(COLUMNNAME_IsPickQAConfirm,timeLine); if (oo != null) { if (oo instanceof Boolean) @@ -822,6 +1007,54 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return false; } + public boolean isSOTrx (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_IsSOTrx,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Ship/Receipt Confirmation. + @param IsShipConfirm + Require Ship or Receipt Confirmation before processing + */ + public void setIsShipConfirm (boolean IsShipConfirm) + { + set_Value (COLUMNNAME_IsShipConfirm, Boolean.valueOf(IsShipConfirm)); + } + + /** Get Ship/Receipt Confirmation. + @return Require Ship or Receipt Confirmation before processing + */ + public boolean isShipConfirm () + { + Object oo = get_Value(COLUMNNAME_IsShipConfirm); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public boolean isShipConfirm (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_IsShipConfirm,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Split when Difference. @param IsSplitWhenDifference Split document when there is a difference @@ -846,6 +1079,18 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return false; } + public boolean isSplitWhenDifference (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_IsSplitWhenDifference,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Name. @param Name Alphanumeric identifier of the entity @@ -865,6 +1110,11 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent return (String)get_Value(COLUMNNAME_Name); } + public String getName (Timestamp timeLine) + { + return (String)get_Value(COLUMNNAME_Name,timeLine); + } + /** Get Record ID/ColumnName @return ID/ColumnName pair */ @@ -891,4 +1141,9 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent { return (String)get_Value(COLUMNNAME_PrintName); } + + public String getPrintName (Timestamp timeLine) + { + return (String)get_Value(COLUMNNAME_PrintName,timeLine); + } } \ No newline at end of file diff --git a/base/src/org/eevolution/model/I_PP_Cost_Collector.java b/base/src/org/eevolution/model/I_PP_Cost_Collector.java index bfbf301640..7b1d40b7ed 100644 --- a/base/src/org/eevolution/model/I_PP_Cost_Collector.java +++ b/base/src/org/eevolution/model/I_PP_Cost_Collector.java @@ -1,31 +1,22 @@ -/********************************************************************** - * This file is part of Adempiere ERP Bazaar * - * http://www.adempiere.org * - * * - * Copyright (C) Trifon Trifonov. * - * Copyright (C) Contributors * - * * - * This program is free software, you can redistribute it and/or * - * modify it under the terms of the GNU General Public License * - * as published by the Free Software Foundation, either version 2 * - * of the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY, without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program, if not, write to the Free Software * - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * - * MA 02110-1301, USA. * - * * - * Contributors: * - * - Trifon Trifonov (trifonnt@users.sourceforge.net) * - * * - * Sponsors: * - * - Company (http://www.site.com) * - **********************************************************************/ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * + * This program is free software; + you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY; + without even the implied * + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * + * See the GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program; + if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + * For the text or an alternative of this public license, you may reach us * + * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * + * or via info@compiere.org or http://www.compiere.org/license.html * + *****************************************************************************/ package org.eevolution.model; import java.math.BigDecimal; @@ -67,6 +58,19 @@ public interface I_PP_Cost_Collector */ public int getAD_OrgTrx_ID(); + /** Column name AD_Org_ID */ + public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; + + /** Set Organization. + * Organizational entity within client + */ + public void setAD_Org_ID (int AD_Org_ID); + + /** Get Organization. + * Organizational entity within client + */ + public int getAD_Org_ID(); + /** Column name AD_User_ID */ public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; @@ -80,7 +84,7 @@ public interface I_PP_Cost_Collector */ public int getAD_User_ID(); - public I_AD_User getAD_User() throws Exception; + public I_AD_User getAD_User() throws RuntimeException; /** Column name C_Activity_ID */ public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; @@ -95,7 +99,7 @@ public interface I_PP_Cost_Collector */ public int getC_Activity_ID(); - public I_C_Activity getC_Activity() throws Exception; + public I_C_Activity getC_Activity() throws RuntimeException; /** Column name C_Campaign_ID */ public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; @@ -110,20 +114,7 @@ public interface I_PP_Cost_Collector */ public int getC_Campaign_ID(); - public I_C_Campaign getC_Campaign() throws Exception; - - /** Column name C_DocType_ID */ - public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; - - /** Set Document Type. - * Document type or rules - */ - public void setC_DocType_ID (int C_DocType_ID); - - /** Get Document Type. - * Document type or rules - */ - public int getC_DocType_ID(); + public I_C_Campaign getC_Campaign() throws RuntimeException; /** Column name C_DocTypeTarget_ID */ public static final String COLUMNNAME_C_DocTypeTarget_ID = "C_DocTypeTarget_ID"; @@ -138,6 +129,19 @@ public interface I_PP_Cost_Collector */ public int getC_DocTypeTarget_ID(); + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + /** Column name C_Project_ID */ public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; @@ -151,7 +155,7 @@ public interface I_PP_Cost_Collector */ public int getC_Project_ID(); - public I_C_Project getC_Project() throws Exception; + public I_C_Project getC_Project() throws RuntimeException; /** Column name C_UOM_ID */ public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; @@ -166,7 +170,20 @@ public interface I_PP_Cost_Collector */ public int getC_UOM_ID(); - public I_C_UOM getC_UOM() throws Exception; + public I_C_UOM getC_UOM() throws RuntimeException; + + /** Column name CostCollectorType */ + public static final String COLUMNNAME_CostCollectorType = "CostCollectorType"; + + /** Set Cost Collector Type. + * Transaction Type for Manufacturing Management + */ + public void setCostCollectorType (String CostCollectorType); + + /** Get Cost Collector Type. + * Transaction Type for Manufacturing Management + */ + public String getCostCollectorType(); /** Column name DateAcct */ public static final String COLUMNNAME_DateAcct = "DateAcct"; @@ -223,19 +240,19 @@ public interface I_PP_Cost_Collector /** Column name DurationReal */ public static final String COLUMNNAME_DurationReal = "DurationReal"; - /** Set DurationReal */ + /** Set Duration Real */ public void setDurationReal (BigDecimal DurationReal); - /** Get DurationReal */ + /** Get Duration Real */ public BigDecimal getDurationReal(); /** Column name IsBatchTime */ public static final String COLUMNNAME_IsBatchTime = "IsBatchTime"; - /** Set IsBatchTime */ + /** Set Is BatchTime */ public void setIsBatchTime (boolean IsBatchTime); - /** Get IsBatchTime */ + /** Get Is BatchTime */ public boolean isBatchTime(); /** Column name M_AttributeSetInstance_ID */ @@ -264,6 +281,36 @@ public interface I_PP_Cost_Collector */ public int getM_Locator_ID(); + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + public I_M_Product getM_Product() throws RuntimeException; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getM_Warehouse() throws RuntimeException; + /** Column name MovementDate */ public static final String COLUMNNAME_MovementDate = "MovementDate"; @@ -290,48 +337,58 @@ public interface I_PP_Cost_Collector */ public BigDecimal getMovementQty(); - /** Column name MovementType */ - public static final String COLUMNNAME_MovementType = "MovementType"; + /** Column name PP_Cost_Collector_ID */ + public static final String COLUMNNAME_PP_Cost_Collector_ID = "PP_Cost_Collector_ID"; - /** Set Movement Type. - * Method of moving the inventory - */ - public void setMovementType (String MovementType); + /** Set Manufacturing Cost Collector */ + public void setPP_Cost_Collector_ID (int PP_Cost_Collector_ID); - /** Get Movement Type. - * Method of moving the inventory - */ - public String getMovementType(); + /** Get Manufacturing Cost Collector */ + public int getPP_Cost_Collector_ID(); - /** Column name M_Product_ID */ - public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + /** Column name PP_Order_BOMLine_ID */ + public static final String COLUMNNAME_PP_Order_BOMLine_ID = "PP_Order_BOMLine_ID"; - /** Set Product. - * Product, Service, Item - */ - public void setM_Product_ID (int M_Product_ID); + /** Set Manufacturing Order BOM Line */ + public void setPP_Order_BOMLine_ID (int PP_Order_BOMLine_ID); - /** Get Product. - * Product, Service, Item - */ - public int getM_Product_ID(); + /** Get Manufacturing Order BOM Line */ + public int getPP_Order_BOMLine_ID(); - public I_M_Product getM_Product() throws Exception; + public org.eevolution.model.I_PP_Order_BOMLine getPP_Order_BOMLine() throws RuntimeException; - /** Column name M_Warehouse_ID */ - public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + /** Column name PP_Order_ID */ + public static final String COLUMNNAME_PP_Order_ID = "PP_Order_ID"; - /** Set Warehouse. - * Storage Warehouse and Service Point - */ - public void setM_Warehouse_ID (int M_Warehouse_ID); + /** Set Manufacturing Order */ + public void setPP_Order_ID (int PP_Order_ID); - /** Get Warehouse. - * Storage Warehouse and Service Point - */ - public int getM_Warehouse_ID(); + /** Get Manufacturing Order */ + public int getPP_Order_ID(); - public I_M_Warehouse getM_Warehouse() throws Exception; + public org.eevolution.model.I_PP_Order getPP_Order() throws RuntimeException; + + /** Column name PP_Order_Node_ID */ + public static final String COLUMNNAME_PP_Order_Node_ID = "PP_Order_Node_ID"; + + /** Set Manufacturing Order Activity */ + public void setPP_Order_Node_ID (int PP_Order_Node_ID); + + /** Get Manufacturing Order Activity */ + public int getPP_Order_Node_ID(); + + public org.eevolution.model.I_PP_Order_Node getPP_Order_Node() throws RuntimeException; + + /** Column name PP_Order_Workflow_ID */ + public static final String COLUMNNAME_PP_Order_Workflow_ID = "PP_Order_Workflow_ID"; + + /** Set Manufacturing Order Workflow */ + public void setPP_Order_Workflow_ID (int PP_Order_Workflow_ID); + + /** Get Manufacturing Order Workflow */ + public int getPP_Order_Workflow_ID(); + + public org.eevolution.model.I_PP_Order_Workflow getPP_Order_Workflow() throws RuntimeException; /** Column name Posted */ public static final String COLUMNNAME_Posted = "Posted"; @@ -346,59 +403,6 @@ public interface I_PP_Cost_Collector */ public boolean isPosted(); - /** Column name PP_Cost_Collector_ID */ - public static final String COLUMNNAME_PP_Cost_Collector_ID = "PP_Cost_Collector_ID"; - - /** Set PP_Cost_Collector_ID */ - public void setPP_Cost_Collector_ID (int PP_Cost_Collector_ID); - - /** Get PP_Cost_Collector_ID */ - public int getPP_Cost_Collector_ID(); - - /** Column name PP_Order_BOMLine_ID */ - public static final String COLUMNNAME_PP_Order_BOMLine_ID = "PP_Order_BOMLine_ID"; - - /** Set PP_Order_BOMLine_ID */ - public void setPP_Order_BOMLine_ID (int PP_Order_BOMLine_ID); - - /** Get PP_Order_BOMLine_ID */ - public int getPP_Order_BOMLine_ID(); - - public org.eevolution.model.I_PP_Order_BOMLine getPP_Order_BOMLine() throws Exception; - - /** Column name PP_Order_ID */ - public static final String COLUMNNAME_PP_Order_ID = "PP_Order_ID"; - - /** Set PP_Order_ID */ - public void setPP_Order_ID (int PP_Order_ID); - - /** Get PP_Order_ID */ - public int getPP_Order_ID(); - - public org.eevolution.model.I_PP_Order getPP_Order() throws Exception; - - /** Column name PP_Order_Node_ID */ - public static final String COLUMNNAME_PP_Order_Node_ID = "PP_Order_Node_ID"; - - /** Set Manufacturing Order Activity */ - public void setPP_Order_Node_ID (int PP_Order_Node_ID); - - /** Get Manufacturing Order Activity */ - public int getPP_Order_Node_ID(); - - public org.eevolution.model.I_PP_Order_Node getPP_Order_Node() throws Exception; - - /** Column name PP_Order_Workflow_ID */ - public static final String COLUMNNAME_PP_Order_Workflow_ID = "PP_Order_Workflow_ID"; - - /** Set PP_Order_Workflow_ID */ - public void setPP_Order_Workflow_ID (int PP_Order_Workflow_ID); - - /** Get PP_Order_Workflow_ID */ - public int getPP_Order_Workflow_ID(); - - public org.eevolution.model.I_PP_Order_Workflow getPP_Order_Workflow() throws Exception; - /** Column name Processed */ public static final String COLUMNNAME_Processed = "Processed"; @@ -424,10 +428,10 @@ public interface I_PP_Cost_Collector /** Column name QtyReject */ public static final String COLUMNNAME_QtyReject = "QtyReject"; - /** Set QtyReject */ + /** Set Qty Reject */ public void setQtyReject (BigDecimal QtyReject); - /** Get QtyReject */ + /** Get Qty Reject */ public BigDecimal getQtyReject(); /** Column name Reversal_ID */ @@ -443,6 +447,21 @@ public interface I_PP_Cost_Collector */ public int getReversal_ID(); + /** Column name S_Resource_ID */ + public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; + + /** Set Resource. + * Resource + */ + public void setS_Resource_ID (int S_Resource_ID); + + /** Get Resource. + * Resource + */ + public int getS_Resource_ID(); + + public I_S_Resource getS_Resource() throws RuntimeException; + /** Column name ScrappedQty */ public static final String COLUMNNAME_ScrappedQty = "ScrappedQty"; @@ -459,27 +478,12 @@ public interface I_PP_Cost_Collector /** Column name SetupTimeReal */ public static final String COLUMNNAME_SetupTimeReal = "SetupTimeReal"; - /** Set SetupTimeReal */ + /** Set Setup Time Real */ public void setSetupTimeReal (BigDecimal SetupTimeReal); - /** Get SetupTimeReal */ + /** Get Setup Time Real */ public BigDecimal getSetupTimeReal(); - /** Column name S_Resource_ID */ - public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; - - /** Set Resource. - * Resource - */ - public void setS_Resource_ID (int S_Resource_ID); - - /** Get Resource. - * Resource - */ - public int getS_Resource_ID(); - - public I_S_Resource getS_Resource() throws Exception; - /** Column name User1_ID */ public static final String COLUMNNAME_User1_ID = "User1_ID"; diff --git a/base/src/org/eevolution/model/MPPCostCollector.java b/base/src/org/eevolution/model/MPPCostCollector.java index 8cb9c96463..0799bc140e 100644 --- a/base/src/org/eevolution/model/MPPCostCollector.java +++ b/base/src/org/eevolution/model/MPPCostCollector.java @@ -214,8 +214,7 @@ public class MPPCostCollector extends X_PP_Cost_Collector implements DocAction } // Update Order Line - MDocType doctype = MDocType.get(getCtx(), getC_DocType_ID()); - if(!doctype.getDocBaseType().equals(MDocType.DOCBASETYPE_ManufacturingOperationActivity)) + if(getCostCollectorType() == MPPCostCollector.COSTCOLLECTORTYPE_ActivityControlReport) { // Stock Movement MProduct product = MProduct.get(getCtx(), getM_Product_ID()); @@ -323,7 +322,7 @@ public class MPPCostCollector extends X_PP_Cost_Collector implements DocAction } } // Operation Activity - if(doctype.getDocBaseType().equals(MDocType.DOCBASETYPE_ManufacturingOperationActivity)) + if(getCostCollectorType() == MPPCostCollector.COSTCOLLECTORTYPE_ActivityControlReport) { MPPOrderNode onodeact = getPP_Order_Node(); onodeact.setDocStatus(DOCSTATUS_Completed); @@ -546,7 +545,7 @@ public class MPPCostCollector extends X_PP_Cost_Collector implements DocAction costnew.setDateAcct(getDateAcct()); costnew.setMovementQty(getMovementQty()); //costnew.setDurationUnit(getDurationUnit()); - costnew.setMovementType(getMovementType()); + costnew.setCostCollectorType(getCostCollectorType()); // costnew.setPP_Order_Node_ID(PP_Order_Node_ID); costnew.setDurationReal(duration); @@ -573,8 +572,7 @@ public class MPPCostCollector extends X_PP_Cost_Collector implements DocAction private void closeNew(int PP_Order_ID, int PP_Order_Node_ID) { - MDocType dt = MDocType.get(getCtx(), getC_DocType_ID()); - if(MDocType.DOCBASETYPE_ManufacturingOperationActivity.equals(dt.getDocBaseType())) + if(getCostCollectorType()==MPPCostCollector.COSTCOLLECTORTYPE_ActivityControlReport) { String whereClause = COLUMNNAME_PP_Order_ID+"=?"; List list = new Query(getCtx(), Table_Name, whereClause, get_TrxName()) @@ -592,8 +590,7 @@ public class MPPCostCollector extends X_PP_Cost_Collector implements DocAction protected void completeNew(int PP_Order_ID) { - MDocType dt = MDocType.get(getCtx(), getC_DocType_ID()); - if(MDocType.DOCBASETYPE_ManufacturingOperationActivity.equals(dt.getDocBaseType())) + if(getCostCollectorType()==MPPCostCollector.COSTCOLLECTORTYPE_ActivityControlReport) { String whereClause = COLUMNNAME_PP_Order_ID+"=?" +" AND "+COLUMNNAME_DocStatus+"<>'"+DOCSTATUS_Completed+"'" @@ -796,4 +793,14 @@ public class MPPCostCollector extends X_PP_Cost_Collector implements DocAction { return getMovementType().charAt(1) == '+'; } + + public String getMovementType() + { + if (getCostCollectorType()==MPPCostCollector.COSTCOLLECTORTYPE_MaterialReceipt) + return MTransaction.MOVEMENTTYPE_WorkOrderPlus; + else if(getCostCollectorType()==MPPCostCollector.COSTCOLLECTORTYPE_ComponentIssue) + return MTransaction.MOVEMENTTYPE_WorkOrder_; + + return null; + } } // MPPCostCollector diff --git a/base/src/org/eevolution/model/X_PP_Cost_Collector.java b/base/src/org/eevolution/model/X_PP_Cost_Collector.java index 6785a01195..876943dab4 100644 --- a/base/src/org/eevolution/model/X_PP_Cost_Collector.java +++ b/base/src/org/eevolution/model/X_PP_Cost_Collector.java @@ -44,20 +44,20 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe super (ctx, PP_Cost_Collector_ID, trxName); /** if (PP_Cost_Collector_ID == 0) { - setC_DocType_ID (0); setC_DocTypeTarget_ID (0); + setC_DocType_ID (0); setDateAcct (new Timestamp( System.currentTimeMillis() )); // @#Date@ setM_Locator_ID (0); + setM_Product_ID (0); + setM_Warehouse_ID (0); setMovementDate (new Timestamp( System.currentTimeMillis() )); // @#Date@ setMovementQty (Env.ZERO); // 0 - setM_Product_ID (0); - setM_Warehouse_ID (0); - setPosted (false); setPP_Cost_Collector_ID (0); setPP_Order_ID (0); + setPosted (false); setProcessed (false); setS_Resource_ID (0); } */ @@ -91,8 +91,6 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return sb.toString(); } - /** AD_OrgTrx_ID AD_Reference_ID=130 */ - public static final int AD_ORGTRX_ID_AD_Reference_ID=130; /** Set Trx Organization. @param AD_OrgTrx_ID Performing or initiating organization @@ -116,7 +114,15 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return ii.intValue(); } - public I_AD_User getAD_User() throws Exception + public int getAD_OrgTrx_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getAD_User() throws RuntimeException { Class clazz = MTable.getClass(I_AD_User.Table_Name); I_AD_User result = null; @@ -127,7 +133,7 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe } catch (Exception e) { log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw e; + throw new RuntimeException( e ); } return result; } @@ -155,7 +161,15 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return ii.intValue(); } - public I_C_Activity getC_Activity() throws Exception + public int getAD_User_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getC_Activity() throws RuntimeException { Class clazz = MTable.getClass(I_C_Activity.Table_Name); I_C_Activity result = null; @@ -166,7 +180,7 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe } catch (Exception e) { log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw e; + throw new RuntimeException( e ); } return result; } @@ -194,7 +208,15 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return ii.intValue(); } - public I_C_Campaign getC_Campaign() throws Exception + public int getC_Activity_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getC_Campaign() throws RuntimeException { Class clazz = MTable.getClass(I_C_Campaign.Table_Name); I_C_Campaign result = null; @@ -205,7 +227,7 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe } catch (Exception e) { log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw e; + throw new RuntimeException( e ); } return result; } @@ -233,32 +255,14 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return ii.intValue(); } - /** C_DocType_ID AD_Reference_ID=53233 */ - public static final int C_DOCTYPE_ID_AD_Reference_ID=53233; - /** Set Document Type. - @param C_DocType_ID - Document type or rules - */ - public void setC_DocType_ID (int C_DocType_ID) + public int getC_Campaign_ID (Timestamp timeLine) { - if (C_DocType_ID < 0) - throw new IllegalArgumentException ("C_DocType_ID is mandatory."); - set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); - } - - /** Get Document Type. - @return Document type or rules - */ - public int getC_DocType_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID,timeLine); if (ii == null) return 0; return ii.intValue(); } - /** C_DocTypeTarget_ID AD_Reference_ID=53233 */ - public static final int C_DOCTYPETARGET_ID_AD_Reference_ID=53233; /** Set Target Document Type. @param C_DocTypeTarget_ID Target document type for conversing documents @@ -281,7 +285,45 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return ii.intValue(); } - public I_C_Project getC_Project() throws Exception + public int getC_DocTypeTarget_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeTarget_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public int getC_DocType_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getC_Project() throws RuntimeException { Class clazz = MTable.getClass(I_C_Project.Table_Name); I_C_Project result = null; @@ -292,7 +334,7 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe } catch (Exception e) { log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw e; + throw new RuntimeException( e ); } return result; } @@ -320,7 +362,15 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return ii.intValue(); } - public I_C_UOM getC_UOM() throws Exception + public int getC_Project_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getC_UOM() throws RuntimeException { Class clazz = MTable.getClass(I_C_UOM.Table_Name); I_C_UOM result = null; @@ -331,7 +381,7 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe } catch (Exception e) { log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw e; + throw new RuntimeException( e ); } return result; } @@ -359,6 +409,53 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return ii.intValue(); } + public int getC_UOM_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** CostCollectorType AD_Reference_ID=53287 */ + public static final int COSTCOLLECTORTYPE_AD_Reference_ID=53287; + /** Material Receipt = 100 */ + public static final String COSTCOLLECTORTYPE_MaterialReceipt = "100"; + /** Component Issue = 110 */ + public static final String COSTCOLLECTORTYPE_ComponentIssue = "110"; + /** Usege Variance = 120 */ + public static final String COSTCOLLECTORTYPE_UsegeVariance = "120"; + /** Method Change Variance = 130 */ + public static final String COSTCOLLECTORTYPE_MethodChangeVariance = "130"; + /** Rate Variance = 140 */ + public static final String COSTCOLLECTORTYPE_RateVariance = "140"; + /** Mix Variance = 150 */ + public static final String COSTCOLLECTORTYPE_MixVariance = "150"; + /** Activity Control Report = 160 */ + public static final String COSTCOLLECTORTYPE_ActivityControlReport = "160"; + /** Set Cost Collector Type. + @param CostCollectorType + Transaction Type for Manufacturing Management + */ + public void setCostCollectorType (String CostCollectorType) + { + + if (CostCollectorType == null || CostCollectorType.equals("100") || CostCollectorType.equals("110") || CostCollectorType.equals("120") || CostCollectorType.equals("130") || CostCollectorType.equals("140") || CostCollectorType.equals("150") || CostCollectorType.equals("160")); else throw new IllegalArgumentException ("CostCollectorType Invalid value - " + CostCollectorType + " - Reference_ID=53287 - 100 - 110 - 120 - 130 - 140 - 150 - 160"); set_Value (COLUMNNAME_CostCollectorType, CostCollectorType); + } + + /** Get Cost Collector Type. + @return Transaction Type for Manufacturing Management + */ + public String getCostCollectorType () + { + return (String)get_Value(COLUMNNAME_CostCollectorType); + } + + public String getCostCollectorType (Timestamp timeLine) + { + return (String)get_Value(COLUMNNAME_CostCollectorType,timeLine); + } + /** Set Account Date. @param DateAcct Accounting Date @@ -378,6 +475,11 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return (Timestamp)get_Value(COLUMNNAME_DateAcct); } + public Timestamp getDateAcct (Timestamp timeLine) + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct,timeLine); + } + /** Set Description. @param Description Optional short description of the record @@ -395,6 +497,11 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return (String)get_Value(COLUMNNAME_Description); } + public String getDescription (Timestamp timeLine) + { + return (String)get_Value(COLUMNNAME_Description,timeLine); + } + /** DocAction AD_Reference_ID=135 */ public static final int DOCACTION_AD_Reference_ID=135; /** Complete = CO */ @@ -443,6 +550,11 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return (String)get_Value(COLUMNNAME_DocAction); } + public String getDocAction (Timestamp timeLine) + { + return (String)get_Value(COLUMNNAME_DocAction,timeLine); + } + /** DocStatus AD_Reference_ID=131 */ public static final int DOCSTATUS_AD_Reference_ID=131; /** Drafted = DR */ @@ -487,15 +599,20 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return (String)get_Value(COLUMNNAME_DocStatus); } - /** Set DurationReal. - @param DurationReal DurationReal */ + public String getDocStatus (Timestamp timeLine) + { + return (String)get_Value(COLUMNNAME_DocStatus,timeLine); + } + + /** Set Duration Real. + @param DurationReal Duration Real */ public void setDurationReal (BigDecimal DurationReal) { set_Value (COLUMNNAME_DurationReal, DurationReal); } - /** Get DurationReal. - @return DurationReal */ + /** Get Duration Real. + @return Duration Real */ public BigDecimal getDurationReal () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DurationReal); @@ -504,15 +621,23 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return bd; } - /** Set IsBatchTime. - @param IsBatchTime IsBatchTime */ + public BigDecimal getDurationReal (Timestamp timeLine) + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DurationReal,timeLine); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Is BatchTime. + @param IsBatchTime Is BatchTime */ public void setIsBatchTime (boolean IsBatchTime) { set_Value (COLUMNNAME_IsBatchTime, Boolean.valueOf(IsBatchTime)); } - /** Get IsBatchTime. - @return IsBatchTime */ + /** Get Is BatchTime. + @return Is BatchTime */ public boolean isBatchTime () { Object oo = get_Value(COLUMNNAME_IsBatchTime); @@ -525,6 +650,18 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return false; } + public boolean isBatchTime (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_IsBatchTime,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Product Attribute Set Instance @@ -548,6 +685,14 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return ii.intValue(); } + public int getM_AttributeSetInstance_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + /** Set Locator. @param M_Locator_ID Warehouse Locator @@ -570,92 +715,15 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return ii.intValue(); } - /** Set Movement Date. - @param MovementDate - Date a product was moved in or out of inventory - */ - public void setMovementDate (Timestamp MovementDate) + public int getM_Locator_ID (Timestamp timeLine) { - if (MovementDate == null) - throw new IllegalArgumentException ("MovementDate is mandatory."); - set_Value (COLUMNNAME_MovementDate, MovementDate); + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); } - /** Get Movement Date. - @return Date a product was moved in or out of inventory - */ - public Timestamp getMovementDate () - { - return (Timestamp)get_Value(COLUMNNAME_MovementDate); - } - - /** Set Movement Quantity. - @param MovementQty - Quantity of a product moved. - */ - public void setMovementQty (BigDecimal MovementQty) - { - if (MovementQty == null) - throw new IllegalArgumentException ("MovementQty is mandatory."); - set_Value (COLUMNNAME_MovementQty, MovementQty); - } - - /** Get Movement Quantity. - @return Quantity of a product moved. - */ - public BigDecimal getMovementQty () - { - BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); - if (bd == null) - return Env.ZERO; - return bd; - } - - /** MovementType AD_Reference_ID=189 */ - public static final int MOVEMENTTYPE_AD_Reference_ID=189; - /** Customer Shipment = C- */ - public static final String MOVEMENTTYPE_CustomerShipment = "C-"; - /** Customer Returns = C+ */ - public static final String MOVEMENTTYPE_CustomerReturns = "C+"; - /** Vendor Receipts = V+ */ - public static final String MOVEMENTTYPE_VendorReceipts = "V+"; - /** Vendor Returns = V- */ - public static final String MOVEMENTTYPE_VendorReturns = "V-"; - /** Inventory Out = I- */ - public static final String MOVEMENTTYPE_InventoryOut = "I-"; - /** Inventory In = I+ */ - public static final String MOVEMENTTYPE_InventoryIn = "I+"; - /** Movement From = M- */ - public static final String MOVEMENTTYPE_MovementFrom = "M-"; - /** Movement To = M+ */ - public static final String MOVEMENTTYPE_MovementTo = "M+"; - /** Production + = P+ */ - public static final String MOVEMENTTYPE_ProductionPlus = "P+"; - /** Production - = P- */ - public static final String MOVEMENTTYPE_Production_ = "P-"; - /** Work Order + = W+ */ - public static final String MOVEMENTTYPE_WorkOrderPlus = "W+"; - /** Work Order - = W- */ - public static final String MOVEMENTTYPE_WorkOrder_ = "W-"; - /** Set Movement Type. - @param MovementType - Method of moving the inventory - */ - public void setMovementType (String MovementType) - { - - if (MovementType == null || MovementType.equals("C-") || MovementType.equals("C+") || MovementType.equals("V+") || MovementType.equals("V-") || MovementType.equals("I-") || MovementType.equals("I+") || MovementType.equals("M-") || MovementType.equals("M+") || MovementType.equals("P+") || MovementType.equals("P-") || MovementType.equals("W+") || MovementType.equals("W-")); else throw new IllegalArgumentException ("MovementType Invalid value - " + MovementType + " - Reference_ID=189 - C- - C+ - V+ - V- - I- - I+ - M- - M+ - P+ - P- - W+ - W-"); set_Value (COLUMNNAME_MovementType, MovementType); - } - - /** Get Movement Type. - @return Method of moving the inventory - */ - public String getMovementType () - { - return (String)get_Value(COLUMNNAME_MovementType); - } - - public I_M_Product getM_Product() throws Exception + public I_M_Product getM_Product() throws RuntimeException { Class clazz = MTable.getClass(I_M_Product.Table_Name); I_M_Product result = null; @@ -666,7 +734,7 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe } catch (Exception e) { log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw e; + throw new RuntimeException( e ); } return result; } @@ -693,6 +761,14 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return ii.intValue(); } + public int getM_Product_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + /** Get Record ID/ColumnName @return ID/ColumnName pair */ @@ -701,7 +777,7 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return new KeyNamePair(get_ID(), String.valueOf(getM_Product_ID())); } - public I_M_Warehouse getM_Warehouse() throws Exception + public I_M_Warehouse getM_Warehouse() throws RuntimeException { Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); I_M_Warehouse result = null; @@ -712,7 +788,7 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe } catch (Exception e) { log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw e; + throw new RuntimeException( e ); } return result; } @@ -739,6 +815,270 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return ii.intValue(); } + public int getM_Warehouse_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Date. + @param MovementDate + Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate) + { + if (MovementDate == null) + throw new IllegalArgumentException ("MovementDate is mandatory."); + set_Value (COLUMNNAME_MovementDate, MovementDate); + } + + /** Get Movement Date. + @return Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate () + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate); + } + + public Timestamp getMovementDate (Timestamp timeLine) + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate,timeLine); + } + + /** Set Movement Quantity. + @param MovementQty + Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty) + { + if (MovementQty == null) + throw new IllegalArgumentException ("MovementQty is mandatory."); + set_Value (COLUMNNAME_MovementQty, MovementQty); + } + + /** Get Movement Quantity. + @return Quantity of a product moved. + */ + public BigDecimal getMovementQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + public BigDecimal getMovementQty (Timestamp timeLine) + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty,timeLine); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Manufacturing Cost Collector. + @param PP_Cost_Collector_ID Manufacturing Cost Collector */ + public void setPP_Cost_Collector_ID (int PP_Cost_Collector_ID) + { + if (PP_Cost_Collector_ID < 1) + throw new IllegalArgumentException ("PP_Cost_Collector_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PP_Cost_Collector_ID, Integer.valueOf(PP_Cost_Collector_ID)); + } + + /** Get Manufacturing Cost Collector. + @return Manufacturing Cost Collector */ + public int getPP_Cost_Collector_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PP_Cost_Collector_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public int getPP_Cost_Collector_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_PP_Cost_Collector_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.eevolution.model.I_PP_Order_BOMLine getPP_Order_BOMLine() throws RuntimeException + { + Class clazz = MTable.getClass(org.eevolution.model.I_PP_Order_BOMLine.Table_Name); + org.eevolution.model.I_PP_Order_BOMLine result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (org.eevolution.model.I_PP_Order_BOMLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Order_BOMLine_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw new RuntimeException( e ); + } + return result; + } + + /** 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) + set_Value (COLUMNNAME_PP_Order_BOMLine_ID, null); + else + set_Value (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 int getPP_Order_BOMLine_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_BOMLine_ID,timeLine); + 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); + org.eevolution.model.I_PP_Order result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (org.eevolution.model.I_PP_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Order_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw new RuntimeException( e ); + } + return result; + } + + /** Set Manufacturing Order. + @param PP_Order_ID Manufacturing Order */ + public void setPP_Order_ID (int PP_Order_ID) + { + if (PP_Order_ID < 1) + throw new IllegalArgumentException ("PP_Order_ID is mandatory."); + set_Value (COLUMNNAME_PP_Order_ID, Integer.valueOf(PP_Order_ID)); + } + + /** Get Manufacturing Order. + @return Manufacturing Order */ + public int getPP_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public int getPP_Order_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.eevolution.model.I_PP_Order_Node getPP_Order_Node() throws RuntimeException + { + Class clazz = MTable.getClass(org.eevolution.model.I_PP_Order_Node.Table_Name); + org.eevolution.model.I_PP_Order_Node result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (org.eevolution.model.I_PP_Order_Node)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Order_Node_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw new RuntimeException( e ); + } + return result; + } + + /** Set Manufacturing Order Activity. + @param PP_Order_Node_ID Manufacturing Order Activity */ + public void setPP_Order_Node_ID (int PP_Order_Node_ID) + { + if (PP_Order_Node_ID < 1) + set_Value (COLUMNNAME_PP_Order_Node_ID, null); + else + set_Value (COLUMNNAME_PP_Order_Node_ID, Integer.valueOf(PP_Order_Node_ID)); + } + + /** Get Manufacturing Order Activity. + @return Manufacturing Order Activity */ + public int getPP_Order_Node_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public int getPP_Order_Node_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_Node_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.eevolution.model.I_PP_Order_Workflow getPP_Order_Workflow() throws RuntimeException + { + Class clazz = MTable.getClass(org.eevolution.model.I_PP_Order_Workflow.Table_Name); + org.eevolution.model.I_PP_Order_Workflow result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (org.eevolution.model.I_PP_Order_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Order_Workflow_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw new RuntimeException( e ); + } + return result; + } + + /** Set Manufacturing Order Workflow. + @param PP_Order_Workflow_ID Manufacturing Order Workflow */ + public void setPP_Order_Workflow_ID (int PP_Order_Workflow_ID) + { + if (PP_Order_Workflow_ID < 1) + set_Value (COLUMNNAME_PP_Order_Workflow_ID, null); + else + set_Value (COLUMNNAME_PP_Order_Workflow_ID, Integer.valueOf(PP_Order_Workflow_ID)); + } + + /** Get Manufacturing Order Workflow. + @return Manufacturing Order Workflow */ + public int getPP_Order_Workflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public int getPP_Order_Workflow_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_Workflow_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + /** Set Posted. @param Posted Posting status @@ -763,166 +1103,16 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return false; } - /** Set PP_Cost_Collector_ID. - @param PP_Cost_Collector_ID PP_Cost_Collector_ID */ - public void setPP_Cost_Collector_ID (int PP_Cost_Collector_ID) + public boolean isPosted (Timestamp timeLine) { - if (PP_Cost_Collector_ID < 1) - throw new IllegalArgumentException ("PP_Cost_Collector_ID is mandatory."); - set_ValueNoCheck (COLUMNNAME_PP_Cost_Collector_ID, Integer.valueOf(PP_Cost_Collector_ID)); - } - - /** Get PP_Cost_Collector_ID. - @return PP_Cost_Collector_ID */ - public int getPP_Cost_Collector_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_PP_Cost_Collector_ID); - if (ii == null) - return 0; - return ii.intValue(); - } - - public org.eevolution.model.I_PP_Order_BOMLine getPP_Order_BOMLine() throws Exception - { - Class clazz = MTable.getClass(org.eevolution.model.I_PP_Order_BOMLine.Table_Name); - org.eevolution.model.I_PP_Order_BOMLine result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.eevolution.model.I_PP_Order_BOMLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Order_BOMLine_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw e; - } - return result; - } - - /** Set PP_Order_BOMLine_ID. - @param PP_Order_BOMLine_ID PP_Order_BOMLine_ID */ - public void setPP_Order_BOMLine_ID (int PP_Order_BOMLine_ID) - { - if (PP_Order_BOMLine_ID < 1) - set_Value (COLUMNNAME_PP_Order_BOMLine_ID, null); - else - set_Value (COLUMNNAME_PP_Order_BOMLine_ID, Integer.valueOf(PP_Order_BOMLine_ID)); - } - - /** Get PP_Order_BOMLine_ID. - @return PP_Order_BOMLine_ID */ - 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 Exception - { - Class clazz = MTable.getClass(org.eevolution.model.I_PP_Order.Table_Name); - org.eevolution.model.I_PP_Order result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.eevolution.model.I_PP_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Order_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw e; - } - return result; - } - - /** Set PP_Order_ID. - @param PP_Order_ID PP_Order_ID */ - public void setPP_Order_ID (int PP_Order_ID) - { - if (PP_Order_ID < 1) - throw new IllegalArgumentException ("PP_Order_ID is mandatory."); - set_Value (COLUMNNAME_PP_Order_ID, Integer.valueOf(PP_Order_ID)); - } - - /** Get PP_Order_ID. - @return PP_Order_ID */ - public int getPP_Order_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_ID); - if (ii == null) - return 0; - return ii.intValue(); - } - - public org.eevolution.model.I_PP_Order_Node getPP_Order_Node() throws Exception - { - Class clazz = MTable.getClass(org.eevolution.model.I_PP_Order_Node.Table_Name); - org.eevolution.model.I_PP_Order_Node result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.eevolution.model.I_PP_Order_Node)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Order_Node_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw e; - } - return result; - } - - /** Set Manufacturing Order Activity. - @param PP_Order_Node_ID Manufacturing Order Activity */ - public void setPP_Order_Node_ID (int PP_Order_Node_ID) - { - if (PP_Order_Node_ID < 1) - set_Value (COLUMNNAME_PP_Order_Node_ID, null); - else - set_Value (COLUMNNAME_PP_Order_Node_ID, Integer.valueOf(PP_Order_Node_ID)); - } - - /** Get Manufacturing Order Activity. - @return Manufacturing Order Activity */ - public int getPP_Order_Node_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_Node_ID); - if (ii == null) - return 0; - return ii.intValue(); - } - - public org.eevolution.model.I_PP_Order_Workflow getPP_Order_Workflow() throws Exception - { - Class clazz = MTable.getClass(org.eevolution.model.I_PP_Order_Workflow.Table_Name); - org.eevolution.model.I_PP_Order_Workflow result = null; - try { - Constructor constructor = null; - constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); - result = (org.eevolution.model.I_PP_Order_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Order_Workflow_ID()), get_TrxName()}); - } catch (Exception e) { - log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); - log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw e; - } - return result; - } - - /** Set PP_Order_Workflow_ID. - @param PP_Order_Workflow_ID PP_Order_Workflow_ID */ - public void setPP_Order_Workflow_ID (int PP_Order_Workflow_ID) - { - if (PP_Order_Workflow_ID < 1) - set_Value (COLUMNNAME_PP_Order_Workflow_ID, null); - else - set_Value (COLUMNNAME_PP_Order_Workflow_ID, Integer.valueOf(PP_Order_Workflow_ID)); - } - - /** Get PP_Order_Workflow_ID. - @return PP_Order_Workflow_ID */ - public int getPP_Order_Workflow_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_Workflow_ID); - if (ii == null) - return 0; - return ii.intValue(); + Object oo = get_Value(COLUMNNAME_Posted,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; } /** Set Processed. @@ -949,6 +1139,18 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return false; } + public boolean isProcessed (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_Processed,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Process Now. @param Processing Process Now */ public void setProcessing (boolean Processing) @@ -970,15 +1172,27 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return false; } - /** Set QtyReject. - @param QtyReject QtyReject */ + public boolean isProcessing (Timestamp timeLine) + { + Object oo = get_Value(COLUMNNAME_Processing,timeLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Qty Reject. + @param QtyReject Qty Reject */ public void setQtyReject (BigDecimal QtyReject) { set_Value (COLUMNNAME_QtyReject, QtyReject); } - /** Get QtyReject. - @return QtyReject */ + /** Get Qty Reject. + @return Qty Reject */ public BigDecimal getQtyReject () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyReject); @@ -987,8 +1201,14 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return bd; } - /** Reversal_ID AD_Reference_ID=53254 */ - public static final int REVERSAL_ID_AD_Reference_ID=53254; + public BigDecimal getQtyReject (Timestamp timeLine) + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyReject,timeLine); + if (bd == null) + return Env.ZERO; + return bd; + } + /** Set Reversal ID. @param Reversal_ID ID of document reversal @@ -1012,44 +1232,15 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return ii.intValue(); } - /** Set Scrapped Quantity. - @param ScrappedQty - The Quantity scrapped due to QA issues - */ - public void setScrappedQty (BigDecimal ScrappedQty) + public int getReversal_ID (Timestamp timeLine) { - set_Value (COLUMNNAME_ScrappedQty, ScrappedQty); + Integer ii = (Integer)get_Value(COLUMNNAME_Reversal_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); } - /** Get Scrapped Quantity. - @return The Quantity scrapped due to QA issues - */ - public BigDecimal getScrappedQty () - { - BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ScrappedQty); - if (bd == null) - return Env.ZERO; - return bd; - } - - /** Set SetupTimeReal. - @param SetupTimeReal SetupTimeReal */ - public void setSetupTimeReal (BigDecimal SetupTimeReal) - { - set_Value (COLUMNNAME_SetupTimeReal, SetupTimeReal); - } - - /** Get SetupTimeReal. - @return SetupTimeReal */ - public BigDecimal getSetupTimeReal () - { - BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SetupTimeReal); - if (bd == null) - return Env.ZERO; - return bd; - } - - public I_S_Resource getS_Resource() throws Exception + public I_S_Resource getS_Resource() throws RuntimeException { Class clazz = MTable.getClass(I_S_Resource.Table_Name); I_S_Resource result = null; @@ -1060,7 +1251,7 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe } catch (Exception e) { log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); - throw e; + throw new RuntimeException( e ); } return result; } @@ -1087,8 +1278,67 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return ii.intValue(); } - /** User1_ID AD_Reference_ID=286 */ - public static final int USER1_ID_AD_Reference_ID=286; + public int getS_Resource_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_Resource_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Scrapped Quantity. + @param ScrappedQty + The Quantity scrapped due to QA issues + */ + public void setScrappedQty (BigDecimal ScrappedQty) + { + set_Value (COLUMNNAME_ScrappedQty, ScrappedQty); + } + + /** Get Scrapped Quantity. + @return The Quantity scrapped due to QA issues + */ + public BigDecimal getScrappedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ScrappedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + public BigDecimal getScrappedQty (Timestamp timeLine) + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ScrappedQty,timeLine); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Setup Time Real. + @param SetupTimeReal Setup Time Real */ + public void setSetupTimeReal (BigDecimal SetupTimeReal) + { + set_Value (COLUMNNAME_SetupTimeReal, SetupTimeReal); + } + + /** Get Setup Time Real. + @return Setup Time Real */ + public BigDecimal getSetupTimeReal () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SetupTimeReal); + if (bd == null) + return Env.ZERO; + return bd; + } + + public BigDecimal getSetupTimeReal (Timestamp timeLine) + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SetupTimeReal,timeLine); + if (bd == null) + return Env.ZERO; + return bd; + } + /** Set User List 1. @param User1_ID User defined list element #1 @@ -1112,8 +1362,14 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return ii.intValue(); } - /** User2_ID AD_Reference_ID=286 */ - public static final int USER2_ID_AD_Reference_ID=286; + public int getUser1_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } + /** Set User List 2. @param User2_ID User defined list element #2 @@ -1136,4 +1392,12 @@ public class X_PP_Cost_Collector extends PO implements I_PP_Cost_Collector, I_Pe return 0; return ii.intValue(); } + + public int getUser2_ID (Timestamp timeLine) + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID,timeLine); + if (ii == null) + return 0; + return ii.intValue(); + } } \ No newline at end of file diff --git a/base/src/org/eevolution/process/CreateDocType.java b/base/src/org/eevolution/process/CreateDocType.java index 605493d712..dc42d8e464 100644 --- a/base/src/org/eevolution/process/CreateDocType.java +++ b/base/src/org/eevolution/process/CreateDocType.java @@ -54,24 +54,6 @@ public class CreateDocType extends SvrProcess createDocType("Manufacturing Order Planning","Order Planning", MDocType.DOCBASETYPE_ManufacturingOrder, null, 0, 0, 81000, GL_Manufacturing); - createDocType("Manufacturing Order Receipt", "Order Receipt", - MDocType.DOCBASETYPE_ManufacturingOrderReceipt, null, - 0, 0, 82000, GL_Manufacturing); - createDocType("Manufacturing Order Issue","Order Issue", - MDocType.DOCBASETYPE_ManufacturingOrderIssue, null, - 0, 0, 83000, GL_Manufacturing); - createDocType("Manufacturing Order Method Variance", "Method Variance", - MDocType.DOCBASETYPE_ManufacturingOrderMethodVariance, null, - 0, 0, 84000, GL_Manufacturing); - createDocType("Manufacturing Order Use Variance", "Use Variance", - MDocType.DOCBASETYPE_ManufacturingOrderUseVariance, null, - 0, 0, 84100, GL_Manufacturing); - createDocType("Manufacturing Order Rate Variance","Rate Variance", - MDocType.DOCBASETYPE_ManufacturingOrderRateVariance, null, - 0, 0, 84200, GL_Manufacturing); - createDocType("Manufacturing Operation Activity","Operation Activity", - MDocType.DOCBASETYPE_ManufacturingOperationActivity, null, - 0, 0, 85000, GL_Manufacturing); createDocType("Maintenance Order","Maintenance Order", MDocType.DOCBASETYPE_MaintenanceOrder, null, 0, 0, 86000, GL_Manufacturing); diff --git a/client/src/org/eevolution/form/VOrderReceiptIssue.java b/client/src/org/eevolution/form/VOrderReceiptIssue.java index b1c87ae8b1..175a97b881 100644 --- a/client/src/org/eevolution/form/VOrderReceiptIssue.java +++ b/client/src/org/eevolution/form/VOrderReceiptIssue.java @@ -1110,9 +1110,9 @@ public class VOrderReceiptIssue extends CPanel implements FormPanel, getM_AttributeSetInstance_ID(), movementDate, toDeliverQty, scrapQty, rejectQty, - getDocType(X_C_DocType.DOCBASETYPE_ManufacturingOrderReceipt), + getDocType(MDocType.DOCBASETYPE_ManufacturingOrder), 0, // PP_Order_BOMLine_ID - MPPCostCollector.MOVEMENTTYPE_ProductionPlus); + MPPCostCollector.COSTCOLLECTORTYPE_MaterialReceipt); } if (ADialog.ask(m_WindowNo, this, @@ -1173,17 +1173,18 @@ public class VOrderReceiptIssue extends CPanel implements FormPanel, MPPOrderBOMLine PP_orderbomLine = new MPPOrderBOMLine(Env.getCtx(), PP_OrderBOMLine_ID, null); if (issue.signum() > 0 || qtyScrap.signum() > 0 || qtyReject.signum() > 0) { - int C_DocType_ID = 0; + String CostCollectorType = null; + int C_DocType_ID = getDocType(MDocType.DOCBASETYPE_ManufacturingOrder); // Method Variance if (PP_orderbomLine.getQtyBatch().signum() == 0 && PP_orderbomLine.getQtyBOM().signum() == 0) { - C_DocType_ID = getDocType(MDocType.DOCBASETYPE_ManufacturingOrderMethodVariance); + CostCollectorType = MPPCostCollector.COSTCOLLECTORTYPE_MethodChangeVariance; } // Order Issue else { - C_DocType_ID = getDocType(MDocType.DOCBASETYPE_ManufacturingOrderIssue); + CostCollectorType = MPPCostCollector.COSTCOLLECTORTYPE_ComponentIssue; } // createCollector ( @@ -1194,7 +1195,7 @@ public class VOrderReceiptIssue extends CPanel implements FormPanel, issue, qtyScrap, qtyReject, C_DocType_ID, PP_OrderBOMLine_ID, - MPPCostCollector.MOVEMENTTYPE_Production_ // Production "-" + CostCollectorType // Production "-" ); } @@ -1221,7 +1222,7 @@ public class VOrderReceiptIssue extends CPanel implements FormPanel, BigDecimal reject, int C_DocType_ID, int PP_Order_BOMLine_ID, - String MovementType + String CostCollectorType ) { MPPOrder pp_order = getPP_Order(); @@ -1233,7 +1234,7 @@ public class VOrderReceiptIssue extends CPanel implements FormPanel, PP_Cost_Collector.setC_Campaign_ID(pp_order.getC_Campaign_ID()); PP_Cost_Collector.setC_DocType_ID(C_DocType_ID); PP_Cost_Collector.setC_DocTypeTarget_ID(C_DocType_ID); - PP_Cost_Collector.setMovementType(MovementType); + PP_Cost_Collector.setCostCollectorType(CostCollectorType); PP_Cost_Collector.setC_Project_ID(pp_order.getC_Project_ID()); PP_Cost_Collector.setDescription(pp_order.getDescription()); PP_Cost_Collector.setDocAction(MPPCostCollector.ACTION_Complete); diff --git a/migration/352a-trunk/350_RF2408898_CostCollectorType.sql b/migration/352a-trunk/350_RF2408898_CostCollectorType.sql new file mode 100644 index 0000000000..cc4afd4590 --- /dev/null +++ b/migration/352a-trunk/350_RF2408898_CostCollectorType.sql @@ -0,0 +1,221 @@ +-- Dec 8, 2008 9:17:03 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53712,0,'CostCollectorType',TO_DATE('2008-12-08 21:16:59','YYYY-MM-DD HH24:MI:SS'),0,'Transaction Type for Manufacturing Management','EE01','Y','Cost Collector Type','Cost Collector Type',TO_DATE('2008-12-08 21:16:59','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Dec 8, 2008 9:17:03 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53712 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Dec 8, 2008 9:20:29 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,VFormat,ValidationType) VALUES (0,0,53287,TO_DATE('2008-12-08 21:20:27','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N','PP_CostCollectorType Transaction Manufacturing Management',TO_DATE('2008-12-08 21:20:27','YYYY-MM-DD HH24:MI:SS'),0,' ','L') +; + +-- Dec 8, 2008 9:20:29 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53287 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID) +; + +-- Dec 8, 2008 9:32:54 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53442,53287,TO_DATE('2008-12-08 21:32:51','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Receipt Material',TO_DATE('2008-12-08 21:32:51','YYYY-MM-DD HH24:MI:SS'),0,'100') +; + +-- Dec 8, 2008 9:32:54 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53442 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Dec 8, 2008 9:34:41 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53443,53287,TO_DATE('2008-12-08 21:34:40','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Component Issue',TO_DATE('2008-12-08 21:34:40','YYYY-MM-DD HH24:MI:SS'),0,'110') +; + +-- Dec 8, 2008 9:34:41 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53443 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Dec 8, 2008 9:38:41 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Ref_List SET Name='Material Receipt',Updated=TO_DATE('2008-12-08 21:38:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Ref_List_ID=53442 +; + +-- Dec 8, 2008 9:38:41 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53442 +; + +-- Dec 8, 2008 9:40:03 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53444,53287,TO_DATE('2008-12-08 21:40:02','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Usege Variance',TO_DATE('2008-12-08 21:40:02','YYYY-MM-DD HH24:MI:SS'),0,'120') +; + +-- Dec 8, 2008 9:40:03 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53444 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Dec 8, 2008 9:43:53 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53445,53287,TO_DATE('2008-12-08 21:43:52','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Method Change Variance',TO_DATE('2008-12-08 21:43:52','YYYY-MM-DD HH24:MI:SS'),0,'130') +; + +-- Dec 8, 2008 9:43:53 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53445 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Dec 8, 2008 9:44:06 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53446,53287,TO_DATE('2008-12-08 21:44:05','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Rate Variance',TO_DATE('2008-12-08 21:44:05','YYYY-MM-DD HH24:MI:SS'),0,'140') +; + +-- Dec 8, 2008 9:44:06 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53446 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Dec 8, 2008 9:44:23 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53447,53287,TO_DATE('2008-12-08 21:44:22','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Mix Variance',TO_DATE('2008-12-08 21:44:22','YYYY-MM-DD HH24:MI:SS'),0,'150') +; + +-- Dec 8, 2008 9:44:23 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53447 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Dec 8, 2008 9:52:18 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Column SET AD_Element_ID=53712, AD_Reference_Value_ID=53287, ColumnName='CostCollectorType', Description='Transaction Type for Manufacturing Management', Help=NULL, Name='Cost Collector Type',Updated=TO_DATE('2008-12-08 21:52:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53827 +; + +-- Dec 8, 2008 9:52:18 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=53827 +; + +-- Dec 8, 2008 9:52:19 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET Name='Cost Collector Type', Description='Transaction Type for Manufacturing Management', Help=NULL WHERE AD_Column_ID=53827 AND IsCentrallyMaintained='Y' +; + +-- Dec 8, 2008 10:01:03 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=54082 +; + +-- Dec 8, 2008 10:01:04 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=54106 +; + +-- Dec 8, 2008 10:01:04 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=54107 +; + +-- Dec 8, 2008 10:01:04 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=54108 +; + +-- Dec 8, 2008 10:01:04 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=54109 +; + +-- Dec 8, 2008 10:01:04 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=54110 +; + +-- Dec 8, 2008 10:01:19 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2008-12-08 22:01:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54082 +; + +-- Dec 8, 2008 10:02:35 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2008-12-08 22:02:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54082 +; + +-- Dec 8, 2008 10:03:21 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53448,53287,TO_DATE('2008-12-08 22:03:20','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Activity Control Report',TO_DATE('2008-12-08 22:03:20','YYYY-MM-DD HH24:MI:SS'),0,'160') +; + +-- Dec 8, 2008 10:03:21 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53448 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Dec 8, 2008 10:07:24 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List_Trl WHERE AD_Ref_List_ID=53231 +; + +-- Dec 8, 2008 10:07:24 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List WHERE AD_Ref_List_ID=53231 +; + +-- Dec 8, 2008 10:07:33 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List_Trl WHERE AD_Ref_List_ID=53233 +; + +-- Dec 8, 2008 10:07:33 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List WHERE AD_Ref_List_ID=53233 +; + +-- Dec 8, 2008 10:07:42 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List_Trl WHERE AD_Ref_List_ID=53234 +; + +-- Dec 8, 2008 10:07:42 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List WHERE AD_Ref_List_ID=53234 +; + +-- Dec 8, 2008 10:07:49 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List_Trl WHERE AD_Ref_List_ID=53236 +; + +-- Dec 8, 2008 10:07:49 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List WHERE AD_Ref_List_ID=53236 +; + +-- Dec 8, 2008 10:07:53 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List_Trl WHERE AD_Ref_List_ID=53237 +; + + +-- Dec 8, 2008 10:07:53 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List WHERE AD_Ref_List_ID=53237 +; + +-- Dec 8, 2008 10:07:57 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List_Trl WHERE AD_Ref_List_ID=53238 +; + +-- Dec 8, 2008 10:07:57 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List WHERE AD_Ref_List_ID=53238 +; + +-- Dec 8, 2008 10:08:27 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Ref_Table SET WhereClause='C_DocType.AD_Client_ID=@#AD_Client_ID@ AND C_DocType.DocBaseType IN (''MOP'',''MOF'',''MQO'') ',Updated=TO_DATE('2008-12-08 22:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=53233 +; + diff --git a/migration/352a-trunk/postgresql/350_RF2408898_CostCollectorType.sql b/migration/352a-trunk/postgresql/350_RF2408898_CostCollectorType.sql new file mode 100644 index 0000000000..27c5d9dae2 --- /dev/null +++ b/migration/352a-trunk/postgresql/350_RF2408898_CostCollectorType.sql @@ -0,0 +1,220 @@ +-- Dec 8, 2008 9:17:03 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53712,0,'CostCollectorType',TO_TIMESTAMP('2008-12-08 21:16:59','YYYY-MM-DD HH24:MI:SS'),0,'Transaction Type for Manufacturing Management','EE01','Y','Cost Collector Type','Cost Collector Type',TO_TIMESTAMP('2008-12-08 21:16:59','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Dec 8, 2008 9:17:03 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53712 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Dec 8, 2008 9:20:29 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,VFormat,ValidationType) VALUES (0,0,53287,TO_TIMESTAMP('2008-12-08 21:20:27','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N','PP_CostCollectorType Transaction Manufacturing Management',TO_TIMESTAMP('2008-12-08 21:20:27','YYYY-MM-DD HH24:MI:SS'),0,' ','L') +; + +-- Dec 8, 2008 9:20:29 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53287 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID) +; + +-- Dec 8, 2008 9:32:54 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53442,53287,TO_TIMESTAMP('2008-12-08 21:32:51','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Receipt Material',TO_TIMESTAMP('2008-12-08 21:32:51','YYYY-MM-DD HH24:MI:SS'),0,'100') +; + +-- Dec 8, 2008 9:32:54 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53442 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Dec 8, 2008 9:34:41 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53443,53287,TO_TIMESTAMP('2008-12-08 21:34:40','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Component Issue',TO_TIMESTAMP('2008-12-08 21:34:40','YYYY-MM-DD HH24:MI:SS'),0,'110') +; + +-- Dec 8, 2008 9:34:41 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53443 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Dec 8, 2008 9:38:41 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Ref_List SET Name='Material Receipt',Updated=TO_TIMESTAMP('2008-12-08 21:38:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Ref_List_ID=53442 +; + +-- Dec 8, 2008 9:38:41 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53442 +; + +-- Dec 8, 2008 9:40:03 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53444,53287,TO_TIMESTAMP('2008-12-08 21:40:02','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Usege Variance',TO_TIMESTAMP('2008-12-08 21:40:02','YYYY-MM-DD HH24:MI:SS'),0,'120') +; + +-- Dec 8, 2008 9:40:03 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53444 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Dec 8, 2008 9:43:53 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53445,53287,TO_TIMESTAMP('2008-12-08 21:43:52','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Method Change Variance',TO_TIMESTAMP('2008-12-08 21:43:52','YYYY-MM-DD HH24:MI:SS'),0,'130') +; + +-- Dec 8, 2008 9:43:53 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53445 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Dec 8, 2008 9:44:06 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53446,53287,TO_TIMESTAMP('2008-12-08 21:44:05','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Rate Variance',TO_TIMESTAMP('2008-12-08 21:44:05','YYYY-MM-DD HH24:MI:SS'),0,'140') +; + +-- Dec 8, 2008 9:44:06 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53446 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Dec 8, 2008 9:44:23 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53447,53287,TO_TIMESTAMP('2008-12-08 21:44:22','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Mix Variance',TO_TIMESTAMP('2008-12-08 21:44:22','YYYY-MM-DD HH24:MI:SS'),0,'150') +; + +-- Dec 8, 2008 9:44:23 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53447 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Dec 8, 2008 9:52:18 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Column SET AD_Element_ID=53712, AD_Reference_Value_ID=53287, ColumnName='CostCollectorType', Description='Transaction Type for Manufacturing Management', Help=NULL, Name='Cost Collector Type',Updated=TO_TIMESTAMP('2008-12-08 21:52:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53827 +; + +-- Dec 8, 2008 9:52:18 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=53827 +; + +-- Dec 8, 2008 9:52:19 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET Name='Cost Collector Type', Description='Transaction Type for Manufacturing Management', Help=NULL WHERE AD_Column_ID=53827 AND IsCentrallyMaintained='Y' +; + +-- Dec 8, 2008 10:01:03 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=54082 +; + +-- Dec 8, 2008 10:01:04 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=54106 +; + +-- Dec 8, 2008 10:01:04 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=54107 +; + +-- Dec 8, 2008 10:01:04 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=54108 +; + +-- Dec 8, 2008 10:01:04 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=54109 +; + +-- Dec 8, 2008 10:01:04 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=54110 +; + +-- Dec 8, 2008 10:01:19 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2008-12-08 22:01:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54082 +; + +-- Dec 8, 2008 10:02:35 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2008-12-08 22:02:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54082 +; + +-- Dec 8, 2008 10:03:21 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53448,53287,TO_TIMESTAMP('2008-12-08 22:03:20','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Activity Control Report',TO_TIMESTAMP('2008-12-08 22:03:20','YYYY-MM-DD HH24:MI:SS'),0,'160') +; + +-- Dec 8, 2008 10:03:21 PM ECT +-- Cost Collector Type Manufacturing Management +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53448 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Dec 8, 2008 10:07:24 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List_Trl WHERE AD_Ref_List_ID=53231 +; + +-- Dec 8, 2008 10:07:24 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List WHERE AD_Ref_List_ID=53231 +; + +-- Dec 8, 2008 10:07:33 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List_Trl WHERE AD_Ref_List_ID=53233 +; + +-- Dec 8, 2008 10:07:33 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List WHERE AD_Ref_List_ID=53233 +; + +-- Dec 8, 2008 10:07:42 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List_Trl WHERE AD_Ref_List_ID=53234 +; + +-- Dec 8, 2008 10:07:42 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List WHERE AD_Ref_List_ID=53234 +; + +-- Dec 8, 2008 10:07:49 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List_Trl WHERE AD_Ref_List_ID=53236 +; + +-- Dec 8, 2008 10:07:49 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List WHERE AD_Ref_List_ID=53236 +; + +-- Dec 8, 2008 10:07:53 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List_Trl WHERE AD_Ref_List_ID=53237 +; + +-- Dec 8, 2008 10:07:53 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List WHERE AD_Ref_List_ID=53237 +; + +-- Dec 8, 2008 10:07:57 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List_Trl WHERE AD_Ref_List_ID=53238 +; + +-- Dec 8, 2008 10:07:57 PM ECT +-- Cost Collector Type Manufacturing Management +DELETE FROM AD_Ref_List WHERE AD_Ref_List_ID=53238 +; + +-- Dec 8, 2008 10:08:27 PM ECT +-- Cost Collector Type Manufacturing Management +UPDATE AD_Ref_Table SET WhereClause='C_DocType.AD_Client_ID=@#AD_Client_ID@ AND C_DocType.DocBaseType IN (''MOP'',''MOF'',''MQO'') ',Updated=TO_TIMESTAMP('2008-12-08 22:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=53233 +; +