It looses document Number Sequence of Manufacturing Orders

http://sourceforge.net/tracker2/?func=browse&group_id=176962&atid=934929
Rename PP_Order_BOMLineMA TO PP_Cost_CollectorMA
http://sourceforge.net/tracker2/?func=detail&aid=2606690&group_id=176962&atid=934929

1. Rename PP_Order_BOMLineMA TO PP_Cost_CollectorMA
2. Create a new Document Type Base (Cost Collector) this let get a Document no for this type transaction
3. Drop old sequences that do not is used

Teo can please validate the oracle script migration, in special the recreate the primary key and foreign keys

regards
Victor Perez
www.e-evolution.com
This commit is contained in:
vpj-cd 2009-02-16 21:31:40 +00:00
parent 82ce5386f1
commit f5b2f40a68
9 changed files with 853 additions and 166 deletions

View File

@ -20,6 +20,7 @@
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.Timestamp;
import org.compiere.util.KeyNamePair;
/** Generated Interface for C_DocType
@ -43,6 +44,14 @@ public interface I_C_DocType
/** Load Meta Data */
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
@ -84,19 +93,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";
@ -136,6 +132,35 @@ 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 Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name DefiniteSequence_ID */
public static final String COLUMNNAME_DefiniteSequence_ID = "DefiniteSequence_ID";
@ -264,6 +289,19 @@ public interface I_C_DocType
*/
public boolean isHasProforma();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name IsCreateCounter */
public static final String COLUMNNAME_IsCreateCounter = "IsCreateCounter";
@ -316,19 +354,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";
@ -342,6 +367,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";
@ -373,19 +411,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";
@ -399,6 +424,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";
@ -437,4 +475,20 @@ public interface I_C_DocType
* The label text to be printed on a document or correspondence.
*/
public String getPrintName();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
}

View File

@ -685,8 +685,8 @@ public final class MSetup
createDocType("Manufacturing Order", "Manufacturing Order",
MDocType.DOCBASETYPE_ManufacturingOrder, null,
0, 0, 80000, GL_Manufacturing);
createDocType("Manufacturing Order Planning","Order Planning",
MDocType.DOCBASETYPE_ManufacturingOrder, null,
createDocType("Manufacturing Cost Collector","Cost Collector",
MDocType.DOCBASETYPE_ManufacturingCostCollector, null,
0, 0, 81000, GL_Manufacturing);
createDocType("Maintenance Order","Maintenance Order",
MDocType.DOCBASETYPE_MaintenanceOrder, null,

View File

@ -32,7 +32,7 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent
/**
*
*/
private static final long serialVersionUID = 1L;
private static final long serialVersionUID = 20081221L;
/** Standard Constructor */
public X_C_DocType (Properties ctx, int C_DocType_ID, String trxName)
@ -52,11 +52,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);
@ -154,28 +154,6 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent
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_ValueNoCheck (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();
}
/** Set Document Type for Invoice.
@param C_DocTypeInvoice_ID
Document type used for invoices generated from this sales document
@ -245,6 +223,28 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent
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_ValueNoCheck (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();
}
/** Set Definite Sequence.
@param DefiniteSequence_ID Definite Sequence */
public void setDefiniteSequence_ID (int DefiniteSequence_ID)
@ -340,6 +340,8 @@ public class X_C_DocType extends PO implements I_C_DocType, I_Persistent
public static final String DOCBASETYPE_Payroll = "HRP";
/** Distribution Order = DOO */
public static final String DOCBASETYPE_DistributionOrder = "DOO";
/** Manufacturing Cost Collector = MCC */
public static final String DOCBASETYPE_ManufacturingCostCollector = "MCC";
/** Set Document BaseType.
@param DocBaseType
Logical type of document
@ -347,7 +349,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("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);
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") || DocBaseType.equals("MCC")); 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 - MCC"); set_Value (COLUMNNAME_DocBaseType, DocBaseType);
}
/** Get Document BaseType.
@ -636,30 +638,6 @@ 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)
{
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;
}
/** Set In Transit.
@param IsInTransit
Movement is in transit
@ -684,6 +662,30 @@ 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)
{
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;
}
/** Set Overwrite Date on Complete.
@param IsOverwriteDateOnComplete Overwrite Date on Complete */
public void setIsOverwriteDateOnComplete (boolean IsOverwriteDateOnComplete)
@ -750,30 +752,6 @@ 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)
{
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;
}
/** Set Sales Transaction.
@param IsSOTrx
This is a Sales Transaction
@ -798,6 +776,30 @@ 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)
{
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;
}
/** Set Split when Difference.
@param IsSplitWhenDifference
Split document when there is a difference

View File

@ -20,18 +20,19 @@
package org.eevolution.model;
import java.math.BigDecimal;
import java.sql.Timestamp;
import org.compiere.model.*;
import org.compiere.util.KeyNamePair;
/** Generated Interface for PP_Order_BOMLineMA
/** Generated Interface for PP_Cost_CollectorMA
* @author Adempiere (generated)
* @version Release 3.5.3a
*/
public interface I_PP_Order_BOMLineMA
public interface I_PP_Cost_CollectorMA
{
/** TableName=PP_Order_BOMLineMA */
public static final String Table_Name = "PP_Order_BOMLineMA";
/** TableName=PP_Cost_CollectorMA */
public static final String Table_Name = "PP_Cost_CollectorMA";
/** AD_Table_ID=53062 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
@ -44,6 +45,14 @@ public interface I_PP_Order_BOMLineMA
/** Load Meta Data */
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
@ -57,6 +66,35 @@ public interface I_PP_Order_BOMLineMA
*/
public int getAD_Org_ID();
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name M_AttributeSetInstance_ID */
public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID";
@ -83,23 +121,39 @@ public interface I_PP_Order_BOMLineMA
*/
public BigDecimal getMovementQty();
/** Column name PP_Order_BOMLineMA_ID */
public static final String COLUMNNAME_PP_Order_BOMLineMA_ID = "PP_Order_BOMLineMA_ID";
/** Column name PP_Cost_CollectorMA_ID */
public static final String COLUMNNAME_PP_Cost_CollectorMA_ID = "PP_Cost_CollectorMA_ID";
/** Set Manufacturing Order BOM Line MA */
public void setPP_Order_BOMLineMA_ID (int PP_Order_BOMLineMA_ID);
/** Set Manufacturing Order MA */
public void setPP_Cost_CollectorMA_ID (int PP_Cost_CollectorMA_ID);
/** Get Manufacturing Order BOM Line MA */
public int getPP_Order_BOMLineMA_ID();
/** Get Manufacturing Order MA */
public int getPP_Cost_CollectorMA_ID();
/** Column name PP_Order_BOMLine_ID */
public static final String COLUMNNAME_PP_Order_BOMLine_ID = "PP_Order_BOMLine_ID";
/** Column name PP_Cost_Collector_ID */
public static final String COLUMNNAME_PP_Cost_Collector_ID = "PP_Cost_Collector_ID";
/** Set Manufacturing Order BOM Line */
public void setPP_Order_BOMLine_ID (int PP_Order_BOMLine_ID);
/** Set Manufacturing Cost Collector */
public void setPP_Cost_Collector_ID (int PP_Cost_Collector_ID);
/** Get Manufacturing Order BOM Line */
public int getPP_Order_BOMLine_ID();
/** Get Manufacturing Cost Collector */
public int getPP_Cost_Collector_ID();
public org.eevolution.model.I_PP_Order_BOMLine getPP_Order_BOMLine() throws RuntimeException;
public org.eevolution.model.I_PP_Cost_Collector getPP_Cost_Collector() throws RuntimeException;
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
}

