Error when try change the shipper

kind regards
Victor Perez
www.e-evolution.com
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=3005557
This commit is contained in:
vpj-cd 2010-05-22 01:10:28 +00:00
parent b1293b3292
commit 9bfac64a62
5 changed files with 467 additions and 206 deletions

View File

@ -50,19 +50,6 @@ public interface I_DD_OrderLine
*/
public int getAD_Client_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_OrgTrx_ID */
public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID";
@ -76,6 +63,19 @@ public interface I_DD_OrderLine
*/
public int getAD_OrgTrx_ID();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
/** Set Organización.
* Organizational entity within client
*/
public void setAD_Org_ID (int AD_Org_ID);
/** Get Organización.
* Organizational entity within client
*/
public int getAD_Org_ID();
/** Column name C_Activity_ID */
public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID";
@ -121,19 +121,6 @@ public interface I_DD_OrderLine
public I_C_Charge getC_Charge() throws RuntimeException;
/** Column name ConfirmedQty */
public static final String COLUMNNAME_ConfirmedQty = "ConfirmedQty";
/** Set Confirmed Quantity.
* Confirmation of a received quantity
*/
public void setConfirmedQty (BigDecimal ConfirmedQty);
/** Get Confirmed Quantity.
* Confirmation of a received quantity
*/
public BigDecimal getConfirmedQty();
/** Column name C_Project_ID */
public static final String COLUMNNAME_C_Project_ID = "C_Project_ID";
@ -149,6 +136,34 @@ public interface I_DD_OrderLine
public I_C_Project getC_Project() throws RuntimeException;
/** Column name C_UOM_ID */
public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID";
/** Set UOM.
* Unit of Measure
*/
public void setC_UOM_ID (int C_UOM_ID);
/** Get UOM.
* Unit of Measure
*/
public int getC_UOM_ID();
public I_C_UOM getC_UOM() throws RuntimeException;
/** Column name ConfirmedQty */
public static final String COLUMNNAME_ConfirmedQty = "ConfirmedQty";
/** Set Confirmed Quantity.
* Confirmation of a received quantity
*/
public void setConfirmedQty (BigDecimal ConfirmedQty);
/** Get Confirmed Quantity.
* Confirmation of a received quantity
*/
public BigDecimal getConfirmedQty();
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
@ -165,20 +180,25 @@ public interface I_DD_OrderLine
*/
public int getCreatedBy();
/** Column name C_UOM_ID */
public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID";
/** Column name DD_OrderLine_ID */
public static final String COLUMNNAME_DD_OrderLine_ID = "DD_OrderLine_ID";
/** Set UOM.
* Unit of Measure
*/
public void setC_UOM_ID (int C_UOM_ID);
/** Set Distribution Order Line */
public void setDD_OrderLine_ID (int DD_OrderLine_ID);
/** Get UOM.
* Unit of Measure
*/
public int getC_UOM_ID();
/** Get Distribution Order Line */
public int getDD_OrderLine_ID();
public I_C_UOM getC_UOM() throws RuntimeException;
/** Column name DD_Order_ID */
public static final String COLUMNNAME_DD_Order_ID = "DD_Order_ID";
/** Set Distribution Order */
public void setDD_Order_ID (int DD_Order_ID);
/** Get Distribution Order */
public int getDD_Order_ID();
public org.eevolution.model.I_DD_Order getDD_Order() throws RuntimeException;
/** Column name DateDelivered */
public static final String COLUMNNAME_DateDelivered = "DateDelivered";
@ -219,35 +239,15 @@ public interface I_DD_OrderLine
*/
public Timestamp getDatePromised();
/** Column name DD_Order_ID */
public static final String COLUMNNAME_DD_Order_ID = "DD_Order_ID";
/** Set Distribution Order */
public void setDD_Order_ID (int DD_Order_ID);
/** Get Distribution Order */
public int getDD_Order_ID();
public org.eevolution.model.I_DD_Order getDD_Order() throws RuntimeException;
/** Column name DD_OrderLine_ID */
public static final String COLUMNNAME_DD_OrderLine_ID = "DD_OrderLine_ID";
/** Set Distribution Order Line */
public void setDD_OrderLine_ID (int DD_OrderLine_ID);
/** Get Distribution Order Line */
public int getDD_OrderLine_ID();
/** Column name Description */
public static final String COLUMNNAME_Description = "Description";
/** Set Description.
/** Set Descripción.
* Optional short description of the record
*/
public void setDescription (String Description);
/** Get Description.
/** Get Descripción.
* Optional short description of the record
*/
public String getDescription();
@ -330,21 +330,6 @@ public interface I_DD_OrderLine
*/
public BigDecimal getLineNetAmt();
/** Column name M_AttributeSetInstance_ID */
public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID";
/** Set Attribute Set Instance.
* Product Attribute Set Instance
*/
public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID);
/** Get Attribute Set Instance.
* Product Attribute Set Instance
*/
public int getM_AttributeSetInstance_ID();
public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException;
/** Column name M_AttributeSetInstanceTo_ID */
public static final String COLUMNNAME_M_AttributeSetInstanceTo_ID = "M_AttributeSetInstanceTo_ID";
@ -360,20 +345,20 @@ public interface I_DD_OrderLine
public I_M_AttributeSetInstance getM_AttributeSetInstanceTo() throws RuntimeException;
/** Column name M_Locator_ID */
public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID";
/** Column name M_AttributeSetInstance_ID */
public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID";
/** Set Locator.
* Warehouse Locator
/** Set Attribute Set Instance.
* Product Attribute Set Instance
*/
public void setM_Locator_ID (int M_Locator_ID);
public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID);
/** Get Locator.
* Warehouse Locator
/** Get Attribute Set Instance.
* Product Attribute Set Instance
*/
public int getM_Locator_ID();
public int getM_AttributeSetInstance_ID();
public I_M_Locator getM_Locator() throws RuntimeException;
public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException;
/** Column name M_LocatorTo_ID */
public static final String COLUMNNAME_M_LocatorTo_ID = "M_LocatorTo_ID";
@ -390,6 +375,21 @@ public interface I_DD_OrderLine
public I_M_Locator getM_LocatorTo() throws RuntimeException;
/** Column name M_Locator_ID */
public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID";
/** Set Locator.
* Warehouse Locator
*/
public void setM_Locator_ID (int M_Locator_ID);
/** Get Locator.
* Warehouse Locator
*/
public int getM_Locator_ID();
public I_M_Locator getM_Locator() throws RuntimeException;
/** Column name M_Product_ID */
public static final String COLUMNNAME_M_Product_ID = "M_Product_ID";
@ -405,6 +405,21 @@ public interface I_DD_OrderLine
public I_M_Product getM_Product() throws RuntimeException;
/** Column name M_Shipper_ID */
public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID";
/** Set Shipper.
* Method or manner of product delivery
*/
public void setM_Shipper_ID (int M_Shipper_ID);
/** Get Shipper.
* Method or manner of product delivery
*/
public int getM_Shipper_ID();
public I_M_Shipper getM_Shipper() throws RuntimeException;
/** Column name PickedQty */
public static final String COLUMNNAME_PickedQty = "PickedQty";
@ -559,4 +574,34 @@ public interface I_DD_OrderLine
public int getUser2_ID();
public I_C_ElementValue getUser2() throws RuntimeException;
/** Column name User3_ID */
public static final String COLUMNNAME_User3_ID = "User3_ID";
/** Set User List 3.
* User defined list element #3
*/
public void setUser3_ID (int User3_ID);
/** Get User List 3.
* User defined list element #3
*/
public int getUser3_ID();
public I_C_ElementValue getUser3() throws RuntimeException;
/** Column name User4_ID */
public static final String COLUMNNAME_User4_ID = "User4_ID";
/** Set User List 4.
* User defined list element #4
*/
public void setUser4_ID (int User4_ID);
/** Get User List 4.
* User defined list element #4
*/
public int getUser4_ID();
public I_C_ElementValue getUser4() throws RuntimeException;
}

