Fix sql errors.
This commit is contained in:
parent
d6f88e2fd8
commit
36c7469470
|
@ -11,7 +11,7 @@ INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_
|
|||
|
||||
-- 26/09/2008 16:59:38
|
||||
-- Financial reporting improvements
|
||||
INSERT INTO AD_Column (AD_Org_ID,AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,0,56351,53686,10,489,'FormatPattern2',TO_TIMESTAMP('2008-09-26 16:59:37','YYYY-MM-DD HH24:MI:SS'),100,'The pattern used to format a number or date.','D',22,'A string complying with either Java SimpleDateFormat or DecimalFormat pattern syntax used to override the default presentation format of a date or number type field.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Format Pattern22',0,TO_TIMESTAMP('2008-09-26 16:59:37','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
INSERT INTO AD_Column (AD_Org_ID,AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,0,56351,53687,10,489,'FormatPattern',TO_TIMESTAMP('2008-09-26 16:59:37','YYYY-MM-DD HH24:MI:SS'),100,'The pattern used to format a number or date.','D',22,'A string complying with either Java SimpleDateFormat or DecimalFormat pattern syntax used to override the default presentation format of a date or number type field.','Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Format Pattern',0,TO_TIMESTAMP('2008-09-26 16:59:37','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- 26/09/2008 16:59:38
|
||||
|
@ -54,11 +54,6 @@ INSERT INTO AD_Column (AD_Org_ID,AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Refe
|
|||
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=56353 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- 26/09/2008 17:04:41
|
||||
-- Financial reporting improvements
|
||||
CREATE TABLE PA_ReportColumn (AD_Client_ID NUMERIC(10) DEFAULT NULL NOT NULL, AD_Org_ID NUMERIC(10) DEFAULT NULL NOT NULL, AmountType VARCHAR(2) DEFAULT 'BP', C_Activity_ID NUMERIC(10), CalculationType CHAR(1) DEFAULT 'A', C_BPartner_ID NUMERIC(10), C_Campaign_ID NUMERIC(10), C_Currency_ID NUMERIC(10), C_ElementValue_ID NUMERIC(10), C_Location_ID NUMERIC(10), ColumnType CHAR(1) DEFAULT 'R' NOT NULL, C_Project_ID NUMERIC(10), Created TIMESTAMP NOT NULL, CreatedBy NUMERIC(10) NOT NULL, C_SalesRegion_ID NUMERIC(10), CurrencyType CHAR(1) DEFAULT 'A', Description VARCHAR(255), ElementType VARCHAR(2), FormatPattern VARCHAR(22), GL_Budget_ID NUMERIC(10), IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, IsAdhocConversion CHAR(1) DEFAULT 'N' CHECK (IsAdhocConversion IN ('Y','N')), IsIncludeNullsActivity CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsActivity IN ('Y','N')) NOT NULL, IsIncludeNullsBPartner CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsBPartner IN ('Y','N')) NOT NULL, IsIncludeNullsCampaign CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsCampaign IN ('Y','N')) NOT NULL, IsIncludeNullsElementValue CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsElementValue IN ('Y','N')) NOT NULL, IsIncludeNullsLocation CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsLocation IN ('Y','N')) NOT NULL, IsIncludeNullsOrg CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsOrg IN ('Y','N')) NOT NULL, IsIncludeNullsProduct CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsProduct IN ('Y','N')) NOT NULL, IsIncludeNullsProject CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsProject IN ('Y','N')) NOT NULL, IsIncludeNullsSalesRegion CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsSalesRegion IN ('Y','N')) NOT NULL, IsIncludeNullsUserElement1 CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsUserElement1 IN ('Y','N')) NOT NULL, IsIncludeNullsUserElement2 CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsUserElement2 IN ('Y','N')) NOT NULL, IsPrinted CHAR(1) DEFAULT 'Y' CHECK (IsPrinted IN ('Y','N')) NOT NULL, M_Product_ID NUMERIC(10), Name VARCHAR(60) NOT NULL, Oper_1_ID NUMERIC(10), Oper_2_ID NUMERIC(10), Org_ID NUMERIC(10), PA_ReportColumn_ID NUMERIC(10) NOT NULL, PA_ReportColumnSet_ID NUMERIC(10) NOT NULL, PostingType CHAR(1) DEFAULT 'A' NOT NULL, RelativePeriod NUMERIC DEFAULT 0, SeqNo NUMERIC(10) DEFAULT NULL NOT NULL, Updated TIMESTAMP NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, UserElement1_ID NUMERIC(10), UserElement2_ID NUMERIC(10), CONSTRAINT PA_ReportColumn_Key PRIMARY KEY (PA_ReportColumn_ID))
|
||||
;
|
||||
|
||||
-- 26/09/2008 17:09:15
|
||||
-- Financial reporting improvements
|
||||
INSERT INTO AD_Element (AD_Org_ID,AD_Client_ID,AD_Element_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,0,53688,'Factor',TO_TIMESTAMP('2008-09-26 17:09:14','YYYY-MM-DD HH24:MI:SS'),100,'Scaling factor.','D','Numbers are divided by the scaling factor for presentation. E.g. 123,000 with a scaling factor of 1,000 will display as 123.','Y','Factor','Factor',TO_TIMESTAMP('2008-09-26 17:09:14','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
|
@ -119,10 +114,6 @@ INSERT INTO AD_Field (AD_Column_ID,AD_Org_ID,AD_Client_ID,AD_Field_ID,AD_Tab_ID,
|
|||
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=56376 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- 26/09/2008 17:22:27
|
||||
-- Financial reporting improvements
|
||||
CREATE TABLE PA_ReportColumn (AD_Client_ID NUMERIC(10) DEFAULT NULL NOT NULL, AD_Org_ID NUMERIC(10) DEFAULT NULL NOT NULL, AmountType VARCHAR(2) DEFAULT 'BP', C_Activity_ID NUMERIC(10), CalculationType CHAR(1) DEFAULT 'A', C_BPartner_ID NUMERIC(10), C_Campaign_ID NUMERIC(10), C_Currency_ID NUMERIC(10), C_ElementValue_ID NUMERIC(10), C_Location_ID NUMERIC(10), ColumnType CHAR(1) DEFAULT 'R' NOT NULL, C_Project_ID NUMERIC(10), Created TIMESTAMP NOT NULL, CreatedBy NUMERIC(10) NOT NULL, C_SalesRegion_ID NUMERIC(10), CurrencyType CHAR(1) DEFAULT 'A', Description VARCHAR(255), ElementType VARCHAR(2), Factor NUMERIC(10), FormatPattern VARCHAR(22), GL_Budget_ID NUMERIC(10), IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, IsAdhocConversion CHAR(1) DEFAULT 'N' CHECK (IsAdhocConversion IN ('Y','N')), IsIncludeNullsActivity CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsActivity IN ('Y','N')) NOT NULL, IsIncludeNullsBPartner CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsBPartner IN ('Y','N')) NOT NULL, IsIncludeNullsCampaign CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsCampaign IN ('Y','N')) NOT NULL, IsIncludeNullsElementValue CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsElementValue IN ('Y','N')) NOT NULL, IsIncludeNullsLocation CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsLocation IN ('Y','N')) NOT NULL, IsIncludeNullsOrg CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsOrg IN ('Y','N')) NOT NULL, IsIncludeNullsProduct CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsProduct IN ('Y','N')) NOT NULL, IsIncludeNullsProject CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsProject IN ('Y','N')) NOT NULL, IsIncludeNullsSalesRegion CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsSalesRegion IN ('Y','N')) NOT NULL, IsIncludeNullsUserElement1 CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsUserElement1 IN ('Y','N')) NOT NULL, IsIncludeNullsUserElement2 CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsUserElement2 IN ('Y','N')) NOT NULL, IsPrinted CHAR(1) DEFAULT 'Y' CHECK (IsPrinted IN ('Y','N')) NOT NULL, M_Product_ID NUMERIC(10), Name VARCHAR(60) NOT NULL, Oper_1_ID NUMERIC(10), Oper_2_ID NUMERIC(10), Org_ID NUMERIC(10), PA_ReportColumn_ID NUMERIC(10) NOT NULL, PA_ReportColumnSet_ID NUMERIC(10) NOT NULL, PostingType CHAR(1) DEFAULT 'A' NOT NULL, RelativePeriod NUMERIC DEFAULT 0, SeqNo NUMERIC(10) DEFAULT NULL NOT NULL, Updated TIMESTAMP NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, UserElement1_ID NUMERIC(10), UserElement2_ID NUMERIC(10), CONSTRAINT PA_ReportColumn_Key PRIMARY KEY (PA_ReportColumn_ID))
|
||||
;
|
||||
|
||||
-- 26/09/2008 17:30:21
|
||||
-- Financial reporting improvements
|
||||
|
|
Loading…
Reference in New Issue