View File

@ -25,32 +25,32 @@ import java.util.logging.Level;
import org.compiere.model.*;
import org.compiere.util.Env;
/** Generated Model for PP_Order_BOMLineMA
/** Generated Model for PP_Cost_CollectorMA
* @author Adempiere (generated)
* @version Release 3.5.3a - $Id$ */
public class X_PP_Order_BOMLineMA extends PO implements I_PP_Order_BOMLineMA, I_Persistent
public class X_PP_Cost_CollectorMA extends PO implements I_PP_Cost_CollectorMA, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 1L;
private static final long serialVersionUID = 20081221L;
/** Standard Constructor */
public X_PP_Order_BOMLineMA (Properties ctx, int PP_Order_BOMLineMA_ID, String trxName)
public X_PP_Cost_CollectorMA (Properties ctx, int PP_Cost_CollectorMA_ID, String trxName)
{
super (ctx, PP_Order_BOMLineMA_ID, trxName);
/** if (PP_Order_BOMLineMA_ID == 0)
super (ctx, PP_Cost_CollectorMA_ID, trxName);
/** if (PP_Cost_CollectorMA_ID == 0)
{
setM_AttributeSetInstance_ID (0);
setMovementQty (Env.ZERO);
setPP_Order_BOMLineMA_ID (0);
setPP_Order_BOMLine_ID (0);
setPP_Cost_CollectorMA_ID (0);
setPP_Cost_Collector_ID (0);
} */
}
/** Load Constructor */
public X_PP_Order_BOMLineMA (Properties ctx, ResultSet rs, String trxName)
public X_PP_Cost_CollectorMA (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
@ -72,7 +72,7 @@ public class X_PP_Order_BOMLineMA extends PO implements I_PP_Order_BOMLineMA, I_
public String toString()
{
StringBuffer sb = new StringBuffer ("X_PP_Order_BOMLineMA[")
StringBuffer sb = new StringBuffer ("X_PP_Cost_CollectorMA[")
.append(get_ID()).append("]");
return sb.toString();
}
@ -121,33 +121,33 @@ public class X_PP_Order_BOMLineMA extends PO implements I_PP_Order_BOMLineMA, I_
return bd;
}
/** Set Manufacturing Order BOM Line MA.
@param PP_Order_BOMLineMA_ID Manufacturing Order BOM Line MA */
public void setPP_Order_BOMLineMA_ID (int PP_Order_BOMLineMA_ID)
/** Set Manufacturing Order MA.
@param PP_Cost_CollectorMA_ID Manufacturing Order MA */
public void setPP_Cost_CollectorMA_ID (int PP_Cost_CollectorMA_ID)
{
if (PP_Order_BOMLineMA_ID < 1)
throw new IllegalArgumentException ("PP_Order_BOMLineMA_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_PP_Order_BOMLineMA_ID, Integer.valueOf(PP_Order_BOMLineMA_ID));
if (PP_Cost_CollectorMA_ID < 1)
throw new IllegalArgumentException ("PP_Cost_CollectorMA_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_PP_Cost_CollectorMA_ID, Integer.valueOf(PP_Cost_CollectorMA_ID));
}
/** Get Manufacturing Order BOM Line MA.
@return Manufacturing Order BOM Line MA */
public int getPP_Order_BOMLineMA_ID ()
/** Get Manufacturing Order MA.
@return Manufacturing Order MA */
public int getPP_Cost_CollectorMA_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_BOMLineMA_ID);
Integer ii = (Integer)get_Value(COLUMNNAME_PP_Cost_CollectorMA_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public org.eevolution.model.I_PP_Order_BOMLine getPP_Order_BOMLine() throws RuntimeException
public org.eevolution.model.I_PP_Cost_Collector getPP_Cost_Collector() throws RuntimeException
{
Class<?> clazz = MTable.getClass(org.eevolution.model.I_PP_Order_BOMLine.Table_Name);
org.eevolution.model.I_PP_Order_BOMLine result = null;
Class<?> clazz = MTable.getClass(org.eevolution.model.I_PP_Cost_Collector.Table_Name);
org.eevolution.model.I_PP_Cost_Collector 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()});
result = (org.eevolution.model.I_PP_Cost_Collector)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Cost_Collector_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);
@ -156,20 +156,20 @@ public class X_PP_Order_BOMLineMA extends PO implements I_PP_Order_BOMLineMA, I_
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)
/** 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_Order_BOMLine_ID < 1)
throw new IllegalArgumentException ("PP_Order_BOMLine_ID is mandatory.");
set_Value (COLUMNNAME_PP_Order_BOMLine_ID, Integer.valueOf(PP_Order_BOMLine_ID));
if (PP_Cost_Collector_ID < 1)
throw new IllegalArgumentException ("PP_Cost_Collector_ID is mandatory.");
set_Value (COLUMNNAME_PP_Cost_Collector_ID, Integer.valueOf(PP_Cost_Collector_ID));
}
/** Get Manufacturing Order BOM Line.
@return Manufacturing Order BOM Line */
public int getPP_Order_BOMLine_ID ()
/** Get Manufacturing Cost Collector.
@return Manufacturing Cost Collector */
public int getPP_Cost_Collector_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_BOMLine_ID);
Integer ii = (Integer)get_Value(COLUMNNAME_PP_Cost_Collector_ID);
if (ii == null)
return 0;
return ii.intValue();