View File

@ -689,13 +689,17 @@ public class MDDOrder extends X_DD_Order implements DocAction
{
if (is_ValueChanged(columnName))
{
String sql = "UPDATE DD_OrderLine ol"
+ " SET " + columnName + " ="
+ "(SELECT " + columnName
+ " FROM DD_Order o WHERE ol.DD_Order_ID=o.DD_Order_ID) "
+ "WHERE DD_Order_ID=" + getDD_Order_ID();
int no = DB.executeUpdate(sql, get_TrxName());
log.fine(columnName + " Lines -> #" + no);
final String whereClause = I_DD_Order.COLUMNNAME_DD_Order_ID + "=?";
List<MDDOrderLine> lines = new Query (getCtx(), I_DD_OrderLine.Table_Name, whereClause, get_TrxName())
.setParameters(getDD_Order_ID())
.list();
for (MDDOrderLine line : lines)
{
line.set_ValueOfColumn(columnName, get_Value(columnName));
line.saveEx();
log.fine(columnName + " Lines -> #" + get_Value(columnName));
}
}
} // afterSaveSync

View File

@ -34,7 +34,7 @@ public class X_DD_OrderLine extends PO implements I_DD_OrderLine, I_Persistent
/**
*
*/
private static final long serialVersionUID = 20090915L;
private static final long serialVersionUID = 20100521L;
/** Standard Constructor */
public X_DD_OrderLine (Properties ctx, int DD_OrderLine_ID, String trxName)
@ -44,22 +44,20 @@ public class X_DD_OrderLine extends PO implements I_DD_OrderLine, I_Persistent
{
setC_UOM_ID (0);
// @#C_UOM_ID@
setDD_Order_ID (0);
setDD_OrderLine_ID (0);
setDD_Order_ID (0);
setIsDescription (false);
// N
setIsInvoiced (false);
setLine (0);
// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM DD_OrderLine WHERE DD_OrderLine_ID=@DD_Order_ID@
setM_Locator_ID (0);
// @M_Locator_ID@
// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM DD_OrderLine WHERE DD_Order_ID=@DD_Order_ID@
setM_LocatorTo_ID (0);
// @M_LocatorTo_ID@
setM_Locator_ID (0);
// @M_Locator_ID@
setProcessed (false);
setQtyEntered (Env.ZERO);
// 1
setQtyOrdered (Env.ZERO);
// 1
} */
}
@ -198,26 +196,6 @@ public class X_DD_OrderLine extends PO implements I_DD_OrderLine, I_Persistent
return ii.intValue();
}
/** Set Confirmed Quantity.
@param ConfirmedQty
Confirmation of a received quantity
*/
public void setConfirmedQty (BigDecimal ConfirmedQty)
{
set_Value (COLUMNNAME_ConfirmedQty, ConfirmedQty);
}
/** Get Confirmed Quantity.
@return Confirmation of a received quantity
*/
public BigDecimal getConfirmedQty ()
{
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ConfirmedQty);
if (bd == null)
return Env.ZERO;
return bd;
}
public I_C_Project getC_Project() throws RuntimeException
{
return (I_C_Project)MTable.get(getCtx(), I_C_Project.Table_Name)
@ -274,6 +252,71 @@ public class X_DD_OrderLine extends PO implements I_DD_OrderLine, I_Persistent
return ii.intValue();
}
/** Set Confirmed Quantity.
@param ConfirmedQty
Confirmation of a received quantity
*/
public void setConfirmedQty (BigDecimal ConfirmedQty)
{
set_Value (COLUMNNAME_ConfirmedQty, ConfirmedQty);
}
/** Get Confirmed Quantity.
@return Confirmation of a received quantity
*/
public BigDecimal getConfirmedQty ()
{
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ConfirmedQty);
if (bd == null)
return Env.ZERO;
return bd;
}
/** Set Distribution Order Line.
@param DD_OrderLine_ID Distribution Order Line */
public void setDD_OrderLine_ID (int DD_OrderLine_ID)
{
if (DD_OrderLine_ID < 1)
set_ValueNoCheck (COLUMNNAME_DD_OrderLine_ID, null);
else
set_ValueNoCheck (COLUMNNAME_DD_OrderLine_ID, Integer.valueOf(DD_OrderLine_ID));
}
/** Get Distribution Order Line.
@return Distribution Order Line */
public int getDD_OrderLine_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_DD_OrderLine_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public org.eevolution.model.I_DD_Order getDD_Order() throws RuntimeException
{
return (org.eevolution.model.I_DD_Order)MTable.get(getCtx(), org.eevolution.model.I_DD_Order.Table_Name)
.getPO(getDD_Order_ID(), get_TrxName()); }
/** Set Distribution Order.
@param DD_Order_ID Distribution Order */
public void setDD_Order_ID (int DD_Order_ID)
{
if (DD_Order_ID < 1)
set_ValueNoCheck (COLUMNNAME_DD_Order_ID, null);
else
set_ValueNoCheck (COLUMNNAME_DD_Order_ID, Integer.valueOf(DD_Order_ID));
}
/** Get Distribution Order.
@return Distribution Order */
public int getDD_Order_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_DD_Order_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Date Delivered.
@param DateDelivered
Date when the product was delivered
@ -325,52 +368,7 @@ public class X_DD_OrderLine extends PO implements I_DD_OrderLine, I_Persistent
return (Timestamp)get_Value(COLUMNNAME_DatePromised);
}
public org.eevolution.model.I_DD_Order getDD_Order() throws RuntimeException
{
return (org.eevolution.model.I_DD_Order)MTable.get(getCtx(), org.eevolution.model.I_DD_Order.Table_Name)
.getPO(getDD_Order_ID(), get_TrxName()); }
/** Set Distribution Order.
@param DD_Order_ID Distribution Order */
public void setDD_Order_ID (int DD_Order_ID)
{
if (DD_Order_ID < 1)
set_ValueNoCheck (COLUMNNAME_DD_Order_ID, null);
else
set_ValueNoCheck (COLUMNNAME_DD_Order_ID, Integer.valueOf(DD_Order_ID));
}
/** Get Distribution Order.
@return Distribution Order */
public int getDD_Order_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_DD_Order_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Distribution Order Line.
@param DD_OrderLine_ID Distribution Order Line */
public void setDD_OrderLine_ID (int DD_OrderLine_ID)
{
if (DD_OrderLine_ID < 1)
set_ValueNoCheck (COLUMNNAME_DD_OrderLine_ID, null);
else
set_ValueNoCheck (COLUMNNAME_DD_OrderLine_ID, Integer.valueOf(DD_OrderLine_ID));
}
/** Get Distribution Order Line.
@return Distribution Order Line */
public int getDD_OrderLine_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_DD_OrderLine_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Description.
/** Set Descripción.
@param Description
Optional short description of the record
*/
@ -379,7 +377,7 @@ public class X_DD_OrderLine extends PO implements I_DD_OrderLine, I_Persistent
set_Value (COLUMNNAME_Description, Description);
}
/** Get Description.
/** Get Descripción.
@return Optional short description of the record
*/
public String getDescription ()
@ -503,34 +501,6 @@ public class X_DD_OrderLine extends PO implements I_DD_OrderLine, I_Persistent
return bd;
}
public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException
{
return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name)
.getPO(getM_AttributeSetInstance_ID(), get_TrxName()); }
/** Set Attribute Set Instance.
@param M_AttributeSetInstance_ID
Product Attribute Set Instance
*/
public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID)
{
if (M_AttributeSetInstance_ID < 0)
set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null);
else
set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID));
}
/** Get Attribute Set Instance.
@return Product Attribute Set Instance
*/
public int getM_AttributeSetInstance_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_M_AttributeSetInstance getM_AttributeSetInstanceTo() throws RuntimeException
{
return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name)
@ -559,29 +529,29 @@ public class X_DD_OrderLine extends PO implements I_DD_OrderLine, I_Persistent
return ii.intValue();
}
public I_M_Locator getM_Locator() throws RuntimeException
public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException
{
return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name)
.getPO(getM_Locator_ID(), get_TrxName()); }
return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name)
.getPO(getM_AttributeSetInstance_ID(), get_TrxName()); }
/** Set Locator.
@param M_Locator_ID
Warehouse Locator
/** Set Attribute Set Instance.
@param M_AttributeSetInstance_ID
Product Attribute Set Instance
*/
public void setM_Locator_ID (int M_Locator_ID)
public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID)
{
if (M_Locator_ID < 1)
set_Value (COLUMNNAME_M_Locator_ID, null);
if (M_AttributeSetInstance_ID < 0)
set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null);
else
set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID));
set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID));
}
/** Get Locator.
@return Warehouse Locator
/** Get Attribute Set Instance.
@return Product Attribute Set Instance
*/
public int getM_Locator_ID ()
public int getM_AttributeSetInstance_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID);
Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID);
if (ii == null)
return 0;
return ii.intValue();
@ -615,6 +585,34 @@ public class X_DD_OrderLine extends PO implements I_DD_OrderLine, I_Persistent
return ii.intValue();
}
public I_M_Locator getM_Locator() throws RuntimeException
{
return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_Name)
.getPO(getM_Locator_ID(), get_TrxName()); }
/** Set Locator.
@param M_Locator_ID
Warehouse Locator
*/
public void setM_Locator_ID (int M_Locator_ID)
{
if (M_Locator_ID < 1)
set_Value (COLUMNNAME_M_Locator_ID, null);
else
set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID));
}
/** Get Locator.
@return Warehouse Locator
*/
public int getM_Locator_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_M_Product getM_Product() throws RuntimeException
{
return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name)
@ -643,6 +641,34 @@ public class X_DD_OrderLine extends PO implements I_DD_OrderLine, I_Persistent
return ii.intValue();
}
public I_M_Shipper getM_Shipper() throws RuntimeException
{
return (I_M_Shipper)MTable.get(getCtx(), I_M_Shipper.Table_Name)
.getPO(getM_Shipper_ID(), get_TrxName()); }
/** Set Shipper.
@param M_Shipper_ID
Method or manner of product delivery
*/
public void setM_Shipper_ID (int M_Shipper_ID)
{
if (M_Shipper_ID < 1)
set_Value (COLUMNNAME_M_Shipper_ID, null);
else
set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID));
}
/** Get Shipper.
@return Method or manner of product delivery
*/
public int getM_Shipper_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipper_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Picked Quantity.
@param PickedQty Picked Quantity */
public void setPickedQty (BigDecimal PickedQty)
@ -876,4 +902,60 @@ public class X_DD_OrderLine extends PO implements I_DD_OrderLine, I_Persistent
return 0;
return ii.intValue();
}
public I_C_ElementValue getUser3() throws RuntimeException
{
return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name)
.getPO(getUser3_ID(), get_TrxName()); }
/** Set User List 3.
@param User3_ID
User defined list element #3
*/
public void setUser3_ID (int User3_ID)
{
if (User3_ID < 1)
set_Value (COLUMNNAME_User3_ID, null);
else
set_Value (COLUMNNAME_User3_ID, Integer.valueOf(User3_ID));
}
/** Get User List 3.
@return User defined list element #3
*/
public int getUser3_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_User3_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_C_ElementValue getUser4() throws RuntimeException
{
return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name)
.getPO(getUser4_ID(), get_TrxName()); }
/** Set User List 4.
@param User4_ID
User defined list element #4
*/
public void setUser4_ID (int User4_ID)
{
if (User4_ID < 1)
set_Value (COLUMNNAME_User4_ID, null);
else
set_Value (COLUMNNAME_User4_ID, Integer.valueOf(User4_ID));
}
/** Get User List 4.
@return User defined list element #4
*/
public int getUser4_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_User4_ID);
if (ii == null)
return 0;
return ii.intValue();
}
}

