[ 2609057 ] Co Product functionality
http://sourceforge.net/tracker/index.php?func=detail&aid=2609057&group_id=176962&atid=934929 Implement CostAllocationPerc functionality: in a lot of cases cost absorption of the co-product is not the same as bom qty. In this case we need in bom line another field which is the cost absorption percent (from 0 to 100) which specify the absorption percent.
This commit is contained in:
parent
bc494f56d2
commit
b1bcc04a0a
|
@ -104,6 +104,21 @@ public interface I_PP_Order_BOMLine
|
|||
*/
|
||||
public String getBackflushGroup();
|
||||
|
||||
/** 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 ComponentType */
|
||||
public static final String COLUMNNAME_ComponentType = "ComponentType";
|
||||
|
||||
|
@ -117,6 +132,19 @@ public interface I_PP_Order_BOMLine
|
|||
*/
|
||||
public String getComponentType();
|
||||
|
||||
/** Column name CostAllocationPerc */
|
||||
public static final String COLUMNNAME_CostAllocationPerc = "CostAllocationPerc";
|
||||
|
||||
/** Set Cost Allocation Percent.
|
||||
* Cost allocation percent in case of a co-product.
|
||||
*/
|
||||
public void setCostAllocationPerc (BigDecimal CostAllocationPerc);
|
||||
|
||||
/** Get Cost Allocation Percent.
|
||||
* Cost allocation percent in case of a co-product.
|
||||
*/
|
||||
public BigDecimal getCostAllocationPerc();
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
|
@ -133,21 +161,6 @@ public interface I_PP_Order_BOMLine
|
|||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** 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 DateDelivered */
|
||||
public static final String COLUMNNAME_DateDelivered = "DateDelivered";
|
||||
|
||||
|
|
|
@ -89,6 +89,21 @@ public interface I_PP_Product_BOMLine
|
|||
*/
|
||||
public String getBackflushGroup();
|
||||
|
||||
/** 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 ComponentType */
|
||||
public static final String COLUMNNAME_ComponentType = "ComponentType";
|
||||
|
||||
|
@ -102,6 +117,19 @@ public interface I_PP_Product_BOMLine
|
|||
*/
|
||||
public String getComponentType();
|
||||
|
||||
/** Column name CostAllocationPerc */
|
||||
public static final String COLUMNNAME_CostAllocationPerc = "CostAllocationPerc";
|
||||
|
||||
/** Set Cost Allocation Percent.
|
||||
* Cost allocation percent in case of a co-product.
|
||||
*/
|
||||
public void setCostAllocationPerc (BigDecimal CostAllocationPerc);
|
||||
|
||||
/** Get Cost Allocation Percent.
|
||||
* Cost allocation percent in case of a co-product.
|
||||
*/
|
||||
public BigDecimal getCostAllocationPerc();
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
|
@ -118,21 +146,6 @@ public interface I_PP_Product_BOMLine
|
|||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** 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 Description */
|
||||
public static final String COLUMNNAME_Description = "Description";
|
||||
|
||||
|
|
|
@ -219,15 +219,23 @@ public class MPPProductBOMLine extends X_PP_Product_BOMLine
|
|||
}
|
||||
|
||||
/**
|
||||
* @param fallback use QtyBOM/QtyPercentage if CostAllocationPerc is zero
|
||||
* @return co-product cost allocation percent (i.e. -1/qty)
|
||||
*/
|
||||
public BigDecimal getCostAllocationPerc()
|
||||
public BigDecimal getCostAllocationPerc(boolean fallback)
|
||||
{
|
||||
BigDecimal qty = getQty(false).negate();
|
||||
BigDecimal allocationPercent = Env.ZERO;
|
||||
if (qty.signum() != 0)
|
||||
BigDecimal allocationPercent = super.getCostAllocationPerc();
|
||||
if (allocationPercent.signum() != 0)
|
||||
return allocationPercent;
|
||||
//
|
||||
// Fallback and try to calculate it from Qty
|
||||
if (fallback)
|
||||
{
|
||||
allocationPercent = Env.ONE.divide(qty, 4, RoundingMode.HALF_UP);
|
||||
BigDecimal qty = getQty(false).negate();
|
||||
if (qty.signum() != 0)
|
||||
{
|
||||
allocationPercent = Env.ONE.divide(qty, 4, RoundingMode.HALF_UP);
|
||||
}
|
||||
}
|
||||
return allocationPercent;
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ public class X_PP_Order_BOMLine extends PO implements I_PP_Order_BOMLine, I_Pers
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20090915L;
|
||||
private static final long serialVersionUID = 20091125L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_PP_Order_BOMLine (Properties ctx, int PP_Order_BOMLine_ID, String trxName)
|
||||
|
@ -157,6 +157,34 @@ public class X_PP_Order_BOMLine extends PO implements I_PP_Order_BOMLine, I_Pers
|
|||
return (String)get_Value(COLUMNNAME_BackflushGroup);
|
||||
}
|
||||
|
||||
public I_C_UOM getC_UOM() throws RuntimeException
|
||||
{
|
||||
return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name)
|
||||
.getPO(getC_UOM_ID(), get_TrxName()); }
|
||||
|
||||
/** Set UOM.
|
||||
@param C_UOM_ID
|
||||
Unit of Measure
|
||||
*/
|
||||
public void setC_UOM_ID (int C_UOM_ID)
|
||||
{
|
||||
if (C_UOM_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_C_UOM_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID));
|
||||
}
|
||||
|
||||
/** Get UOM.
|
||||
@return Unit of Measure
|
||||
*/
|
||||
public int getC_UOM_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** ComponentType AD_Reference_ID=53225 */
|
||||
public static final int COMPONENTTYPE_AD_Reference_ID=53225;
|
||||
/** By-Product = BY */
|
||||
|
@ -195,32 +223,24 @@ public class X_PP_Order_BOMLine extends PO implements I_PP_Order_BOMLine, I_Pers
|
|||
return (String)get_Value(COLUMNNAME_ComponentType);
|
||||
}
|
||||
|
||||
public I_C_UOM getC_UOM() throws RuntimeException
|
||||
{
|
||||
return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name)
|
||||
.getPO(getC_UOM_ID(), get_TrxName()); }
|
||||
|
||||
/** Set UOM.
|
||||
@param C_UOM_ID
|
||||
Unit of Measure
|
||||
/** Set Cost Allocation Percent.
|
||||
@param CostAllocationPerc
|
||||
Cost allocation percent in case of a co-product.
|
||||
*/
|
||||
public void setC_UOM_ID (int C_UOM_ID)
|
||||
public void setCostAllocationPerc (BigDecimal CostAllocationPerc)
|
||||
{
|
||||
if (C_UOM_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_C_UOM_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID));
|
||||
set_Value (COLUMNNAME_CostAllocationPerc, CostAllocationPerc);
|
||||
}
|
||||
|
||||
/** Get UOM.
|
||||
@return Unit of Measure
|
||||
/** Get Cost Allocation Percent.
|
||||
@return Cost allocation percent in case of a co-product.
|
||||
*/
|
||||
public int getC_UOM_ID ()
|
||||
public BigDecimal getCostAllocationPerc ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostAllocationPerc);
|
||||
if (bd == null)
|
||||
return Env.ZERO;
|
||||
return bd;
|
||||
}
|
||||
|
||||
/** Set Date Delivered.
|
||||
|
|
|
@ -34,7 +34,7 @@ public class X_PP_Product_BOMLine extends PO implements I_PP_Product_BOMLine, I_
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20090915L;
|
||||
private static final long serialVersionUID = 20091125L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_PP_Product_BOMLine (Properties ctx, int PP_Product_BOMLine_ID, String trxName)
|
||||
|
@ -119,6 +119,34 @@ public class X_PP_Product_BOMLine extends PO implements I_PP_Product_BOMLine, I_
|
|||
return (String)get_Value(COLUMNNAME_BackflushGroup);
|
||||
}
|
||||
|
||||
public I_C_UOM getC_UOM() throws RuntimeException
|
||||
{
|
||||
return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name)
|
||||
.getPO(getC_UOM_ID(), get_TrxName()); }
|
||||
|
||||
/** Set UOM.
|
||||
@param C_UOM_ID
|
||||
Unit of Measure
|
||||
*/
|
||||
public void setC_UOM_ID (int C_UOM_ID)
|
||||
{
|
||||
if (C_UOM_ID < 1)
|
||||
set_Value (COLUMNNAME_C_UOM_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID));
|
||||
}
|
||||
|
||||
/** Get UOM.
|
||||
@return Unit of Measure
|
||||
*/
|
||||
public int getC_UOM_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** ComponentType AD_Reference_ID=53225 */
|
||||
public static final int COMPONENTTYPE_AD_Reference_ID=53225;
|
||||
/** By-Product = BY */
|
||||
|
@ -157,32 +185,24 @@ public class X_PP_Product_BOMLine extends PO implements I_PP_Product_BOMLine, I_
|
|||
return (String)get_Value(COLUMNNAME_ComponentType);
|
||||
}
|
||||
|
||||
public I_C_UOM getC_UOM() throws RuntimeException
|
||||
{
|
||||
return (I_C_UOM)MTable.get(getCtx(), I_C_UOM.Table_Name)
|
||||
.getPO(getC_UOM_ID(), get_TrxName()); }
|
||||
|
||||
/** Set UOM.
|
||||
@param C_UOM_ID
|
||||
Unit of Measure
|
||||
/** Set Cost Allocation Percent.
|
||||
@param CostAllocationPerc
|
||||
Cost allocation percent in case of a co-product.
|
||||
*/
|
||||
public void setC_UOM_ID (int C_UOM_ID)
|
||||
public void setCostAllocationPerc (BigDecimal CostAllocationPerc)
|
||||
{
|
||||
if (C_UOM_ID < 1)
|
||||
set_Value (COLUMNNAME_C_UOM_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID));
|
||||
set_Value (COLUMNNAME_CostAllocationPerc, CostAllocationPerc);
|
||||
}
|
||||
|
||||
/** Get UOM.
|
||||
@return Unit of Measure
|
||||
/** Get Cost Allocation Percent.
|
||||
@return Cost allocation percent in case of a co-product.
|
||||
*/
|
||||
public int getC_UOM_ID ()
|
||||
public BigDecimal getCostAllocationPerc ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostAllocationPerc);
|
||||
if (bd == null)
|
||||
return Env.ZERO;
|
||||
return bd;
|
||||
}
|
||||
|
||||
/** Set Description.
|
||||
|
|
|
@ -0,0 +1,100 @@
|
|||
-- Nov 25, 2009 12:00:09 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,54077,0,'CostAllocationPerc',TO_DATE('2009-11-25 12:00:05','YYYY-MM-DD HH24:MI:SS'),0,'Cost allocation percent in case of a co-product.','EE01','Y','Cost Allocation Percent','Allocation%',TO_DATE('2009-11-25 12:00:05','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:00:10 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=54077 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:04:23 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
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,DefaultValue,Description,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,ValueMax,ValueMin,Version) VALUES (0,58594,54077,0,22,53025,'CostAllocationPerc',TO_DATE('2009-11-25 12:04:22','YYYY-MM-DD HH24:MI:SS'),0,'0','Cost allocation percent in case of a co-product.','EE01',22,'Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Cost Allocation Percent',0,TO_DATE('2009-11-25 12:04:22','YYYY-MM-DD HH24:MI:SS'),0,'100','0',0)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:04:23 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
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=58594 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)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:04:41 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
ALTER TABLE PP_Order_BOMLine ADD CostAllocationPerc NUMBER DEFAULT 0
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:05:43 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
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,DefaultValue,Description,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,ValueMax,ValueMin,Version) VALUES (0,58595,54077,0,22,53019,'CostAllocationPerc',TO_DATE('2009-11-25 12:05:42','YYYY-MM-DD HH24:MI:SS'),0,'0','Cost allocation percent in case of a co-product.','EE01',22,'Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Cost Allocation Percent',0,TO_DATE('2009-11-25 12:05:42','YYYY-MM-DD HH24:MI:SS'),0,'100','0',0)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:05:43 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
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=58595 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)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:05:45 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
ALTER TABLE PP_Product_BOMLine ADD CostAllocationPerc NUMBER DEFAULT 0
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:50:21 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,58595,58081,0,53029,TO_DATE('2009-11-25 12:50:20','YYYY-MM-DD HH24:MI:SS'),0,'Cost allocation percent in case of a co-product.',22,'EE01','Y','Y','Y','N','N','N','N','N','Cost Allocation Percent',TO_DATE('2009-11-25 12:50:20','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:50:21 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
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=58081 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)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=58081
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=53502
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=53501
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=53503
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=53505
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=53504
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=53495
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=53506
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=53481
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:55:34 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET DisplayLength=10, DisplayLogic='@ComponentType@=CP',Updated=TO_DATE('2009-11-25 12:55:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=58081
|
||||
;
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
-- Nov 25, 2009 12:00:09 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,54077,0,'CostAllocationPerc',TO_TIMESTAMP('2009-11-25 12:00:05','YYYY-MM-DD HH24:MI:SS'),0,'Cost allocation percent in case of a co-product.','EE01','Y','Cost Allocation Percent','Allocation%',TO_TIMESTAMP('2009-11-25 12:00:05','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:00:10 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=54077 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:04:23 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
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,DefaultValue,Description,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,ValueMax,ValueMin,Version) VALUES (0,58594,54077,0,22,53025,'CostAllocationPerc',TO_TIMESTAMP('2009-11-25 12:04:22','YYYY-MM-DD HH24:MI:SS'),0,'0','Cost allocation percent in case of a co-product.','EE01',22,'Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Cost Allocation Percent',0,TO_TIMESTAMP('2009-11-25 12:04:22','YYYY-MM-DD HH24:MI:SS'),0,'100','0',0)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:04:23 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
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=58594 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)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:04:41 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
ALTER TABLE PP_Order_BOMLine ADD COLUMN CostAllocationPerc NUMERIC DEFAULT '0'
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:05:43 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
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,DefaultValue,Description,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,ValueMax,ValueMin,Version) VALUES (0,58595,54077,0,22,53019,'CostAllocationPerc',TO_TIMESTAMP('2009-11-25 12:05:42','YYYY-MM-DD HH24:MI:SS'),0,'0','Cost allocation percent in case of a co-product.','EE01',22,'Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Cost Allocation Percent',0,TO_TIMESTAMP('2009-11-25 12:05:42','YYYY-MM-DD HH24:MI:SS'),0,'100','0',0)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:05:43 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
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=58595 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)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:05:45 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
ALTER TABLE PP_Product_BOMLine ADD COLUMN CostAllocationPerc NUMERIC DEFAULT '0'
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:50:21 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,58595,58081,0,53029,TO_TIMESTAMP('2009-11-25 12:50:20','YYYY-MM-DD HH24:MI:SS'),0,'Cost allocation percent in case of a co-product.',22,'EE01','Y','Y','Y','N','N','N','N','N','Cost Allocation Percent',TO_TIMESTAMP('2009-11-25 12:50:20','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:50:21 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
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=58081 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)
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=58081
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=53502
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=53501
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=53503
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=53505
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=53504
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=53495
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=53506
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:54:37 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=53481
|
||||
;
|
||||
|
||||
-- Nov 25, 2009 12:55:34 PM EET
|
||||
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
|
||||
UPDATE AD_Field SET DisplayLength=10, DisplayLogic='@ComponentType@=CP',Updated=TO_TIMESTAMP('2009-11-25 12:55:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=58081
|
||||
;
|
||||
|
Loading…
Reference in New Issue