View File

@ -0,0 +1,285 @@
-- Feb 13, 2009 11:10:45 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Table SET Name='Manufacturing Order MA', TableName='PP_Cost_CollectorMA',Updated=TO_DATE('2009-02-13 11:10:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Table_ID=53062
;
-- Feb 13, 2009 11:10:45 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Table_Trl SET IsTranslated='N' WHERE AD_Table_ID=53062
;
-- Feb 13, 2009 11:10:54 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53271,TO_DATE('2009-02-13 11:10:45','YYYY-MM-DD HH24:MI:SS'),0,1000000,50000,'Table PP_Cost_CollectorMA',1,'Y','N','Y','Y','PP_Cost_CollectorMA','N',1000000,TO_DATE('2009-02-13 11:10:45','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:12:11 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Element SET ColumnName='PP_Cost_CollectorMA_ID', Name='Manufacturing Order MA',Updated=TO_DATE('2009-02-13 11:12:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53343
;
-- Feb 13, 2009 11:12:11 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53343
;
-- Feb 13, 2009 11:12:11 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Column SET ColumnName='PP_Cost_CollectorMA_ID', Name='Manufacturing Order MA', Description=NULL, Help=NULL WHERE AD_Element_ID=53343
;
-- Feb 13, 2009 11:12:11 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Process_Para SET ColumnName='PP_Cost_CollectorMA_ID', Name='Manufacturing Order MA', Description=NULL, Help=NULL, AD_Element_ID=53343 WHERE UPPER(ColumnName)='PP_COST_COLLECTORMA_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 13, 2009 11:12:11 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Process_Para SET ColumnName='PP_Cost_CollectorMA_ID', Name='Manufacturing Order MA', Description=NULL, Help=NULL WHERE AD_Element_ID=53343 AND IsCentrallyMaintained='Y'
;
-- Feb 13, 2009 11:12:11 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET Name='Manufacturing Order MA', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53343) AND IsCentrallyMaintained='Y'
;
-- Feb 13, 2009 11:12:11 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_PrintFormatItem pi SET PrintName='Manufacturing Cost Collector', Name='Manufacturing Order MA' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53343)
;
-- Feb 13, 2009 11:12:43 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Column SET AD_Element_ID=53310, ColumnName='PP_Cost_Collector_ID', Description=NULL, Help=NULL, Name='Manufacturing Cost Collector',Updated=TO_DATE('2009-02-13 11:12:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54319
;
-- Feb 13, 2009 11:12:43 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=54319
;
-- Feb 13, 2009 11:12:43 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET Name='Manufacturing Cost Collector', Description=NULL, Help=NULL WHERE AD_Column_ID=54319 AND IsCentrallyMaintained='Y'
;
-- Feb 13, 2009 11:14:29 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Tab (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,HasTree,ImportFields,IsActive,IsAdvancedTab,IsInfoTab,IsInsertRecord,IsReadOnly,IsSingleRow,IsSortTab,IsTranslationTab,Name,Processing,SeqNo,TabLevel,Updated,UpdatedBy) VALUES (0,0,53192,53062,53014,TO_DATE('2009-02-13 11:14:29','YYYY-MM-DD HH24:MI:SS'),0,'EE01','N','N','Y','N','N','Y','N','N','N','N','Cost Collector MA','N',20,1,TO_DATE('2009-02-13 11:14:29','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:29 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, CommitWarning,Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Tab_ID, t.CommitWarning,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_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=53192 AND EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Tab_ID!=t.AD_Tab_ID)
;
-- Feb 13, 2009 11:14:33 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54315,56695,0,53192,TO_DATE('2009-02-13 11:14:33','YYYY-MM-DD HH24:MI:SS'),0,'The record is active in the system',1,'EE01','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Y','Y','Y','N','N','N','N','N','Active',TO_DATE('2009-02-13 11:14:33','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:33 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56695 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 13, 2009 11:14:34 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54316,56696,0,53192,TO_DATE('2009-02-13 11:14:33','YYYY-MM-DD HH24:MI:SS'),0,'Product Attribute Set Instance',10,'EE01','The values of the actual Product Attribute Instances. The product level attributes are defined on Product level.','Y','Y','Y','N','N','N','N','N','Attribute Set Instance',TO_DATE('2009-02-13 11:14:33','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:34 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56696 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 13, 2009 11:14:36 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54311,56697,0,53192,TO_DATE('2009-02-13 11:14:34','YYYY-MM-DD HH24:MI:SS'),0,'Client/Tenant for this installation.',10,'EE01','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','Y','Y','N','N','N','N','N','Client',TO_DATE('2009-02-13 11:14:34','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:36 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56697 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 13, 2009 11:14:37 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54319,56698,0,53192,TO_DATE('2009-02-13 11:14:36','YYYY-MM-DD HH24:MI:SS'),0,10,'EE01','Y','Y','Y','N','N','N','N','N','Manufacturing Cost Collector',TO_DATE('2009-02-13 11:14:36','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:37 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56698 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 13, 2009 11:14:37 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54318,56699,0,53192,TO_DATE('2009-02-13 11:14:37','YYYY-MM-DD HH24:MI:SS'),0,10,'EE01','Y','Y','N','N','N','N','N','N','Manufacturing Order MA',TO_DATE('2009-02-13 11:14:37','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:37 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56699 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 13, 2009 11:14:38 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54317,56700,0,53192,TO_DATE('2009-02-13 11:14:37','YYYY-MM-DD HH24:MI:SS'),0,'Quantity of a product moved.',22,'EE01','The Movement Quantity indicates the quantity of a product that has been moved.','Y','Y','Y','N','N','N','N','N','Movement Quantity',TO_DATE('2009-02-13 11:14:37','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:38 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56700 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 13, 2009 11:14:39 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54312,56701,0,53192,TO_DATE('2009-02-13 11:14:38','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client',10,'EE01','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','Y','Y','N','N','N','N','N','Organization',TO_DATE('2009-02-13 11:14:38','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:39 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56701 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 13, 2009 11:15:36 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=56697
;
-- Feb 13, 2009 11:15:36 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=56701
;
-- Feb 13, 2009 11:15:36 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=56695
;
-- Feb 13, 2009 11:15:36 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=56698
;
-- Feb 13, 2009 11:15:36 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=56700
;
-- Feb 13, 2009 11:15:36 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=56696
;
-- Feb 13, 2009 11:15:48 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2009-02-13 11:15:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56701
;
-- Feb 13, 2009 11:15:58 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2009-02-13 11:15:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56696
;
-- Feb 13, 2009 11:17:49 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Tab SET IsInsertRecord='N', IsReadOnly='Y', Name='Attributes',Updated=TO_DATE('2009-02-13 11:17:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53192
;
-- Feb 13, 2009 11:17:49 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Tab_Trl SET IsTranslated='N' WHERE AD_Tab_ID=53192
;
-- Feb 13, 2009 11:22:09 AM ECT
-- Fix Allocation with Collector Cost
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,53453,183,TO_DATE('2009-02-13 11:22:06','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Manufacturing Cost Collector',TO_DATE('2009-02-13 11:22:06','YYYY-MM-DD HH24:MI:SS'),0,'MCC')
;
-- Feb 13, 2009 11:22:09 AM ECT
-- Fix Allocation with Collector Cost
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=53453 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)
;
-- Feb 13, 2009 11:22:51 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53289,TO_DATE('2009-02-13 11:22:47','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N','C_DocType MFG Cost Collector',TO_DATE('2009-02-13 11:22:47','YYYY-MM-DD HH24:MI:SS'),0,'T')
;
-- Feb 13, 2009 11:22:51 AM ECT
-- Fix Allocation with Collector Cost
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=53289 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
;
-- Feb 13, 2009 11:23:59 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,WhereClause) VALUES (0,1509,1501,0,53289,217,TO_DATE('2009-02-13 11:23:59','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N',TO_DATE('2009-02-13 11:23:59','YYYY-MM-DD HH24:MI:SS'),0,'C_DocType.AD_Client_ID=@#AD_Client_ID@ AND C_DocType.DocBaseType IN (''MCC'') ')
;
-- Feb 13, 2009 11:24:14 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Column SET AD_Reference_Value_ID=53289,Updated=TO_DATE('2009-02-13 11:24:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53809
;
-- Feb 14, 2009 12:33:36 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Tab SET AD_Column_ID=54319,Updated=TO_DATE('2009-02-14 00:33:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53192
;
-- Feb 13, 2009 11:29:01 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (11,0,53272,TO_DATE('2009-02-13 11:29:00','YYYY-MM-DD HH24:MI:SS'),100,1000000,100,'Manufacturing Cost Collector',1,'Y','N','N','N','Manufacturing Cost Collector','N',1000000,TO_DATE('2009-02-13 11:29:00','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 13, 2009 11:30:27 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO C_DocType (AD_Client_ID,AD_Org_ID,C_DocType_ID,Created,CreatedBy,DocBaseType,DocNoSequence_ID,DocumentCopies,GL_Category_ID,HasCharges,HasProforma,IsActive,IsCreateCounter,IsDefault,IsDefaultCounterDoc,IsDocNoControlled,IsInTransit,IsIndexed,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,IsPickQAConfirm,IsSOTrx,IsShipConfirm,IsSplitWhenDifference,Name,PrintName,Updated,UpdatedBy) VALUES (11,0,50013,TO_DATE('2009-02-13 11:30:24','YYYY-MM-DD HH24:MI:SS'),100,'MCC',53174,1,108,'N','N','Y','Y','N','N','Y','N','Y','N','N','N','N','N','N','Manufacturing Cost Collector','Manufacturing Cost Collector',TO_DATE('2009-02-13 11:30:24','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 13, 2009 11:30:27 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, DocumentNote,Name,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.C_DocType_ID, t.DocumentNote,t.Name,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=50013 AND EXISTS (SELECT * FROM C_DocType_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.C_DocType_ID!=t.C_DocType_ID)
;
-- Feb 13, 2009 11:30:27 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Document_Action_Access (AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,C_DocType_ID , AD_Ref_List_ID, AD_Role_ID) (SELECT 11,0,'Y', SysDate,100, SysDate,100, doctype.C_DocType_ID, action.AD_Ref_List_ID, rol.AD_Role_ID FROM AD_Client client INNER JOIN C_DocType doctype ON (doctype.AD_Client_ID=client.AD_Client_ID) INNER JOIN AD_Ref_List action ON (action.AD_Reference_ID=135) INNER JOIN AD_Role rol ON (rol.AD_Client_ID=client.AD_Client_ID) WHERE client.AD_Client_ID=11 AND doctype.C_DocType_ID=50013 AND rol.IsManual='N')
;
-- Feb 13, 2009 11:30:49 AM ECT
-- Fix Allocation with Collector Cost
UPDATE C_DocType SET DocNoSequence_ID=53272,Updated=TO_DATE('2009-02-13 11:30:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=50013
;
-- Feb 13, 2009 11:44:28 AM ECT
-- Fix Allocation with Collector Cost
UPDATE C_DocType SET DocNoSequence_ID=53174,Updated=TO_DATE('2009-02-13 11:44:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=50013
;
UPDATE C_DocType SET DocNoSequence_ID=53272,Updated=TO_DATE('2009-02-16 14:26:40
','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=50013
;
ALTER TABLE PP_Order_BOMLineMA RENAME TO PP_Cost_CollectorMA;
ALTER TABLE PP_Cost_CollectorMA RENAME COLUMN pp_order_bomlinema_id TO pp_cost_collectorma_id;
ALTER TABLE pp_cost_collectorma DROP CONSTRAINT pporderbomline_pporderbomlinem;
ALTER TABLE pp_cost_collectorma DROP CONSTRAINT pp_order_bomlinema_key;
ALTER TABLE pp_cost_collectorma ADD CONSTRAINT pp_cost_collectorma_key PRIMARY KEY(pp_cost_collectorma_id);
ALTER TABLE PP_Cost_CollectorMA RENAME COLUMN pp_order_bomline_id TO pp_cost_collector_id;
ALTER TABLE pp_cost_collectorma ADD CONSTRAINT ppcostcollector_ppcostcollectorma FOREIGN KEY (pp_cost_collector_id)
REFERENCES pp_cost_collector (pp_cost_collector_id);
ALTER TABLE pp_cost_collectorma DROP CONSTRAINT pp_order_bomlinema_isactive_check;
ALTER TABLE pp_cost_collectorma ADD CONSTRAINT pp_cost_collectorma_isactive_check CHECK (isactive IN('Y','N'));
DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53170;
DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53171;
DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53172;
DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53173;
DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53174;
DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53175;
DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53176;

View File

@ -0,0 +1,288 @@
-- Feb 13, 2009 11:10:45 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Table SET Name='Manufacturing Order MA', TableName='PP_Cost_CollectorMA',Updated=TO_TIMESTAMP('2009-02-13 11:10:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Table_ID=53062
;
-- Feb 13, 2009 11:10:45 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Table_Trl SET IsTranslated='N' WHERE AD_Table_ID=53062
;
-- Feb 13, 2009 11:10:54 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53271,TO_TIMESTAMP('2009-02-13 11:10:45','YYYY-MM-DD HH24:MI:SS'),0,1000000,50000,'Table PP_Cost_CollectorMA',1,'Y','N','Y','Y','PP_Cost_CollectorMA','N',1000000,TO_TIMESTAMP('2009-02-13 11:10:45','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:12:11 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Element SET ColumnName='PP_Cost_CollectorMA_ID', Name='Manufacturing Order MA',Updated=TO_TIMESTAMP('2009-02-13 11:12:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53343
;
-- Feb 13, 2009 11:12:11 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53343
;
-- Feb 13, 2009 11:12:11 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Column SET ColumnName='PP_Cost_CollectorMA_ID', Name='Manufacturing Order MA', Description=NULL, Help=NULL WHERE AD_Element_ID=53343
;
-- Feb 13, 2009 11:12:11 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Process_Para SET ColumnName='PP_Cost_CollectorMA_ID', Name='Manufacturing Order MA', Description=NULL, Help=NULL, AD_Element_ID=53343 WHERE UPPER(ColumnName)='PP_COST_COLLECTORMA_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 13, 2009 11:12:11 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Process_Para SET ColumnName='PP_Cost_CollectorMA_ID', Name='Manufacturing Order MA', Description=NULL, Help=NULL WHERE AD_Element_ID=53343 AND IsCentrallyMaintained='Y'
;
-- Feb 13, 2009 11:12:11 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET Name='Manufacturing Order MA', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53343) AND IsCentrallyMaintained='Y'
;
-- Feb 13, 2009 11:12:11 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_PrintFormatItem SET PrintName='Manufacturing Cost Collector', Name='Manufacturing Order MA' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53343)
;
-- Feb 13, 2009 11:12:43 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Column SET AD_Element_ID=53310, ColumnName='PP_Cost_Collector_ID', Description=NULL, Help=NULL, Name='Manufacturing Cost Collector',Updated=TO_TIMESTAMP('2009-02-13 11:12:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54319
;
-- Feb 13, 2009 11:12:43 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=54319
;
-- Feb 13, 2009 11:12:43 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET Name='Manufacturing Cost Collector', Description=NULL, Help=NULL WHERE AD_Column_ID=54319 AND IsCentrallyMaintained='Y'
;
-- Feb 13, 2009 11:14:29 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Tab (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,HasTree,ImportFields,IsActive,IsAdvancedTab,IsInfoTab,IsInsertRecord,IsReadOnly,IsSingleRow,IsSortTab,IsTranslationTab,Name,Processing,SeqNo,TabLevel,Updated,UpdatedBy) VALUES (0,0,53192,53062,53014,TO_TIMESTAMP('2009-02-13 11:14:29','YYYY-MM-DD HH24:MI:SS'),0,'EE01','N','N','Y','N','N','Y','N','N','N','N','Cost Collector MA','N',20,1,TO_TIMESTAMP('2009-02-13 11:14:29','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:29 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, CommitWarning,Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Tab_ID, t.CommitWarning,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_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=53192 AND EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Tab_ID!=t.AD_Tab_ID)
;
-- Feb 13, 2009 11:14:33 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54315,56695,0,53192,TO_TIMESTAMP('2009-02-13 11:14:33','YYYY-MM-DD HH24:MI:SS'),0,'The record is active in the system',1,'EE01','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Y','Y','Y','N','N','N','N','N','Active',TO_TIMESTAMP('2009-02-13 11:14:33','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:33 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56695 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 13, 2009 11:14:34 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54316,56696,0,53192,TO_TIMESTAMP('2009-02-13 11:14:33','YYYY-MM-DD HH24:MI:SS'),0,'Product Attribute Set Instance',10,'EE01','The values of the actual Product Attribute Instances. The product level attributes are defined on Product level.','Y','Y','Y','N','N','N','N','N','Attribute Set Instance',TO_TIMESTAMP('2009-02-13 11:14:33','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:34 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56696 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 13, 2009 11:14:36 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54311,56697,0,53192,TO_TIMESTAMP('2009-02-13 11:14:34','YYYY-MM-DD HH24:MI:SS'),0,'Client/Tenant for this installation.',10,'EE01','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','Y','Y','N','N','N','N','N','Client',TO_TIMESTAMP('2009-02-13 11:14:34','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:36 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56697 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 13, 2009 11:14:37 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54319,56698,0,53192,TO_TIMESTAMP('2009-02-13 11:14:36','YYYY-MM-DD HH24:MI:SS'),0,10,'EE01','Y','Y','Y','N','N','N','N','N','Manufacturing Cost Collector',TO_TIMESTAMP('2009-02-13 11:14:36','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:37 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56698 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 13, 2009 11:14:37 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54318,56699,0,53192,TO_TIMESTAMP('2009-02-13 11:14:37','YYYY-MM-DD HH24:MI:SS'),0,10,'EE01','Y','Y','N','N','N','N','N','N','Manufacturing Order MA',TO_TIMESTAMP('2009-02-13 11:14:37','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:37 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56699 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 13, 2009 11:14:38 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54317,56700,0,53192,TO_TIMESTAMP('2009-02-13 11:14:37','YYYY-MM-DD HH24:MI:SS'),0,'Quantity of a product moved.',22,'EE01','The Movement Quantity indicates the quantity of a product that has been moved.','Y','Y','Y','N','N','N','N','N','Movement Quantity',TO_TIMESTAMP('2009-02-13 11:14:37','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:38 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56700 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 13, 2009 11:14:39 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54312,56701,0,53192,TO_TIMESTAMP('2009-02-13 11:14:38','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client',10,'EE01','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','Y','Y','N','N','N','N','N','Organization',TO_TIMESTAMP('2009-02-13 11:14:38','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 13, 2009 11:14:39 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56701 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 13, 2009 11:15:36 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=56697
;
-- Feb 13, 2009 11:15:36 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=56701
;
-- Feb 13, 2009 11:15:36 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=56695
;
-- Feb 13, 2009 11:15:36 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=56698
;
-- Feb 13, 2009 11:15:36 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=56700
;
-- Feb 13, 2009 11:15:36 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=56696
;
-- Feb 13, 2009 11:15:48 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2009-02-13 11:15:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56701
;
-- Feb 13, 2009 11:15:58 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2009-02-13 11:15:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56696
;
-- Feb 13, 2009 11:17:49 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Tab SET IsInsertRecord='N', IsReadOnly='Y', Name='Attributes',Updated=TO_TIMESTAMP('2009-02-13 11:17:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53192
;
-- Feb 13, 2009 11:17:49 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Tab_Trl SET IsTranslated='N' WHERE AD_Tab_ID=53192
;
-- Feb 13, 2009 11:22:09 AM ECT
-- Fix Allocation with Collector Cost
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,53453,183,TO_TIMESTAMP('2009-02-13 11:22:06','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Manufacturing Cost Collector',TO_TIMESTAMP('2009-02-13 11:22:06','YYYY-MM-DD HH24:MI:SS'),0,'MCC')
;
-- Feb 13, 2009 11:22:09 AM ECT
-- Fix Allocation with Collector Cost
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=53453 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)
;
-- Feb 13, 2009 11:22:51 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53289,TO_TIMESTAMP('2009-02-13 11:22:47','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N','C_DocType MFG Cost Collector',TO_TIMESTAMP('2009-02-13 11:22:47','YYYY-MM-DD HH24:MI:SS'),0,'T')
;
-- Feb 13, 2009 11:22:51 AM ECT
-- Fix Allocation with Collector Cost
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=53289 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
;
-- Feb 13, 2009 11:23:59 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,WhereClause) VALUES (0,1509,1501,0,53289,217,TO_TIMESTAMP('2009-02-13 11:23:59','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N',TO_TIMESTAMP('2009-02-13 11:23:59','YYYY-MM-DD HH24:MI:SS'),0,'C_DocType.AD_Client_ID=@#AD_Client_ID@ AND C_DocType.DocBaseType IN (''MCC'') ')
;
-- Feb 13, 2009 11:24:14 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Column SET AD_Reference_Value_ID=53289,Updated=TO_TIMESTAMP('2009-02-13 11:24:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53809
;
-- Feb 14, 2009 12:33:36 AM ECT
-- Fix Allocation with Collector Cost
UPDATE AD_Tab SET AD_Column_ID=54319,Updated=TO_TIMESTAMP('2009-02-14 00:33:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53192
;
-- Feb 13, 2009 11:29:01 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (11,0,53272,TO_TIMESTAMP('2009-02-13 11:29:00','YYYY-MM-DD HH24:MI:SS'),100,1000000,100,'Manufacturing Cost Collector',1,'Y','N','N','N','Manufacturing Cost Collector','N',1000000,TO_TIMESTAMP('2009-02-13 11:29:00','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 13, 2009 11:30:27 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO C_DocType (AD_Client_ID,AD_Org_ID,C_DocType_ID,Created,CreatedBy,DocBaseType,DocNoSequence_ID,DocumentCopies,GL_Category_ID,HasCharges,HasProforma,IsActive,IsCreateCounter,IsDefault,IsDefaultCounterDoc,IsDocNoControlled,IsInTransit,IsIndexed,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,IsPickQAConfirm,IsSOTrx,IsShipConfirm,IsSplitWhenDifference,Name,PrintName,Updated,UpdatedBy) VALUES (11,0,50013,TO_TIMESTAMP('2009-02-13 11:30:24','YYYY-MM-DD HH24:MI:SS'),100,'MCC',53174,1,108,'N','N','Y','Y','N','N','Y','N','Y','N','N','N','N','N','N','Manufacturing Cost Collector','Manufacturing Cost Collector',TO_TIMESTAMP('2009-02-13 11:30:24','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 13, 2009 11:30:27 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, DocumentNote,Name,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.C_DocType_ID, t.DocumentNote,t.Name,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=50013 AND EXISTS (SELECT * FROM C_DocType_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.C_DocType_ID!=t.C_DocType_ID)
;
-- Feb 13, 2009 11:30:27 AM ECT
-- Fix Allocation with Collector Cost
INSERT INTO AD_Document_Action_Access (AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,C_DocType_ID , AD_Ref_List_ID, AD_Role_ID) (SELECT 11,0,'Y', CURRENT_TIMESTAMP,100, CURRENT_TIMESTAMP,100, doctype.C_DocType_ID, "action".AD_Ref_List_ID, rol.AD_Role_ID FROM AD_Client client INNER JOIN C_DocType doctype ON (doctype.AD_Client_ID=client.AD_Client_ID) INNER JOIN AD_Ref_List "action" ON ("action".AD_Reference_ID=135) INNER JOIN AD_Role rol ON (rol.AD_Client_ID=client.AD_Client_ID) WHERE client.AD_Client_ID=11 AND doctype.C_DocType_ID=50013 AND rol.IsManual='N')
;
-- Feb 13, 2009 11:30:49 AM ECT
-- Fix Allocation with Collector Cost
UPDATE C_DocType SET DocNoSequence_ID=53272,Updated=TO_TIMESTAMP('2009-02-13 11:30:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=50013
;
-- Feb 13, 2009 11:44:28 AM ECT
-- Fix Allocation with Collector Cost
UPDATE C_DocType SET DocNoSequence_ID=53174,Updated=TO_TIMESTAMP('2009-02-13 11:44:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=50013
;
UPDATE C_DocType SET DocNoSequence_ID=53272,Updated=TO_TIMESTAMP('2009-02-16 14:26:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=50013
;
ALTER TABLE PP_Order_BOMLineMA RENAME TO PP_Cost_CollectorMA;
ALTER TABLE PP_Cost_CollectorMA RENAME COLUMN pp_order_bomlinema_id TO pp_cost_collectorma_id;
ALTER TABLE pp_cost_collectorma DROP CONSTRAINT pporderbomline_pporderbomlinem;
ALTER TABLE pp_cost_collectorma DROP CONSTRAINT pp_order_bomlinema_key;
ALTER TABLE pp_cost_collectorma ADD CONSTRAINT pp_cost_collectorma_key PRIMARY KEY(pp_cost_collectorma_id);
ALTER TABLE PP_Cost_CollectorMA RENAME COLUMN pp_order_bomline_id TO pp_cost_collector_id;
ALTER TABLE pp_cost_collectorma ADD CONSTRAINT ppcostcollector_ppcostcollectorma FOREIGN KEY (pp_cost_collector_id)
REFERENCES pp_cost_collector (pp_cost_collector_id);
ALTER TABLE pp_cost_collectorma DROP CONSTRAINT pp_order_bomlinema_isactive_check;
ALTER TABLE pp_cost_collectorma ADD CONSTRAINT pp_cost_collectorma_isactive_check CHECK (isactive = ANY (ARRAY['Y'::bpchar, 'N'::bpchar]));
DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53170;
DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53171;
DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53172;
DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53173;
DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53174;
DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53175;
DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53176;

View File

@ -0,0 +1,4 @@