View File

@ -0,0 +1,65 @@
-- May 21, 2010 6:20:05 PM CDT
-- Distribution Order
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,59192,455,0,30,53038,'M_Shipper_ID',TO_DATE('2010-05-21 18:20:02','YYYY-MM-DD HH24:MI:SS'),0,'Method or manner of product delivery','EE01',22,'The Shipper indicates the method of delivering product','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Shipper',0,TO_DATE('2010-05-21 18:20:02','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- May 21, 2010 6:20:05 PM CDT
-- Distribution Order
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=59192 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- May 21, 2010 6:20:08 PM CDT
-- Distribution Order
ALTER TABLE DD_OrderLine ADD M_Shipper_ID NUMBER(10) DEFAULT NULL
;
-- May 21, 2010 6:26:01 PM CDT
-- Distribution Order
INSERT INTO AD_Val_Rule (AD_Client_ID,AD_Org_ID,AD_Val_Rule_ID,Code,Created,CreatedBy,EntityType,IsActive,Name,Type,Updated,UpdatedBy) VALUES (0,0,52084,'DD_OrderLine.DD_Order_ID=@DD_Order_ID@',TO_DATE('2010-05-21 18:26:00','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','DD_OrderLine of Order','S',TO_DATE('2010-05-21 18:26:00','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 21, 2010 6:26:12 PM CDT
-- Distribution Order
UPDATE AD_Column SET AD_Val_Rule_ID=52084,Updated=TO_DATE('2010-05-21 18:26:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53968
;
-- May 21, 2010 6:27:39 PM CDT
-- Distribution Order
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,59192,58881,0,53050,TO_DATE('2010-05-21 18:27:36','YYYY-MM-DD HH24:MI:SS'),0,'Method or manner of product delivery',22,'EE01','The Shipper indicates the method of delivering product','Y','Y','Y','N','N','N','N','N','Shipper',TO_DATE('2010-05-21 18:27:36','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 21, 2010 6:27:39 PM CDT
-- Distribution Order
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=58881 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- May 21, 2010 6:27:49 PM CDT
-- Distribution Order
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=58881
;
-- May 21, 2010 6:27:49 PM CDT
-- Distribution Order
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54036
;
-- May 21, 2010 6:27:49 PM CDT
-- Distribution Order
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54037
;
-- May 21, 2010 6:27:49 PM CDT
-- Distribution Order
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54038
;
-- May 21, 2010 6:27:49 PM CDT
-- Distribution Order
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=54039
;
-- May 21, 2010 6:28:11 PM CDT
-- Distribution Order
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2010-05-21 18:28:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=58881
;

View File

@ -0,0 +1,65 @@
-- May 21, 2010 6:20:05 PM CDT
-- Distribution Order
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,59192,455,0,30,53038,'M_Shipper_ID',TO_TIMESTAMP('2010-05-21 18:20:02','YYYY-MM-DD HH24:MI:SS'),0,'Method or manner of product delivery','EE01',22,'The Shipper indicates the method of delivering product','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Shipper',0,TO_TIMESTAMP('2010-05-21 18:20:02','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- May 21, 2010 6:20:05 PM CDT
-- Distribution Order
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=59192 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- May 21, 2010 6:20:08 PM CDT
-- Distribution Order
ALTER TABLE DD_OrderLine ADD COLUMN M_Shipper_ID NUMERIC(10) DEFAULT NULL
;
-- May 21, 2010 6:26:01 PM CDT
-- Distribution Order
INSERT INTO AD_Val_Rule (AD_Client_ID,AD_Org_ID,AD_Val_Rule_ID,Code,Created,CreatedBy,EntityType,IsActive,Name,Type,Updated,UpdatedBy) VALUES (0,0,52084,'DD_OrderLine.DD_Order_ID=@DD_Order_ID@',TO_TIMESTAMP('2010-05-21 18:26:00','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','DD_OrderLine of Order','S',TO_TIMESTAMP('2010-05-21 18:26:00','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 21, 2010 6:26:12 PM CDT
-- Distribution Order
UPDATE AD_Column SET AD_Val_Rule_ID=52084,Updated=TO_TIMESTAMP('2010-05-21 18:26:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53968
;
-- May 21, 2010 6:27:39 PM CDT
-- Distribution Order
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,59192,58881,0,53050,TO_TIMESTAMP('2010-05-21 18:27:36','YYYY-MM-DD HH24:MI:SS'),0,'Method or manner of product delivery',22,'EE01','The Shipper indicates the method of delivering product','Y','Y','Y','N','N','N','N','N','Shipper',TO_TIMESTAMP('2010-05-21 18:27:36','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 21, 2010 6:27:39 PM CDT
-- Distribution Order
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=58881 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- May 21, 2010 6:27:49 PM CDT
-- Distribution Order
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=58881
;
-- May 21, 2010 6:27:49 PM CDT
-- Distribution Order
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54036
;
-- May 21, 2010 6:27:49 PM CDT
-- Distribution Order
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54037
;
-- May 21, 2010 6:27:49 PM CDT
-- Distribution Order
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54038
;
-- May 21, 2010 6:27:49 PM CDT
-- Distribution Order
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=54039
;
-- May 21, 2010 6:28:11 PM CDT
-- Distribution Order
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2010-05-21 18:28:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=58881
;