2871676 New Fin Report Amount types
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2871676
This commit is contained in:
parent
a219341676
commit
66c0db1d02
|
@ -62,19 +62,6 @@ public interface I_I_ReportLine
|
||||||
*/
|
*/
|
||||||
public int getAD_Org_ID();
|
public int getAD_Org_ID();
|
||||||
|
|
||||||
/** Column name AmountType */
|
|
||||||
public static final String COLUMNNAME_AmountType = "AmountType";
|
|
||||||
|
|
||||||
/** Set Amount Type.
|
|
||||||
* Type of amount to report
|
|
||||||
*/
|
|
||||||
public void setAmountType (String AmountType);
|
|
||||||
|
|
||||||
/** Get Amount Type.
|
|
||||||
* Type of amount to report
|
|
||||||
*/
|
|
||||||
public String getAmountType();
|
|
||||||
|
|
||||||
/** Column name CalculationType */
|
/** Column name CalculationType */
|
||||||
public static final String COLUMNNAME_CalculationType = "CalculationType";
|
public static final String COLUMNNAME_CalculationType = "CalculationType";
|
||||||
|
|
||||||
|
@ -241,6 +228,32 @@ public interface I_I_ReportLine
|
||||||
*/
|
*/
|
||||||
public String getName();
|
public String getName();
|
||||||
|
|
||||||
|
/** Column name PAAmountType */
|
||||||
|
public static final String COLUMNNAME_PAAmountType = "PAAmountType";
|
||||||
|
|
||||||
|
/** Set Amount Type.
|
||||||
|
* PA Amount Type for reporting
|
||||||
|
*/
|
||||||
|
public void setPAAmountType (String PAAmountType);
|
||||||
|
|
||||||
|
/** Get Amount Type.
|
||||||
|
* PA Amount Type for reporting
|
||||||
|
*/
|
||||||
|
public String getPAAmountType();
|
||||||
|
|
||||||
|
/** Column name PAPeriodType */
|
||||||
|
public static final String COLUMNNAME_PAPeriodType = "PAPeriodType";
|
||||||
|
|
||||||
|
/** Set Period Type.
|
||||||
|
* PA Period Type
|
||||||
|
*/
|
||||||
|
public void setPAPeriodType (String PAPeriodType);
|
||||||
|
|
||||||
|
/** Get Period Type.
|
||||||
|
* PA Period Type
|
||||||
|
*/
|
||||||
|
public String getPAPeriodType();
|
||||||
|
|
||||||
/** Column name PA_ReportLine_ID */
|
/** Column name PA_ReportLine_ID */
|
||||||
public static final String COLUMNNAME_PA_ReportLine_ID = "PA_ReportLine_ID";
|
public static final String COLUMNNAME_PA_ReportLine_ID = "PA_ReportLine_ID";
|
||||||
|
|
||||||
|
|
|
@ -75,19 +75,6 @@ public interface I_PA_ReportColumn
|
||||||
*/
|
*/
|
||||||
public int getAD_OrgTrx_ID();
|
public int getAD_OrgTrx_ID();
|
||||||
|
|
||||||
/** Column name AmountType */
|
|
||||||
public static final String COLUMNNAME_AmountType = "AmountType";
|
|
||||||
|
|
||||||
/** Set Amount Type.
|
|
||||||
* Type of amount to report
|
|
||||||
*/
|
|
||||||
public void setAmountType (String AmountType);
|
|
||||||
|
|
||||||
/** Get Amount Type.
|
|
||||||
* Type of amount to report
|
|
||||||
*/
|
|
||||||
public String getAmountType();
|
|
||||||
|
|
||||||
/** Column name C_Activity_ID */
|
/** Column name C_Activity_ID */
|
||||||
public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID";
|
public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID";
|
||||||
|
|
||||||
|
@ -584,6 +571,32 @@ public interface I_PA_ReportColumn
|
||||||
*/
|
*/
|
||||||
public int getOrg_ID();
|
public int getOrg_ID();
|
||||||
|
|
||||||
|
/** Column name PAAmountType */
|
||||||
|
public static final String COLUMNNAME_PAAmountType = "PAAmountType";
|
||||||
|
|
||||||
|
/** Set Amount Type.
|
||||||
|
* PA Amount Type for reporting
|
||||||
|
*/
|
||||||
|
public void setPAAmountType (String PAAmountType);
|
||||||
|
|
||||||
|
/** Get Amount Type.
|
||||||
|
* PA Amount Type for reporting
|
||||||
|
*/
|
||||||
|
public String getPAAmountType();
|
||||||
|
|
||||||
|
/** Column name PAPeriodType */
|
||||||
|
public static final String COLUMNNAME_PAPeriodType = "PAPeriodType";
|
||||||
|
|
||||||
|
/** Set Period Type.
|
||||||
|
* PA Period Type
|
||||||
|
*/
|
||||||
|
public void setPAPeriodType (String PAPeriodType);
|
||||||
|
|
||||||
|
/** Get Period Type.
|
||||||
|
* PA Period Type
|
||||||
|
*/
|
||||||
|
public String getPAPeriodType();
|
||||||
|
|
||||||
/** Column name PA_ReportColumn_ID */
|
/** Column name PA_ReportColumn_ID */
|
||||||
public static final String COLUMNNAME_PA_ReportColumn_ID = "PA_ReportColumn_ID";
|
public static final String COLUMNNAME_PA_ReportColumn_ID = "PA_ReportColumn_ID";
|
||||||
|
|
||||||
|
|
|
@ -62,19 +62,6 @@ public interface I_PA_ReportLine
|
||||||
*/
|
*/
|
||||||
public int getAD_Org_ID();
|
public int getAD_Org_ID();
|
||||||
|
|
||||||
/** Column name AmountType */
|
|
||||||
public static final String COLUMNNAME_AmountType = "AmountType";
|
|
||||||
|
|
||||||
/** Set Amount Type.
|
|
||||||
* Type of amount to report
|
|
||||||
*/
|
|
||||||
public void setAmountType (String AmountType);
|
|
||||||
|
|
||||||
/** Get Amount Type.
|
|
||||||
* Type of amount to report
|
|
||||||
*/
|
|
||||||
public String getAmountType();
|
|
||||||
|
|
||||||
/** Column name CalculationType */
|
/** Column name CalculationType */
|
||||||
public static final String COLUMNNAME_CalculationType = "CalculationType";
|
public static final String COLUMNNAME_CalculationType = "CalculationType";
|
||||||
|
|
||||||
|
@ -206,6 +193,32 @@ public interface I_PA_ReportLine
|
||||||
|
|
||||||
public I_PA_ReportLine getOper_2() throws RuntimeException;
|
public I_PA_ReportLine getOper_2() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name PAAmountType */
|
||||||
|
public static final String COLUMNNAME_PAAmountType = "PAAmountType";
|
||||||
|
|
||||||
|
/** Set Amount Type.
|
||||||
|
* PA Amount Type for reporting
|
||||||
|
*/
|
||||||
|
public void setPAAmountType (String PAAmountType);
|
||||||
|
|
||||||
|
/** Get Amount Type.
|
||||||
|
* PA Amount Type for reporting
|
||||||
|
*/
|
||||||
|
public String getPAAmountType();
|
||||||
|
|
||||||
|
/** Column name PAPeriodType */
|
||||||
|
public static final String COLUMNNAME_PAPeriodType = "PAPeriodType";
|
||||||
|
|
||||||
|
/** Set Period Type.
|
||||||
|
* PA Period Type
|
||||||
|
*/
|
||||||
|
public void setPAPeriodType (String PAPeriodType);
|
||||||
|
|
||||||
|
/** Get Period Type.
|
||||||
|
* PA Period Type
|
||||||
|
*/
|
||||||
|
public String getPAPeriodType();
|
||||||
|
|
||||||
/** Column name PA_ReportLine_ID */
|
/** Column name PA_ReportLine_ID */
|
||||||
public static final String COLUMNNAME_PA_ReportLine_ID = "PA_ReportLine_ID";
|
public static final String COLUMNNAME_PA_ReportLine_ID = "PA_ReportLine_ID";
|
||||||
|
|
||||||
|
|
|
@ -71,52 +71,6 @@ public class X_I_ReportLine extends PO implements I_I_ReportLine, I_Persistent
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** AmountType AD_Reference_ID=235 */
|
|
||||||
public static final int AMOUNTTYPE_AD_Reference_ID=235;
|
|
||||||
/** Total Debit Only = DT */
|
|
||||||
public static final String AMOUNTTYPE_TotalDebitOnly = "DT";
|
|
||||||
/** Total Credit Only = CT */
|
|
||||||
public static final String AMOUNTTYPE_TotalCreditOnly = "CT";
|
|
||||||
/** Total Balance = BT */
|
|
||||||
public static final String AMOUNTTYPE_TotalBalance = "BT";
|
|
||||||
/** Period Balance = BP */
|
|
||||||
public static final String AMOUNTTYPE_PeriodBalance = "BP";
|
|
||||||
/** Period Credit Only = CP */
|
|
||||||
public static final String AMOUNTTYPE_PeriodCreditOnly = "CP";
|
|
||||||
/** Period Debit Only = DP */
|
|
||||||
public static final String AMOUNTTYPE_PeriodDebitOnly = "DP";
|
|
||||||
/** Period Quantity = QP */
|
|
||||||
public static final String AMOUNTTYPE_PeriodQuantity = "QP";
|
|
||||||
/** Total Quantity = QT */
|
|
||||||
public static final String AMOUNTTYPE_TotalQuantity = "QT";
|
|
||||||
/** Year Balance = BY */
|
|
||||||
public static final String AMOUNTTYPE_YearBalance = "BY";
|
|
||||||
/** Year Credit Only = CY */
|
|
||||||
public static final String AMOUNTTYPE_YearCreditOnly = "CY";
|
|
||||||
/** Year Debit Only = DY */
|
|
||||||
public static final String AMOUNTTYPE_YearDebitOnly = "DY";
|
|
||||||
/** Year Quantity = QY */
|
|
||||||
public static final String AMOUNTTYPE_YearQuantity = "QY";
|
|
||||||
/** Natural Balance = BN */
|
|
||||||
public static final String AMOUNTTYPE_NaturalBalance = "BN";
|
|
||||||
/** Set Amount Type.
|
|
||||||
@param AmountType
|
|
||||||
Type of amount to report
|
|
||||||
*/
|
|
||||||
public void setAmountType (String AmountType)
|
|
||||||
{
|
|
||||||
|
|
||||||
set_Value (COLUMNNAME_AmountType, AmountType);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Amount Type.
|
|
||||||
@return Type of amount to report
|
|
||||||
*/
|
|
||||||
public String getAmountType ()
|
|
||||||
{
|
|
||||||
return (String)get_Value(COLUMNNAME_AmountType);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** CalculationType AD_Reference_ID=236 */
|
/** CalculationType AD_Reference_ID=236 */
|
||||||
public static final int CALCULATIONTYPE_AD_Reference_ID=236;
|
public static final int CALCULATIONTYPE_AD_Reference_ID=236;
|
||||||
/** Add (Op1+Op2) = A */
|
/** Add (Op1+Op2) = A */
|
||||||
|
@ -362,6 +316,66 @@ public class X_I_ReportLine extends PO implements I_I_ReportLine, I_Persistent
|
||||||
return new KeyNamePair(get_ID(), getName());
|
return new KeyNamePair(get_ID(), getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** PAAmountType AD_Reference_ID=53328 */
|
||||||
|
public static final int PAAMOUNTTYPE_AD_Reference_ID=53328;
|
||||||
|
/** Balance (expected sign) = B */
|
||||||
|
public static final String PAAMOUNTTYPE_BalanceExpectedSign = "B";
|
||||||
|
/** Credit Only = C */
|
||||||
|
public static final String PAAMOUNTTYPE_CreditOnly = "C";
|
||||||
|
/** Debit Only = D */
|
||||||
|
public static final String PAAMOUNTTYPE_DebitOnly = "D";
|
||||||
|
/** Quantity (expected sign) = Q */
|
||||||
|
public static final String PAAMOUNTTYPE_QuantityExpectedSign = "Q";
|
||||||
|
/** Balance (accounted sign) = S */
|
||||||
|
public static final String PAAMOUNTTYPE_BalanceAccountedSign = "S";
|
||||||
|
/** Quantity (accounted sign) = R */
|
||||||
|
public static final String PAAMOUNTTYPE_QuantityAccountedSign = "R";
|
||||||
|
/** Set Amount Type.
|
||||||
|
@param PAAmountType
|
||||||
|
PA Amount Type for reporting
|
||||||
|
*/
|
||||||
|
public void setPAAmountType (String PAAmountType)
|
||||||
|
{
|
||||||
|
|
||||||
|
set_Value (COLUMNNAME_PAAmountType, PAAmountType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Amount Type.
|
||||||
|
@return PA Amount Type for reporting
|
||||||
|
*/
|
||||||
|
public String getPAAmountType ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_PAAmountType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** PAPeriodType AD_Reference_ID=53327 */
|
||||||
|
public static final int PAPERIODTYPE_AD_Reference_ID=53327;
|
||||||
|
/** Total = T */
|
||||||
|
public static final String PAPERIODTYPE_Total = "T";
|
||||||
|
/** Year = Y */
|
||||||
|
public static final String PAPERIODTYPE_Year = "Y";
|
||||||
|
/** Period = P */
|
||||||
|
public static final String PAPERIODTYPE_Period = "P";
|
||||||
|
/** Natural = N */
|
||||||
|
public static final String PAPERIODTYPE_Natural = "N";
|
||||||
|
/** Set Period Type.
|
||||||
|
@param PAPeriodType
|
||||||
|
PA Period Type
|
||||||
|
*/
|
||||||
|
public void setPAPeriodType (String PAPeriodType)
|
||||||
|
{
|
||||||
|
|
||||||
|
set_Value (COLUMNNAME_PAPeriodType, PAPeriodType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Period Type.
|
||||||
|
@return PA Period Type
|
||||||
|
*/
|
||||||
|
public String getPAPeriodType ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_PAPeriodType);
|
||||||
|
}
|
||||||
|
|
||||||
public I_PA_ReportLine getPA_ReportLine() throws RuntimeException
|
public I_PA_ReportLine getPA_ReportLine() throws RuntimeException
|
||||||
{
|
{
|
||||||
return (I_PA_ReportLine)MTable.get(getCtx(), I_PA_ReportLine.Table_Name)
|
return (I_PA_ReportLine)MTable.get(getCtx(), I_PA_ReportLine.Table_Name)
|
||||||
|
|
|
@ -129,52 +129,6 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** AmountType AD_Reference_ID=235 */
|
|
||||||
public static final int AMOUNTTYPE_AD_Reference_ID=235;
|
|
||||||
/** Total Debit Only = DT */
|
|
||||||
public static final String AMOUNTTYPE_TotalDebitOnly = "DT";
|
|
||||||
/** Total Credit Only = CT */
|
|
||||||
public static final String AMOUNTTYPE_TotalCreditOnly = "CT";
|
|
||||||
/** Total Balance = BT */
|
|
||||||
public static final String AMOUNTTYPE_TotalBalance = "BT";
|
|
||||||
/** Period Balance = BP */
|
|
||||||
public static final String AMOUNTTYPE_PeriodBalance = "BP";
|
|
||||||
/** Period Credit Only = CP */
|
|
||||||
public static final String AMOUNTTYPE_PeriodCreditOnly = "CP";
|
|
||||||
/** Period Debit Only = DP */
|
|
||||||
public static final String AMOUNTTYPE_PeriodDebitOnly = "DP";
|
|
||||||
/** Period Quantity = QP */
|
|
||||||
public static final String AMOUNTTYPE_PeriodQuantity = "QP";
|
|
||||||
/** Total Quantity = QT */
|
|
||||||
public static final String AMOUNTTYPE_TotalQuantity = "QT";
|
|
||||||
/** Year Balance = BY */
|
|
||||||
public static final String AMOUNTTYPE_YearBalance = "BY";
|
|
||||||
/** Year Credit Only = CY */
|
|
||||||
public static final String AMOUNTTYPE_YearCreditOnly = "CY";
|
|
||||||
/** Year Debit Only = DY */
|
|
||||||
public static final String AMOUNTTYPE_YearDebitOnly = "DY";
|
|
||||||
/** Year Quantity = QY */
|
|
||||||
public static final String AMOUNTTYPE_YearQuantity = "QY";
|
|
||||||
/** Natural Balance = BN */
|
|
||||||
public static final String AMOUNTTYPE_NaturalBalance = "BN";
|
|
||||||
/** Set Amount Type.
|
|
||||||
@param AmountType
|
|
||||||
Type of amount to report
|
|
||||||
*/
|
|
||||||
public void setAmountType (String AmountType)
|
|
||||||
{
|
|
||||||
|
|
||||||
set_Value (COLUMNNAME_AmountType, AmountType);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Amount Type.
|
|
||||||
@return Type of amount to report
|
|
||||||
*/
|
|
||||||
public String getAmountType ()
|
|
||||||
{
|
|
||||||
return (String)get_Value(COLUMNNAME_AmountType);
|
|
||||||
}
|
|
||||||
|
|
||||||
public I_C_Activity getC_Activity() throws RuntimeException
|
public I_C_Activity getC_Activity() throws RuntimeException
|
||||||
{
|
{
|
||||||
return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name)
|
return (I_C_Activity)MTable.get(getCtx(), I_C_Activity.Table_Name)
|
||||||
|
@ -1076,6 +1030,66 @@ public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persis
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** PAAmountType AD_Reference_ID=53328 */
|
||||||
|
public static final int PAAMOUNTTYPE_AD_Reference_ID=53328;
|
||||||
|
/** Balance (expected sign) = B */
|
||||||
|
public static final String PAAMOUNTTYPE_BalanceExpectedSign = "B";
|
||||||
|
/** Credit Only = C */
|
||||||
|
public static final String PAAMOUNTTYPE_CreditOnly = "C";
|
||||||
|
/** Debit Only = D */
|
||||||
|
public static final String PAAMOUNTTYPE_DebitOnly = "D";
|
||||||
|
/** Quantity (expected sign) = Q */
|
||||||
|
public static final String PAAMOUNTTYPE_QuantityExpectedSign = "Q";
|
||||||
|
/** Balance (accounted sign) = S */
|
||||||
|
public static final String PAAMOUNTTYPE_BalanceAccountedSign = "S";
|
||||||
|
/** Quantity (accounted sign) = R */
|
||||||
|
public static final String PAAMOUNTTYPE_QuantityAccountedSign = "R";
|
||||||
|
/** Set Amount Type.
|
||||||
|
@param PAAmountType
|
||||||
|
PA Amount Type for reporting
|
||||||
|
*/
|
||||||
|
public void setPAAmountType (String PAAmountType)
|
||||||
|
{
|
||||||
|
|
||||||
|
set_Value (COLUMNNAME_PAAmountType, PAAmountType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Amount Type.
|
||||||
|
@return PA Amount Type for reporting
|
||||||
|
*/
|
||||||
|
public String getPAAmountType ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_PAAmountType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** PAPeriodType AD_Reference_ID=53327 */
|
||||||
|
public static final int PAPERIODTYPE_AD_Reference_ID=53327;
|
||||||
|
/** Total = T */
|
||||||
|
public static final String PAPERIODTYPE_Total = "T";
|
||||||
|
/** Year = Y */
|
||||||
|
public static final String PAPERIODTYPE_Year = "Y";
|
||||||
|
/** Period = P */
|
||||||
|
public static final String PAPERIODTYPE_Period = "P";
|
||||||
|
/** Natural = N */
|
||||||
|
public static final String PAPERIODTYPE_Natural = "N";
|
||||||
|
/** Set Period Type.
|
||||||
|
@param PAPeriodType
|
||||||
|
PA Period Type
|
||||||
|
*/
|
||||||
|
public void setPAPeriodType (String PAPeriodType)
|
||||||
|
{
|
||||||
|
|
||||||
|
set_Value (COLUMNNAME_PAPeriodType, PAPeriodType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Period Type.
|
||||||
|
@return PA Period Type
|
||||||
|
*/
|
||||||
|
public String getPAPeriodType ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_PAPeriodType);
|
||||||
|
}
|
||||||
|
|
||||||
/** Set Report Column.
|
/** Set Report Column.
|
||||||
@param PA_ReportColumn_ID
|
@param PA_ReportColumn_ID
|
||||||
Column in Report
|
Column in Report
|
||||||
|
|
|
@ -77,52 +77,6 @@ public class X_PA_ReportLine extends PO implements I_PA_ReportLine, I_Persistent
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** AmountType AD_Reference_ID=235 */
|
|
||||||
public static final int AMOUNTTYPE_AD_Reference_ID=235;
|
|
||||||
/** Total Debit Only = DT */
|
|
||||||
public static final String AMOUNTTYPE_TotalDebitOnly = "DT";
|
|
||||||
/** Total Credit Only = CT */
|
|
||||||
public static final String AMOUNTTYPE_TotalCreditOnly = "CT";
|
|
||||||
/** Total Balance = BT */
|
|
||||||
public static final String AMOUNTTYPE_TotalBalance = "BT";
|
|
||||||
/** Period Balance = BP */
|
|
||||||
public static final String AMOUNTTYPE_PeriodBalance = "BP";
|
|
||||||
/** Period Credit Only = CP */
|
|
||||||
public static final String AMOUNTTYPE_PeriodCreditOnly = "CP";
|
|
||||||
/** Period Debit Only = DP */
|
|
||||||
public static final String AMOUNTTYPE_PeriodDebitOnly = "DP";
|
|
||||||
/** Period Quantity = QP */
|
|
||||||
public static final String AMOUNTTYPE_PeriodQuantity = "QP";
|
|
||||||
/** Total Quantity = QT */
|
|
||||||
public static final String AMOUNTTYPE_TotalQuantity = "QT";
|
|
||||||
/** Year Balance = BY */
|
|
||||||
public static final String AMOUNTTYPE_YearBalance = "BY";
|
|
||||||
/** Year Credit Only = CY */
|
|
||||||
public static final String AMOUNTTYPE_YearCreditOnly = "CY";
|
|
||||||
/** Year Debit Only = DY */
|
|
||||||
public static final String AMOUNTTYPE_YearDebitOnly = "DY";
|
|
||||||
/** Year Quantity = QY */
|
|
||||||
public static final String AMOUNTTYPE_YearQuantity = "QY";
|
|
||||||
/** Natural Balance = BN */
|
|
||||||
public static final String AMOUNTTYPE_NaturalBalance = "BN";
|
|
||||||
/** Set Amount Type.
|
|
||||||
@param AmountType
|
|
||||||
Type of amount to report
|
|
||||||
*/
|
|
||||||
public void setAmountType (String AmountType)
|
|
||||||
{
|
|
||||||
|
|
||||||
set_Value (COLUMNNAME_AmountType, AmountType);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Amount Type.
|
|
||||||
@return Type of amount to report
|
|
||||||
*/
|
|
||||||
public String getAmountType ()
|
|
||||||
{
|
|
||||||
return (String)get_Value(COLUMNNAME_AmountType);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** CalculationType AD_Reference_ID=236 */
|
/** CalculationType AD_Reference_ID=236 */
|
||||||
public static final int CALCULATIONTYPE_AD_Reference_ID=236;
|
public static final int CALCULATIONTYPE_AD_Reference_ID=236;
|
||||||
/** Add (Op1+Op2) = A */
|
/** Add (Op1+Op2) = A */
|
||||||
|
@ -319,6 +273,66 @@ public class X_PA_ReportLine extends PO implements I_PA_ReportLine, I_Persistent
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** PAAmountType AD_Reference_ID=53328 */
|
||||||
|
public static final int PAAMOUNTTYPE_AD_Reference_ID=53328;
|
||||||
|
/** Balance (expected sign) = B */
|
||||||
|
public static final String PAAMOUNTTYPE_BalanceExpectedSign = "B";
|
||||||
|
/** Credit Only = C */
|
||||||
|
public static final String PAAMOUNTTYPE_CreditOnly = "C";
|
||||||
|
/** Debit Only = D */
|
||||||
|
public static final String PAAMOUNTTYPE_DebitOnly = "D";
|
||||||
|
/** Quantity (expected sign) = Q */
|
||||||
|
public static final String PAAMOUNTTYPE_QuantityExpectedSign = "Q";
|
||||||
|
/** Balance (accounted sign) = S */
|
||||||
|
public static final String PAAMOUNTTYPE_BalanceAccountedSign = "S";
|
||||||
|
/** Quantity (accounted sign) = R */
|
||||||
|
public static final String PAAMOUNTTYPE_QuantityAccountedSign = "R";
|
||||||
|
/** Set Amount Type.
|
||||||
|
@param PAAmountType
|
||||||
|
PA Amount Type for reporting
|
||||||
|
*/
|
||||||
|
public void setPAAmountType (String PAAmountType)
|
||||||
|
{
|
||||||
|
|
||||||
|
set_Value (COLUMNNAME_PAAmountType, PAAmountType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Amount Type.
|
||||||
|
@return PA Amount Type for reporting
|
||||||
|
*/
|
||||||
|
public String getPAAmountType ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_PAAmountType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** PAPeriodType AD_Reference_ID=53327 */
|
||||||
|
public static final int PAPERIODTYPE_AD_Reference_ID=53327;
|
||||||
|
/** Total = T */
|
||||||
|
public static final String PAPERIODTYPE_Total = "T";
|
||||||
|
/** Year = Y */
|
||||||
|
public static final String PAPERIODTYPE_Year = "Y";
|
||||||
|
/** Period = P */
|
||||||
|
public static final String PAPERIODTYPE_Period = "P";
|
||||||
|
/** Natural = N */
|
||||||
|
public static final String PAPERIODTYPE_Natural = "N";
|
||||||
|
/** Set Period Type.
|
||||||
|
@param PAPeriodType
|
||||||
|
PA Period Type
|
||||||
|
*/
|
||||||
|
public void setPAPeriodType (String PAPeriodType)
|
||||||
|
{
|
||||||
|
|
||||||
|
set_Value (COLUMNNAME_PAPeriodType, PAPeriodType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Period Type.
|
||||||
|
@return PA Period Type
|
||||||
|
*/
|
||||||
|
public String getPAPeriodType ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_PAPeriodType);
|
||||||
|
}
|
||||||
|
|
||||||
/** Set Report Line.
|
/** Set Report Line.
|
||||||
@param PA_ReportLine_ID Report Line */
|
@param PA_ReportLine_ID Report Line */
|
||||||
public void setPA_ReportLine_ID (int PA_ReportLine_ID)
|
public void setPA_ReportLine_ID (int PA_ReportLine_ID)
|
||||||
|
|
|
@ -168,8 +168,8 @@ public class ImportReportLine extends SvrProcess
|
||||||
|
|
||||||
// Copy/Sync from first Row of Line
|
// Copy/Sync from first Row of Line
|
||||||
sql = new StringBuffer ("UPDATE I_ReportLine i "
|
sql = new StringBuffer ("UPDATE I_ReportLine i "
|
||||||
+ "SET (Description, SeqNo, IsSummary, IsPrinted, LineType, CalculationType, AmountType, PostingType)="
|
+ "SET (Description, SeqNo, IsSummary, IsPrinted, LineType, CalculationType, AmountType, PAAmountType, PAPeriodType, PostingType)="
|
||||||
+ " (SELECT Description, SeqNo, IsSummary, IsPrinted, LineType, CalculationType, AmountType, PostingType"
|
+ " (SELECT Description, SeqNo, IsSummary, IsPrinted, LineType, CalculationType, AmountType, PAAmountType, PAPeriodType, PostingType"
|
||||||
+ " FROM I_ReportLine ii WHERE i.Name=ii.Name AND i.PA_ReportLineSet_ID=ii.PA_ReportLineSet_ID"
|
+ " FROM I_ReportLine ii WHERE i.Name=ii.Name AND i.PA_ReportLineSet_ID=ii.PA_ReportLineSet_ID"
|
||||||
+ " AND ii.I_ReportLine_ID=(SELECT MIN(I_ReportLine_ID) FROM I_ReportLine iii"
|
+ " AND ii.I_ReportLine_ID=(SELECT MIN(I_ReportLine_ID) FROM I_ReportLine iii"
|
||||||
+ " WHERE i.Name=iii.Name AND i.PA_ReportLineSet_ID=iii.PA_ReportLineSet_ID)) "
|
+ " WHERE i.Name=iii.Name AND i.PA_ReportLineSet_ID=iii.PA_ReportLineSet_ID)) "
|
||||||
|
@ -213,14 +213,30 @@ public class ImportReportLine extends SvrProcess
|
||||||
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||||
log.config("Invalid CalculationType=" + no);
|
log.config("Invalid CalculationType=" + no);
|
||||||
|
|
||||||
|
// Convert Optional Amount Type to PAAmount Type and PAPeriodType
|
||||||
|
sql = new StringBuffer ("UPDATE I_ReportLine "
|
||||||
|
+ "SET PAAmountType = substr(AmountType,1,1), PAPeriodType = substr(AmountType,1,2) "
|
||||||
|
+ "WHERE AmountType IS NOT NULL AND (PAAmountType IS NULL OR PAPeriodType IS NULL) "
|
||||||
|
+ " AND I_IsImported<>'Y'").append(clientCheck);
|
||||||
|
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||||
|
log.config("Converted AmountType=" + no);
|
||||||
|
|
||||||
// Validate Optional Amount Type -
|
// Validate Optional Amount Type -
|
||||||
sql = new StringBuffer ("UPDATE I_ReportLine "
|
sql = new StringBuffer ("UPDATE I_ReportLine "
|
||||||
+ "SET I_IsImported='E', I_ErrorMsg=I_ErrorMsg||'ERR=Invalid CalculationType, ' "
|
+ "SET I_IsImported='E', I_ErrorMsg=I_ErrorMsg||'ERR=Invalid PAAmountType, ' "
|
||||||
+ "WHERE AmountType IS NOT NULL AND UPPER(AmountType) NOT IN ('BP','CP','DP','QP', 'BY','CY','DY','QY', 'BT','CT','DT','QT')"
|
+ "WHERE PAAmountType IS NOT NULL AND UPPER(AmountType) NOT IN ('B','C','D','Q','S','R')"
|
||||||
+ " AND I_IsImported<>'Y'").append(clientCheck);
|
+ " AND I_IsImported<>'Y'").append(clientCheck);
|
||||||
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||||
log.config("Invalid AmountType=" + no);
|
log.config("Invalid AmountType=" + no);
|
||||||
|
|
||||||
|
// Validate Optional Period Type -
|
||||||
|
sql = new StringBuffer ("UPDATE I_ReportLine "
|
||||||
|
+ "SET I_IsImported='E', I_ErrorMsg=I_ErrorMsg||'ERR=Invalid PAPeriodType, ' "
|
||||||
|
+ "WHERE PAPeriodType IS NOT NULL AND UPPER(AmountType) NOT IN ('P','Y','T','N')"
|
||||||
|
+ " AND I_IsImported<>'Y'").append(clientCheck);
|
||||||
|
no = DB.executeUpdate(sql.toString(), get_TrxName());
|
||||||
|
log.config("Invalid PeriodType=" + no);
|
||||||
|
|
||||||
// Validate Optional Posting Type - A B E S R
|
// Validate Optional Posting Type - A B E S R
|
||||||
sql = new StringBuffer ("UPDATE I_ReportLine "
|
sql = new StringBuffer ("UPDATE I_ReportLine "
|
||||||
+ "SET I_IsImported='E', I_ErrorMsg=I_ErrorMsg||'ERR=Invalid CalculationType, ' "
|
+ "SET I_IsImported='E', I_ErrorMsg=I_ErrorMsg||'ERR=Invalid CalculationType, ' "
|
||||||
|
@ -316,8 +332,8 @@ public class ImportReportLine extends SvrProcess
|
||||||
|
|
||||||
// **** Update ReportLine
|
// **** Update ReportLine
|
||||||
sql = new StringBuffer ("UPDATE PA_ReportLine r "
|
sql = new StringBuffer ("UPDATE PA_ReportLine r "
|
||||||
+ "SET (Description,SeqNo,IsSummary,IsPrinted,LineType,CalculationType,AmountType,PostingType,Updated,UpdatedBy)="
|
+ "SET (Description,SeqNo,IsSummary,IsPrinted,LineType,CalculationType,AmountType,PAAmountType,PAPeriodType,PostingType,Updated,UpdatedBy)="
|
||||||
+ " (SELECT Description,SeqNo,IsSummary,IsPrinted,LineType,CalculationType,AmountType,PostingType,SysDate,UpdatedBy"
|
+ " (SELECT Description,SeqNo,IsSummary,IsPrinted,LineType,CalculationType,AmountType,PAAmountType,PAPeriodType,PostingType,SysDate,UpdatedBy"
|
||||||
+ " FROM I_ReportLine i WHERE r.Name=i.Name AND r.PA_ReportLineSet_ID=i.PA_ReportLineSet_ID"
|
+ " FROM I_ReportLine i WHERE r.Name=i.Name AND r.PA_ReportLineSet_ID=i.PA_ReportLineSet_ID"
|
||||||
+ " AND i.I_ReportLine_ID=(SELECT MIN(I_ReportLine_ID) FROM I_ReportLine iii"
|
+ " AND i.I_ReportLine_ID=(SELECT MIN(I_ReportLine_ID) FROM I_ReportLine iii"
|
||||||
+ " WHERE i.Name=iii.Name AND i.PA_ReportLineSet_ID=iii.PA_ReportLineSet_ID)) "
|
+ " WHERE i.Name=iii.Name AND i.PA_ReportLineSet_ID=iii.PA_ReportLineSet_ID)) "
|
||||||
|
|
|
@ -347,17 +347,17 @@ public class FinReport extends SvrProcess
|
||||||
|
|
||||||
// SELECT SUM()
|
// SELECT SUM()
|
||||||
StringBuffer select = new StringBuffer ("SELECT ");
|
StringBuffer select = new StringBuffer ("SELECT ");
|
||||||
if (m_lines[line].getAmountType() != null) // line amount type overwrites column
|
if (m_lines[line].getPAAmountType() != null) // line amount type overwrites column
|
||||||
{
|
{
|
||||||
String sql = m_lines[line].getSelectClause (true);
|
String sql = m_lines[line].getSelectClause (true);
|
||||||
select.append (sql);
|
select.append (sql);
|
||||||
info.append(": LineAmtType=").append(m_lines[line].getAmountType());
|
info.append(": LineAmtType=").append(m_lines[line].getPAAmountType());
|
||||||
}
|
}
|
||||||
else if (m_columns[col].getAmountType() != null)
|
else if (m_columns[col].getPAAmountType() != null)
|
||||||
{
|
{
|
||||||
String sql = m_columns[col].getSelectClause (true);
|
String sql = m_columns[col].getSelectClause (true);
|
||||||
select.append (sql);
|
select.append (sql);
|
||||||
info.append(": ColumnAmtType=").append(m_columns[col].getAmountType());
|
info.append(": ColumnAmtType=").append(m_columns[col].getPAAmountType());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -376,7 +376,7 @@ public class FinReport extends SvrProcess
|
||||||
if (m_columns[col].isColumnTypeRelativePeriod())
|
if (m_columns[col].isColumnTypeRelativePeriod())
|
||||||
relativeOffset = m_columns[col].getRelativePeriod();
|
relativeOffset = m_columns[col].getRelativePeriod();
|
||||||
FinReportPeriod frp = getPeriod (relativeOffset);
|
FinReportPeriod frp = getPeriod (relativeOffset);
|
||||||
if (m_lines[line].getAmountType() != null) // line amount type overwrites column
|
if (m_lines[line].getPAPeriodType() != null) // line amount type overwrites column
|
||||||
{
|
{
|
||||||
info.append(" - LineDateAcct=");
|
info.append(" - LineDateAcct=");
|
||||||
if (m_lines[line].isPeriod())
|
if (m_lines[line].isPeriod())
|
||||||
|
@ -403,11 +403,11 @@ public class FinReport extends SvrProcess
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "No valid Line AmountType");
|
log.log(Level.SEVERE, "No valid Line PAPeriodType");
|
||||||
select.append("=0"); // valid sql
|
select.append("=0"); // valid sql
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (m_columns[col].getAmountType() != null)
|
else if (m_columns[col].getPAPeriodType() != null)
|
||||||
{
|
{
|
||||||
info.append(" - ColumnDateAcct=");
|
info.append(" - ColumnDateAcct=");
|
||||||
if (m_columns[col].isPeriod())
|
if (m_columns[col].isPeriod())
|
||||||
|
@ -434,7 +434,7 @@ public class FinReport extends SvrProcess
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "No valid Column AmountType");
|
log.log(Level.SEVERE, "No valid Column PAPeriodType");
|
||||||
select.append("=0"); // valid sql
|
select.append("=0"); // valid sql
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -926,9 +926,9 @@ public class FinReport extends SvrProcess
|
||||||
|
|
||||||
// SELECT SUM()
|
// SELECT SUM()
|
||||||
StringBuffer select = new StringBuffer ("SELECT ");
|
StringBuffer select = new StringBuffer ("SELECT ");
|
||||||
if (m_lines[line].getAmountType() != null) // line amount type overwrites column
|
if (m_lines[line].getPAAmountType() != null) // line amount type overwrites column
|
||||||
select.append (m_lines[line].getSelectClause (true));
|
select.append (m_lines[line].getSelectClause (true));
|
||||||
else if (m_columns[col].getAmountType() != null)
|
else if (m_columns[col].getPAAmountType() != null)
|
||||||
select.append (m_columns[col].getSelectClause (true));
|
select.append (m_columns[col].getSelectClause (true));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -944,7 +944,7 @@ public class FinReport extends SvrProcess
|
||||||
select.append(" FROM Fact_Acct fb WHERE TRUNC(DateAcct) ");
|
select.append(" FROM Fact_Acct fb WHERE TRUNC(DateAcct) ");
|
||||||
}
|
}
|
||||||
FinReportPeriod frp = getPeriod (m_columns[col].getRelativePeriod());
|
FinReportPeriod frp = getPeriod (m_columns[col].getRelativePeriod());
|
||||||
if (m_lines[line].getAmountType() != null) // line amount type overwrites column
|
if (m_lines[line].getPAPeriodType() != null) // line amount type overwrites column
|
||||||
{
|
{
|
||||||
if (m_lines[line].isPeriod())
|
if (m_lines[line].isPeriod())
|
||||||
select.append(frp.getPeriodWhere());
|
select.append(frp.getPeriodWhere());
|
||||||
|
@ -955,7 +955,7 @@ public class FinReport extends SvrProcess
|
||||||
else
|
else
|
||||||
select.append(frp.getTotalWhere());
|
select.append(frp.getTotalWhere());
|
||||||
}
|
}
|
||||||
else if (m_columns[col].getAmountType() != null)
|
else if (m_columns[col].getPAPeriodType() != null)
|
||||||
{
|
{
|
||||||
if (m_columns[col].isPeriod())
|
if (m_columns[col].isPeriod())
|
||||||
select.append(frp.getPeriodWhere());
|
select.append(frp.getPeriodWhere());
|
||||||
|
@ -1075,9 +1075,9 @@ public class FinReport extends SvrProcess
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// Amount Type ... Qty
|
// Amount Type ... Qty
|
||||||
if (m_lines[line].getAmountType() != null) // line amount type overwrites column
|
if (m_lines[line].getPAAmountType() != null) // line amount type overwrites column
|
||||||
insert.append (m_lines[line].getSelectClause (false));
|
insert.append (m_lines[line].getSelectClause (false));
|
||||||
else if (m_columns[col].getAmountType() != null)
|
else if (m_columns[col].getPAAmountType() != null)
|
||||||
insert.append (m_columns[col].getSelectClause (false));
|
insert.append (m_columns[col].getSelectClause (false));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -70,23 +70,26 @@ public class MReportColumn extends X_PA_ReportColumn
|
||||||
*/
|
*/
|
||||||
public String getSelectClause (boolean withSum)
|
public String getSelectClause (boolean withSum)
|
||||||
{
|
{
|
||||||
// Amount Type = Period Balance, Period Credit
|
String amountType = getPAAmountType(); // first character
|
||||||
String amountType = getAmountType().substring(0,1); // first character
|
|
||||||
StringBuffer sb = new StringBuffer();
|
StringBuffer sb = new StringBuffer();
|
||||||
if (withSum)
|
if (withSum)
|
||||||
sb.append("SUM(");
|
sb.append("SUM(");
|
||||||
if (AmountType_Balance.equals(amountType))
|
if (PAAMOUNTTYPE_BalanceExpectedSign.equals(amountType))
|
||||||
// sb.append("AmtAcctDr-AmtAcctCr");
|
// sb.append("AmtAcctDr-AmtAcctCr");
|
||||||
sb.append("acctBalance(Account_ID,AmtAcctDr,AmtAcctCr)");
|
sb.append("acctBalance(Account_ID,AmtAcctDr,AmtAcctCr)");
|
||||||
else if (AmountType_CR.equals(amountType))
|
else if ( PAAMOUNTTYPE_BalanceAccountedSign.equals(amountType) )
|
||||||
|
sb.append("AmtAcctDr-AmtAcctCr");
|
||||||
|
else if (PAAMOUNTTYPE_CreditOnly.equals(amountType))
|
||||||
sb.append("AmtAcctCr");
|
sb.append("AmtAcctCr");
|
||||||
else if (AmountType_DR.equals(amountType))
|
else if (PAAMOUNTTYPE_DebitOnly.equals(amountType))
|
||||||
sb.append("AmtAcctDr");
|
sb.append("AmtAcctDr");
|
||||||
else if (AmountType_Qty.equals(amountType))
|
else if (PAAMOUNTTYPE_QuantityAccountedSign.equals(amountType))
|
||||||
sb.append("Qty");
|
sb.append("Qty");
|
||||||
|
else if (PAAMOUNTTYPE_QuantityExpectedSign.equals(amountType))
|
||||||
|
sb.append("acctBalance(Account_ID,Qty,0)");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "AmountType=" + getAmountType () + ", at=" + amountType);
|
log.log(Level.SEVERE, "AmountType=" + getPAAmountType () + ", at=" + amountType);
|
||||||
return "NULL";
|
return "NULL";
|
||||||
}
|
}
|
||||||
if (withSum)
|
if (withSum)
|
||||||
|
@ -100,13 +103,10 @@ public class MReportColumn extends X_PA_ReportColumn
|
||||||
*/
|
*/
|
||||||
public boolean isPeriod()
|
public boolean isPeriod()
|
||||||
{
|
{
|
||||||
String at = getAmountType();
|
String pt = getPAPeriodType();
|
||||||
if (at == null)
|
if (pt == null)
|
||||||
return false;
|
return false;
|
||||||
return AMOUNTTYPE_PeriodBalance.equals(at)
|
return PAPERIODTYPE_Period.equals(pt);
|
||||||
|| AMOUNTTYPE_PeriodCreditOnly.equals(at)
|
|
||||||
|| AMOUNTTYPE_PeriodDebitOnly.equals(at)
|
|
||||||
|| AMOUNTTYPE_PeriodQuantity.equals(at);
|
|
||||||
} // isPeriod
|
} // isPeriod
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -115,13 +115,10 @@ public class MReportColumn extends X_PA_ReportColumn
|
||||||
*/
|
*/
|
||||||
public boolean isYear()
|
public boolean isYear()
|
||||||
{
|
{
|
||||||
String at = getAmountType();
|
String pt = getPAPeriodType();
|
||||||
if (at == null)
|
if (pt == null)
|
||||||
return false;
|
return false;
|
||||||
return AMOUNTTYPE_YearBalance.equals(at)
|
return PAPERIODTYPE_Year.equals(pt);
|
||||||
|| AMOUNTTYPE_YearCreditOnly.equals(at)
|
|
||||||
|| AMOUNTTYPE_YearDebitOnly.equals(at)
|
|
||||||
|| AMOUNTTYPE_YearQuantity.equals(at);
|
|
||||||
} // isYear
|
} // isYear
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -130,13 +127,10 @@ public class MReportColumn extends X_PA_ReportColumn
|
||||||
*/
|
*/
|
||||||
public boolean isTotal()
|
public boolean isTotal()
|
||||||
{
|
{
|
||||||
String at = getAmountType();
|
String pt = getPAPeriodType();
|
||||||
if (at == null)
|
if (pt == null)
|
||||||
return false;
|
return false;
|
||||||
return AMOUNTTYPE_TotalBalance.equals(at)
|
return PAPERIODTYPE_Total.equals(pt);
|
||||||
|| AMOUNTTYPE_TotalCreditOnly.equals(at)
|
|
||||||
|| AMOUNTTYPE_TotalDebitOnly.equals(at)
|
|
||||||
|| AMOUNTTYPE_TotalQuantity.equals(at);
|
|
||||||
} // isTotalBalance
|
} // isTotalBalance
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -145,10 +139,10 @@ public class MReportColumn extends X_PA_ReportColumn
|
||||||
* @return true if Natural Balance Amount Type
|
* @return true if Natural Balance Amount Type
|
||||||
*/
|
*/
|
||||||
public boolean isNatural() {
|
public boolean isNatural() {
|
||||||
String at = getAmountType();
|
String pt = getPAPeriodType();
|
||||||
if (at == null)
|
if (pt == null)
|
||||||
return false;
|
return false;
|
||||||
return AMOUNTTYPE_NaturalBalance.equals(at);
|
return PAPERIODTYPE_Natural.equals(pt);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -351,7 +345,8 @@ public class MReportColumn extends X_PA_ReportColumn
|
||||||
{
|
{
|
||||||
StringBuffer sb = new StringBuffer ("MReportColumn[")
|
StringBuffer sb = new StringBuffer ("MReportColumn[")
|
||||||
.append(get_ID()).append(" - ").append(getName()).append(" - ").append(getDescription())
|
.append(get_ID()).append(" - ").append(getName()).append(" - ").append(getDescription())
|
||||||
.append(", SeqNo=").append(getSeqNo()).append(", AmountType=").append(getAmountType())
|
.append(", SeqNo=").append(getSeqNo()).append(", AmountType=").append(getPAAmountType())
|
||||||
|
.append(", PeriodType=").append(getPAPeriodType())
|
||||||
.append(", CurrencyType=").append(getCurrencyType()).append("/").append(getC_Currency_ID())
|
.append(", CurrencyType=").append(getCurrencyType()).append("/").append(getC_Currency_ID())
|
||||||
.append(" - ColumnType=").append(getColumnType());
|
.append(" - ColumnType=").append(getColumnType());
|
||||||
if (isColumnTypeCalculation())
|
if (isColumnTypeCalculation())
|
||||||
|
@ -365,15 +360,6 @@ public class MReportColumn extends X_PA_ReportColumn
|
||||||
return sb.toString ();
|
return sb.toString ();
|
||||||
} // toString
|
} // toString
|
||||||
|
|
||||||
static final String AmountType_Balance = "B";
|
|
||||||
static final String AmountType_CR = "C";
|
|
||||||
static final String AmountType_DR = "D";
|
|
||||||
static final String AmountType_Qty = "Q";
|
|
||||||
//
|
|
||||||
static final String AmountType_Period = "P";
|
|
||||||
static final String AmountType_Year = "Y";
|
|
||||||
static final String AmountType_Total = "T";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculation Type Range
|
* Calculation Type Range
|
||||||
* @return true if range
|
* @return true if range
|
||||||
|
|
|
@ -179,22 +179,26 @@ public class MReportLine extends X_PA_ReportLine
|
||||||
*/
|
*/
|
||||||
public String getSelectClause (boolean withSum)
|
public String getSelectClause (boolean withSum)
|
||||||
{
|
{
|
||||||
String at = getAmountType().substring(0,1); // first letter
|
String at = getPAAmountType().substring(0,1); // first letter
|
||||||
StringBuffer sb = new StringBuffer();
|
StringBuffer sb = new StringBuffer();
|
||||||
if (withSum)
|
if (withSum)
|
||||||
sb.append("SUM(");
|
sb.append("SUM(");
|
||||||
if (AmountType_Balance.equals(at))
|
if (PAAMOUNTTYPE_BalanceExpectedSign.equals(at))
|
||||||
// sb.append("AmtAcctDr-AmtAcctCr");
|
// sb.append("AmtAcctDr-AmtAcctCr");
|
||||||
sb.append("acctBalance(Account_ID,AmtAcctDr,AmtAcctCr)");
|
sb.append("acctBalance(Account_ID,AmtAcctDr,AmtAcctCr)");
|
||||||
else if (AmountType_CR.equals(at))
|
else if (PAAMOUNTTYPE_BalanceAccountedSign.equals(at))
|
||||||
|
sb.append("AmtAcctDr-AmtAcctCr");
|
||||||
|
else if (PAAMOUNTTYPE_CreditOnly.equals(at))
|
||||||
sb.append("AmtAcctCr");
|
sb.append("AmtAcctCr");
|
||||||
else if (AmountType_DR.equals(at))
|
else if (PAAMOUNTTYPE_DebitOnly.equals(at))
|
||||||
sb.append("AmtAcctDr");
|
sb.append("AmtAcctDr");
|
||||||
else if (AmountType_Qty.equals(at))
|
else if (PAAMOUNTTYPE_QuantityAccountedSign.equals(at))
|
||||||
sb.append("Qty");
|
sb.append("Qty");
|
||||||
|
else if (PAAMOUNTTYPE_QuantityExpectedSign.equals(at))
|
||||||
|
sb.append("acctBalance(Account_ID,Qty,0)");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "AmountType=" + getAmountType () + ", at=" + at);
|
log.log(Level.SEVERE, "AmountType=" + getPAAmountType () + ", at=" + at);
|
||||||
return "NULL";
|
return "NULL";
|
||||||
}
|
}
|
||||||
if (withSum)
|
if (withSum)
|
||||||
|
@ -208,13 +212,10 @@ public class MReportLine extends X_PA_ReportLine
|
||||||
*/
|
*/
|
||||||
public boolean isPeriod()
|
public boolean isPeriod()
|
||||||
{
|
{
|
||||||
String at = getAmountType();
|
String pt = getPAPeriodType();
|
||||||
if (at == null)
|
if (pt == null)
|
||||||
return false;
|
return false;
|
||||||
return AMOUNTTYPE_PeriodBalance.equals(at)
|
return PAPERIODTYPE_Period.equals(pt);
|
||||||
|| AMOUNTTYPE_PeriodCreditOnly.equals(at)
|
|
||||||
|| AMOUNTTYPE_PeriodDebitOnly.equals(at)
|
|
||||||
|| AMOUNTTYPE_PeriodQuantity.equals(at);
|
|
||||||
} // isPeriod
|
} // isPeriod
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -223,13 +224,10 @@ public class MReportLine extends X_PA_ReportLine
|
||||||
*/
|
*/
|
||||||
public boolean isYear()
|
public boolean isYear()
|
||||||
{
|
{
|
||||||
String at = getAmountType();
|
String pt = getPAPeriodType();
|
||||||
if (at == null)
|
if (pt == null)
|
||||||
return false;
|
return false;
|
||||||
return AMOUNTTYPE_YearBalance.equals(at)
|
return PAPERIODTYPE_Year.equals(pt);
|
||||||
|| AMOUNTTYPE_YearCreditOnly.equals(at)
|
|
||||||
|| AMOUNTTYPE_YearDebitOnly.equals(at)
|
|
||||||
|| AMOUNTTYPE_YearQuantity.equals(at);
|
|
||||||
} // isYear
|
} // isYear
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -238,13 +236,10 @@ public class MReportLine extends X_PA_ReportLine
|
||||||
*/
|
*/
|
||||||
public boolean isTotal()
|
public boolean isTotal()
|
||||||
{
|
{
|
||||||
String at = getAmountType();
|
String pt = getPAPeriodType();
|
||||||
if (at == null)
|
if (pt == null)
|
||||||
return false;
|
return false;
|
||||||
return AMOUNTTYPE_TotalBalance.equals(at)
|
return PAPERIODTYPE_Total.equals(pt);
|
||||||
|| AMOUNTTYPE_TotalCreditOnly.equals(at)
|
|
||||||
|| AMOUNTTYPE_TotalDebitOnly.equals(at)
|
|
||||||
|| AMOUNTTYPE_TotalQuantity.equals(at);
|
|
||||||
} // isTotal
|
} // isTotal
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -254,11 +249,11 @@ public class MReportLine extends X_PA_ReportLine
|
||||||
*/
|
*/
|
||||||
public boolean isNatural()
|
public boolean isNatural()
|
||||||
{
|
{
|
||||||
String at = getAmountType();
|
String pt = getPAPeriodType();
|
||||||
if (at == null)
|
if (pt == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return AMOUNTTYPE_NaturalBalance.equals(at);
|
return PAPERIODTYPE_Natural.equals(pt);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -327,28 +322,20 @@ public class MReportLine extends X_PA_ReportLine
|
||||||
{
|
{
|
||||||
StringBuffer sb = new StringBuffer ("MReportLine[")
|
StringBuffer sb = new StringBuffer ("MReportLine[")
|
||||||
.append(get_ID()).append(" - ").append(getName()).append(" - ").append(getDescription())
|
.append(get_ID()).append(" - ").append(getName()).append(" - ").append(getDescription())
|
||||||
.append(", SeqNo=").append(getSeqNo()).append(", AmountType=").append(getAmountType())
|
.append(", SeqNo=").append(getSeqNo()).append(", AmountType=").append(getPAAmountType())
|
||||||
|
.append(", PeriodType=").append(getPAPeriodType())
|
||||||
.append(" - LineType=").append(getLineType());
|
.append(" - LineType=").append(getLineType());
|
||||||
if (isLineTypeCalculation())
|
if (isLineTypeCalculation())
|
||||||
sb.append(" - Calculation=").append(getCalculationType())
|
sb.append(" - Calculation=").append(getCalculationType())
|
||||||
.append(" - ").append(getOper_1_ID()).append(" - ").append(getOper_2_ID());
|
.append(" - ").append(getOper_1_ID()).append(" - ").append(getOper_2_ID());
|
||||||
else // SegmentValue
|
else // SegmentValue
|
||||||
sb.append(" - SegmentValue - PostingType=").append(getPostingType())
|
sb.append(" - SegmentValue - PostingType=").append(getPostingType())
|
||||||
.append(", AmountType=").append(getAmountType());
|
.append(", AmountType=").append(getPAAmountType())
|
||||||
|
.append(", PeriodType=").append(getPAPeriodType());
|
||||||
sb.append ("]");
|
sb.append ("]");
|
||||||
return sb.toString ();
|
return sb.toString ();
|
||||||
} // toString
|
} // toString
|
||||||
|
|
||||||
// First Letter
|
|
||||||
static final String AmountType_Balance = "B";
|
|
||||||
static final String AmountType_CR = "C";
|
|
||||||
static final String AmountType_DR = "D";
|
|
||||||
static final String AmountType_Qty = "Q";
|
|
||||||
// Second Letter
|
|
||||||
static final String AmountType_Period = "P";
|
|
||||||
static final String AmountType_Year = "Y";
|
|
||||||
static final String AmountType_Total = "T";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Line Type Calculation
|
* Line Type Calculation
|
||||||
* @return true if calculation
|
* @return true if calculation
|
||||||
|
|
|
@ -0,0 +1,411 @@
|
||||||
|
-- 02/10/2009 11:33:15 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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,53327,TO_DATE('2009-10-02 11:33:12','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','PA_Report Period Type',TO_DATE('2009-10-02 11:33:12','YYYY-MM-DD HH24:MI:SS'),100,'L')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:33:15 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53327 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:33:29 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53327,53536,TO_DATE('2009-10-02 11:33:28','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Total',TO_DATE('2009-10-02 11:33:28','YYYY-MM-DD HH24:MI:SS'),100,'T')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:33:29 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53536 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:33:38 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53327,53537,TO_DATE('2009-10-02 11:33:37','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Year',TO_DATE('2009-10-02 11:33:37','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:33:38 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53537 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:33:51 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53327,53538,TO_DATE('2009-10-02 11:33:50','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Period',TO_DATE('2009-10-02 11:33:50','YYYY-MM-DD HH24:MI:SS'),100,'P')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:33:51 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53538 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:40:15 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53327,53540,TO_DATE('2009-10-02 11:40:14','YYYY-MM-DD HH24:MI:SS'),100,'Year for P & L account, Total for Balance Sheet account','D','Y','Natural',TO_DATE('2009-10-02 11:40:14','YYYY-MM-DD HH24:MI:SS'),100,'N')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:40:15 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53540 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:42:57 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Reference SET IsActive='N', Name='PA_Report AmountType (deprecated)',Updated=TO_DATE('2009-10-02 11:42:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=235
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:42:57 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=235
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:43:16 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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,53328,TO_DATE('2009-10-02 11:43:15','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','PA_Report Amount Type',TO_DATE('2009-10-02 11:43:15','YYYY-MM-DD HH24:MI:SS'),100,'L')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:43:16 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53328 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:44:10 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53328,53541,TO_DATE('2009-10-02 11:44:09','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Balance (expected sign)',TO_DATE('2009-10-02 11:44:09','YYYY-MM-DD HH24:MI:SS'),100,'B')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:44:10 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53541 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:44:32 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53328,53542,TO_DATE('2009-10-02 11:44:30','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Credit Only',TO_DATE('2009-10-02 11:44:30','YYYY-MM-DD HH24:MI:SS'),100,'C')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:44:32 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53542 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:44:42 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53328,53543,TO_DATE('2009-10-02 11:44:41','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Debit Only',TO_DATE('2009-10-02 11:44:41','YYYY-MM-DD HH24:MI:SS'),100,'D')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:44:42 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53543 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:45:01 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53328,53544,TO_DATE('2009-10-02 11:45:00','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Quantity',TO_DATE('2009-10-02 11:45:00','YYYY-MM-DD HH24:MI:SS'),100,'Q')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:45:01 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53544 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:48:32 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53328,53545,TO_DATE('2009-10-02 11:48:31','YYYY-MM-DD HH24:MI:SS'),100,'DR - CR','D','Y','Balance (accounted sign)',TO_DATE('2009-10-02 11:48:31','YYYY-MM-DD HH24:MI:SS'),100,'S')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:48:32 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53545 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:52:38 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,54061,0,'PAPeriodType',TO_DATE('2009-10-02 11:52:35','YYYY-MM-DD HH24:MI:SS'),100,'PA Period Type','D','The Period Type to report on: Period, Year, Total or Natural; where Natural = Year for P & L accounts, Total for Balance Sheet accounts.','Y','Period Type','Period Type',TO_DATE('2009-10-02 11:52:35','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:52:38 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=54061 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:47 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,54062,0,'PAAmountType',TO_DATE('2009-10-02 11:56:46','YYYY-MM-DD HH24:MI:SS'),100,'PA Amount Type for reporting','D','The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (DR-CR). Balance (expected sign) adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element.','Y','Amount Type','Amount Type',TO_DATE('2009-10-02 11:56:46','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:47 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=54062 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:58 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Element SET Help='The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.',Updated=TO_DATE('2009-10-02 11:56:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=54061
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:58 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=54061
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:58 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Column SET ColumnName='PAPeriodType', Name='Period Type', Description='PA Period Type', Help='The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.' WHERE AD_Element_ID=54061
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:58 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='PAPeriodType', Name='Period Type', Description='PA Period Type', Help='The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.', AD_Element_ID=54061 WHERE UPPER(ColumnName)='PAPERIODTYPE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:58 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='PAPeriodType', Name='Period Type', Description='PA Period Type', Help='The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.' WHERE AD_Element_ID=54061 AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:58 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Field SET Name='Period Type', Description='PA Period Type', Help='The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=54061) AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:58:09 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,58553,54061,0,17,53327,446,'PAPeriodType',TO_DATE('2009-10-02 11:58:08','YYYY-MM-DD HH24:MI:SS'),100,'P','PA Period Type','D',1,'The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Period Type',0,TO_DATE('2009-10-02 11:58:08','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:58:09 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58553 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:58:17 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
ALTER TABLE PA_ReportColumn ADD PAPeriodType CHAR(1) DEFAULT 'P'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:59:04 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,58554,54062,0,17,53328,446,'PAAmountType',TO_DATE('2009-10-02 11:59:03','YYYY-MM-DD HH24:MI:SS'),100,'B','PA Amount Type for reporting','D',1,'The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (DR-CR). Balance (expected sign) adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Amount Type',0,TO_DATE('2009-10-02 11:59:03','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:59:04 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58554 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:01:36 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Element SET Help='The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.',Updated=TO_DATE('2009-10-02 12:01:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=54062
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:01:36 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=54062
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:01:36 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Column SET ColumnName='PAAmountType', Name='Amount Type', Description='PA Amount Type for reporting', Help='The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.' WHERE AD_Element_ID=54062
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:01:36 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='PAAmountType', Name='Amount Type', Description='PA Amount Type for reporting', Help='The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.', AD_Element_ID=54062 WHERE UPPER(ColumnName)='PAAMOUNTTYPE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:01:36 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='PAAmountType', Name='Amount Type', Description='PA Amount Type for reporting', Help='The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.' WHERE AD_Element_ID=54062 AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:01:36 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Field SET Name='Amount Type', Description='PA Amount Type for reporting', Help='The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=54062) AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:03:11 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_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,58555,54062,0,17,53328,448,'PAAmountType',TO_DATE('2009-10-02 12:03:10','YYYY-MM-DD HH24:MI:SS'),100,'PA Amount Type for reporting','D',2,'The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Amount Type',0,TO_DATE('2009-10-02 12:03:10','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:03:11 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58555 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:03:20 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Column SET FieldLength=1,Updated=TO_DATE('2009-10-02 12:03:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=58555
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:03:23 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
ALTER TABLE PA_ReportLine ADD PAAmountType CHAR(1) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:03:48 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_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,58556,54061,0,17,53327,448,'PAPeriodType',TO_DATE('2009-10-02 12:03:47','YYYY-MM-DD HH24:MI:SS'),100,'PA Period Type','D',1,'The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Period Type',0,TO_DATE('2009-10-02 12:03:47','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:03:48 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58556 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:03:50 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
ALTER TABLE PA_ReportLine ADD PAPeriodType CHAR(1) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:04:03 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
ALTER TABLE PA_ReportColumn ADD PAAmountType CHAR(1) DEFAULT 'B'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:04:29 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Column SET IsActive='N',Updated=TO_DATE('2009-10-02 12:04:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=6019
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:04:39 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Column SET IsActive='N',Updated=TO_DATE('2009-10-02 12:04:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=7707
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:09:57 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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,SeqNo,Updated,UpdatedBy) VALUES (0,58554,58041,0,374,TO_DATE('2009-10-02 12:09:56','YYYY-MM-DD HH24:MI:SS'),100,'PA Amount Type for reporting',14,'D','The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.','Y','Y','Y','N','N','N','N','N','Amount Type',110,TO_DATE('2009-10-02 12:09:56','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:09:57 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58041 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:11:17 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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,SeqNo,Updated,UpdatedBy) VALUES (0,58553,58042,0,374,TO_DATE('2009-10-02 12:11:16','YYYY-MM-DD HH24:MI:SS'),100,'PA Period Type',14,'D','The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.','Y','Y','Y','N','N','N','N','Y','Period Type',115,TO_DATE('2009-10-02 12:11:16','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:11:17 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58042 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:11:26 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Field SET IsActive='N',Updated=TO_DATE('2009-10-02 12:11:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4760
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:13:14 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,DisplayLogic,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,58555,58043,0,376,TO_DATE('2009-10-02 12:13:13','YYYY-MM-DD HH24:MI:SS'),100,'PA Amount Type for reporting',14,'@LineType@=S','D','The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.','Y','Y','Y','N','N','N','N','N','Amount Type',180,TO_DATE('2009-10-02 12:13:13','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:13:14 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58043 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:13:46 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,DisplayLogic,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,58556,58044,0,376,TO_DATE('2009-10-02 12:13:45','YYYY-MM-DD HH24:MI:SS'),100,'PA Period Type',14,'@LineType@=S','D','The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.','Y','Y','Y','N','N','N','N','Y','Period Type',185,TO_DATE('2009-10-02 12:13:45','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:13:46 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58044 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:13:57 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Field SET IsActive='N',Updated=TO_DATE('2009-10-02 12:13:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5807
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:16:06 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_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,58557,54062,0,17,53328,535,'PAAmountType',TO_DATE('2009-10-02 12:16:05','YYYY-MM-DD HH24:MI:SS'),100,'PA Amount Type for reporting','D',1,'The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Amount Type',0,TO_DATE('2009-10-02 12:16:05','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:16:06 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58557 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:16:10 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
ALTER TABLE I_ReportLine ADD PAAmountType CHAR(1) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:16:40 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_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,58558,54061,0,17,53327,535,'PAPeriodType',TO_DATE('2009-10-02 12:16:34','YYYY-MM-DD HH24:MI:SS'),100,'PA Period Type','D',1,'The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Period Type',0,TO_DATE('2009-10-02 12:16:34','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:16:40 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58558 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:16:43 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
ALTER TABLE I_ReportLine ADD PAPeriodType CHAR(1) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:16:52 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Column SET IsActive='N',Updated=TO_DATE('2009-10-02 12:16:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=7954
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:18:35 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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,SeqNo,Updated,UpdatedBy) VALUES (0,58557,58045,0,444,TO_DATE('2009-10-02 12:18:35','YYYY-MM-DD HH24:MI:SS'),100,'PA Amount Type for reporting',14,'D','The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.','Y','Y','Y','N','N','N','N','N','Amount Type',160,TO_DATE('2009-10-02 12:18:35','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:18:35 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58045 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:18:56 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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,SeqNo,Updated,UpdatedBy) VALUES (0,58558,58046,0,444,TO_DATE('2009-10-02 12:18:55','YYYY-MM-DD HH24:MI:SS'),100,'PA Period Type',14,'D','The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.','Y','Y','Y','N','N','N','N','N','Period Type',165,TO_DATE('2009-10-02 12:18:55','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:18:56 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58046 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:19:04 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Field SET IsActive='N',Updated=TO_DATE('2009-10-02 12:19:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6043
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 1:48:32 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53328,53546,TO_DATE('2009-10-02 13:48:30','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Quantity (accounted sign)',TO_DATE('2009-10-02 13:48:30','YYYY-MM-DD HH24:MI:SS'),100,'R')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 1:48:32 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53546 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 1:48:43 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Ref_List SET Name='Quantity (expected sign)',Updated=TO_DATE('2009-10-02 13:48:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53544
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 1:48:43 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53544
|
||||||
|
;
|
||||||
|
|
||||||
|
update pa_reportline set paamounttype = substr(amounttype, 1,1), paperiodtype = substr(amounttype,2,1);
|
||||||
|
|
||||||
|
update pa_reportcolumn set paamounttype = substr(amounttype, 1,1), paperiodtype = substr(amounttype,2,1);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,411 @@
|
||||||
|
-- 02/10/2009 11:33:15 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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,53327,TO_TIMESTAMP('2009-10-02 11:33:12','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','PA_Report Period Type',TO_TIMESTAMP('2009-10-02 11:33:12','YYYY-MM-DD HH24:MI:SS'),100,'L')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:33:15 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53327 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:33:29 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53327,53536,TO_TIMESTAMP('2009-10-02 11:33:28','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Total',TO_TIMESTAMP('2009-10-02 11:33:28','YYYY-MM-DD HH24:MI:SS'),100,'T')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:33:29 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53536 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:33:38 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53327,53537,TO_TIMESTAMP('2009-10-02 11:33:37','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Year',TO_TIMESTAMP('2009-10-02 11:33:37','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:33:38 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53537 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:33:51 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53327,53538,TO_TIMESTAMP('2009-10-02 11:33:50','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Period',TO_TIMESTAMP('2009-10-02 11:33:50','YYYY-MM-DD HH24:MI:SS'),100,'P')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:33:51 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53538 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:40:15 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53327,53540,TO_TIMESTAMP('2009-10-02 11:40:14','YYYY-MM-DD HH24:MI:SS'),100,'Year for P & L account, Total for Balance Sheet account','D','Y','Natural',TO_TIMESTAMP('2009-10-02 11:40:14','YYYY-MM-DD HH24:MI:SS'),100,'N')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:40:15 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53540 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:42:57 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Reference SET IsActive='N', Name='PA_Report AmountType (deprecated)',Updated=TO_TIMESTAMP('2009-10-02 11:42:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=235
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:42:57 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=235
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:43:16 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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,53328,TO_TIMESTAMP('2009-10-02 11:43:15','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','PA_Report Amount Type',TO_TIMESTAMP('2009-10-02 11:43:15','YYYY-MM-DD HH24:MI:SS'),100,'L')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:43:16 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53328 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:44:10 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53328,53541,TO_TIMESTAMP('2009-10-02 11:44:09','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Balance (expected sign)',TO_TIMESTAMP('2009-10-02 11:44:09','YYYY-MM-DD HH24:MI:SS'),100,'B')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:44:10 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53541 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:44:32 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53328,53542,TO_TIMESTAMP('2009-10-02 11:44:30','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Credit Only',TO_TIMESTAMP('2009-10-02 11:44:30','YYYY-MM-DD HH24:MI:SS'),100,'C')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:44:32 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53542 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:44:42 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53328,53543,TO_TIMESTAMP('2009-10-02 11:44:41','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Debit Only',TO_TIMESTAMP('2009-10-02 11:44:41','YYYY-MM-DD HH24:MI:SS'),100,'D')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:44:42 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53543 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:45:01 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53328,53544,TO_TIMESTAMP('2009-10-02 11:45:00','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Quantity',TO_TIMESTAMP('2009-10-02 11:45:00','YYYY-MM-DD HH24:MI:SS'),100,'Q')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:45:01 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53544 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:48:32 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53328,53545,TO_TIMESTAMP('2009-10-02 11:48:31','YYYY-MM-DD HH24:MI:SS'),100,'DR - CR','D','Y','Balance (accounted sign)',TO_TIMESTAMP('2009-10-02 11:48:31','YYYY-MM-DD HH24:MI:SS'),100,'S')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:48:32 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53545 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:52:38 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,54061,0,'PAPeriodType',TO_TIMESTAMP('2009-10-02 11:52:35','YYYY-MM-DD HH24:MI:SS'),100,'PA Period Type','D','The Period Type to report on: Period, Year, Total or Natural; where Natural = Year for P & L accounts, Total for Balance Sheet accounts.','Y','Period Type','Period Type',TO_TIMESTAMP('2009-10-02 11:52:35','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:52:38 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=54061 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:47 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,54062,0,'PAAmountType',TO_TIMESTAMP('2009-10-02 11:56:46','YYYY-MM-DD HH24:MI:SS'),100,'PA Amount Type for reporting','D','The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (DR-CR). Balance (expected sign) adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element.','Y','Amount Type','Amount Type',TO_TIMESTAMP('2009-10-02 11:56:46','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:47 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=54062 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:58 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Element SET Help='The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.',Updated=TO_TIMESTAMP('2009-10-02 11:56:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=54061
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:58 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=54061
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:58 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Column SET ColumnName='PAPeriodType', Name='Period Type', Description='PA Period Type', Help='The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.' WHERE AD_Element_ID=54061
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:58 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='PAPeriodType', Name='Period Type', Description='PA Period Type', Help='The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.', AD_Element_ID=54061 WHERE UPPER(ColumnName)='PAPERIODTYPE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:58 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='PAPeriodType', Name='Period Type', Description='PA Period Type', Help='The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.' WHERE AD_Element_ID=54061 AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:56:58 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Field SET Name='Period Type', Description='PA Period Type', Help='The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=54061) AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:58:09 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,58553,54061,0,17,53327,446,'PAPeriodType',TO_TIMESTAMP('2009-10-02 11:58:08','YYYY-MM-DD HH24:MI:SS'),100,'P','PA Period Type','D',1,'The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Period Type',0,TO_TIMESTAMP('2009-10-02 11:58:08','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:58:09 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58553 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:58:17 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
ALTER TABLE PA_ReportColumn ADD COLUMN PAPeriodType CHAR(1) DEFAULT 'P'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:59:04 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,58554,54062,0,17,53328,446,'PAAmountType',TO_TIMESTAMP('2009-10-02 11:59:03','YYYY-MM-DD HH24:MI:SS'),100,'B','PA Amount Type for reporting','D',1,'The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (DR-CR). Balance (expected sign) adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Amount Type',0,TO_TIMESTAMP('2009-10-02 11:59:03','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 11:59:04 AM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58554 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:01:36 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Element SET Help='The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.',Updated=TO_TIMESTAMP('2009-10-02 12:01:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=54062
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:01:36 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=54062
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:01:36 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Column SET ColumnName='PAAmountType', Name='Amount Type', Description='PA Amount Type for reporting', Help='The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.' WHERE AD_Element_ID=54062
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:01:36 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='PAAmountType', Name='Amount Type', Description='PA Amount Type for reporting', Help='The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.', AD_Element_ID=54062 WHERE UPPER(ColumnName)='PAAMOUNTTYPE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:01:36 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='PAAmountType', Name='Amount Type', Description='PA Amount Type for reporting', Help='The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.' WHERE AD_Element_ID=54062 AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:01:36 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Field SET Name='Amount Type', Description='PA Amount Type for reporting', Help='The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=54062) AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:03:11 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_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,58555,54062,0,17,53328,448,'PAAmountType',TO_TIMESTAMP('2009-10-02 12:03:10','YYYY-MM-DD HH24:MI:SS'),100,'PA Amount Type for reporting','D',2,'The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Amount Type',0,TO_TIMESTAMP('2009-10-02 12:03:10','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:03:11 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58555 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:03:20 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Column SET FieldLength=1,Updated=TO_TIMESTAMP('2009-10-02 12:03:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=58555
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:03:23 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
ALTER TABLE PA_ReportLine ADD COLUMN PAAmountType CHAR(1) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:03:48 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_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,58556,54061,0,17,53327,448,'PAPeriodType',TO_TIMESTAMP('2009-10-02 12:03:47','YYYY-MM-DD HH24:MI:SS'),100,'PA Period Type','D',1,'The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Period Type',0,TO_TIMESTAMP('2009-10-02 12:03:47','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:03:48 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58556 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:03:50 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
ALTER TABLE PA_ReportLine ADD COLUMN PAPeriodType CHAR(1) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:04:03 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
ALTER TABLE PA_ReportColumn ADD COLUMN PAAmountType CHAR(1) DEFAULT 'B'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:04:29 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Column SET IsActive='N',Updated=TO_TIMESTAMP('2009-10-02 12:04:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=6019
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:04:39 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Column SET IsActive='N',Updated=TO_TIMESTAMP('2009-10-02 12:04:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=7707
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:09:57 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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,SeqNo,Updated,UpdatedBy) VALUES (0,58554,58041,0,374,TO_TIMESTAMP('2009-10-02 12:09:56','YYYY-MM-DD HH24:MI:SS'),100,'PA Amount Type for reporting',14,'D','The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.','Y','Y','Y','N','N','N','N','N','Amount Type',110,TO_TIMESTAMP('2009-10-02 12:09:56','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:09:57 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58041 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:11:17 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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,SeqNo,Updated,UpdatedBy) VALUES (0,58553,58042,0,374,TO_TIMESTAMP('2009-10-02 12:11:16','YYYY-MM-DD HH24:MI:SS'),100,'PA Period Type',14,'D','The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.','Y','Y','Y','N','N','N','N','Y','Period Type',115,TO_TIMESTAMP('2009-10-02 12:11:16','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:11:17 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58042 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:11:26 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Field SET IsActive='N',Updated=TO_TIMESTAMP('2009-10-02 12:11:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4760
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:13:14 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,DisplayLogic,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,58555,58043,0,376,TO_TIMESTAMP('2009-10-02 12:13:13','YYYY-MM-DD HH24:MI:SS'),100,'PA Amount Type for reporting',14,'@LineType@=S','D','The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.','Y','Y','Y','N','N','N','N','N','Amount Type',180,TO_TIMESTAMP('2009-10-02 12:13:13','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:13:14 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58043 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:13:46 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,DisplayLogic,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,58556,58044,0,376,TO_TIMESTAMP('2009-10-02 12:13:45','YYYY-MM-DD HH24:MI:SS'),100,'PA Period Type',14,'@LineType@=S','D','The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.','Y','Y','Y','N','N','N','N','Y','Period Type',185,TO_TIMESTAMP('2009-10-02 12:13:45','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:13:46 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58044 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:13:57 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Field SET IsActive='N',Updated=TO_TIMESTAMP('2009-10-02 12:13:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5807
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:16:06 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_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,58557,54062,0,17,53328,535,'PAAmountType',TO_TIMESTAMP('2009-10-02 12:16:05','YYYY-MM-DD HH24:MI:SS'),100,'PA Amount Type for reporting','D',1,'The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Amount Type',0,TO_TIMESTAMP('2009-10-02 12:16:05','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:16:06 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58557 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:16:10 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
ALTER TABLE I_ReportLine ADD COLUMN PAAmountType CHAR(1) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:16:40 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_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,58558,54061,0,17,53327,535,'PAPeriodType',TO_TIMESTAMP('2009-10-02 12:16:34','YYYY-MM-DD HH24:MI:SS'),100,'PA Period Type','D',1,'The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Period Type',0,TO_TIMESTAMP('2009-10-02 12:16:34','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:16:40 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58558 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:16:43 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
ALTER TABLE I_ReportLine ADD COLUMN PAPeriodType CHAR(1) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:16:52 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Column SET IsActive='N',Updated=TO_TIMESTAMP('2009-10-02 12:16:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=7954
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:18:35 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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,SeqNo,Updated,UpdatedBy) VALUES (0,58557,58045,0,444,TO_TIMESTAMP('2009-10-02 12:18:35','YYYY-MM-DD HH24:MI:SS'),100,'PA Amount Type for reporting',14,'D','The amount type to report on: Quantity, Credit Only, Debit Only, Balance (expected sign) or Balance (accounted sign). "Expected sign" adjusts the sign of the result based on the Account Type and Expected Sign of each Account Element, whereas "accounted sign" always returns DR-CR.','Y','Y','Y','N','N','N','N','N','Amount Type',160,TO_TIMESTAMP('2009-10-02 12:18:35','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:18:35 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58045 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:18:56 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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,SeqNo,Updated,UpdatedBy) VALUES (0,58558,58046,0,444,TO_TIMESTAMP('2009-10-02 12:18:55','YYYY-MM-DD HH24:MI:SS'),100,'PA Period Type',14,'D','The Period Type to report on: Period, Year, Total or Natural. Natural = Year for P & L accounts, Total for Balance Sheet accounts.','Y','Y','Y','N','N','N','N','N','Period Type',165,TO_TIMESTAMP('2009-10-02 12:18:55','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:18:56 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=58046 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 12:19:04 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Field SET IsActive='N',Updated=TO_TIMESTAMP('2009-10-02 12:19:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6043
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 1:48:32 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53328,53546,TO_TIMESTAMP('2009-10-02 13:48:30','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Quantity (accounted sign)',TO_TIMESTAMP('2009-10-02 13:48:30','YYYY-MM-DD HH24:MI:SS'),100,'R')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 1:48:32 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
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=53546 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 1:48:43 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Ref_List SET Name='Quantity (expected sign)',Updated=TO_TIMESTAMP('2009-10-02 13:48:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53544
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 02/10/2009 1:48:43 PM
|
||||||
|
-- Add signed amount type to fin report
|
||||||
|
UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53544
|
||||||
|
;
|
||||||
|
|
||||||
|
update pa_reportline set paamounttype = substr(amounttype, 1,1), paperiodtype = substr(amounttype,2,1);
|
||||||
|
|
||||||
|
update pa_reportcolumn set paamounttype = substr(amounttype, 1,1), paperiodtype = substr(amounttype,2,1);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue