From dbf854396a5148c2314f5e5504e73484079c62e9 Mon Sep 17 00:00:00 2001 From: Deepak Pansheriya Date: Tue, 16 Oct 2012 13:08:12 +0530 Subject: [PATCH 1/4] IDEMPIERE-389: Appending Host name and IP to server name and adding field for server name on session audit --- .../oracle/934_IDEMPIERE-389.sql | 6 +- .../936_IDEMPIERE-389_ServerName_Field.sql | 133 ++++++++++++++++++ .../postgresql/934_IDEMPIERE-389.sql | 6 +- .../936_IDEMPIERE-389_ServerName_Field.sql | 133 ++++++++++++++++++ .../src/org/compiere/model/MSession.java | 6 +- .../src/org/compiere/util/WebUtil.java | 29 ++++ 6 files changed, 305 insertions(+), 8 deletions(-) create mode 100644 migration/360lts-release/oracle/936_IDEMPIERE-389_ServerName_Field.sql create mode 100644 migration/360lts-release/postgresql/936_IDEMPIERE-389_ServerName_Field.sql diff --git a/migration/360lts-release/oracle/934_IDEMPIERE-389.sql b/migration/360lts-release/oracle/934_IDEMPIERE-389.sql index 4bbf7d9174..1d73de3e20 100644 --- a/migration/360lts-release/oracle/934_IDEMPIERE-389.sql +++ b/migration/360lts-release/oracle/934_IDEMPIERE-389.sql @@ -1,6 +1,6 @@ -- Oct 15, 2012 6:21:27 PM IST -- IDEMPIERE-389 Adding server name on AD_Session -INSERT INTO AD_Element (ColumnName,AD_Element_ID,Help,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ServerName',200182,'Load balancing instance name','U','Server Name','Server Name','7bd7b80a-d97d-4643-8d69-e2856a2a144a',0,TO_DATE('2012-10-15 18:21:26','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-10-15 18:21:26','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +INSERT INTO AD_Element (ColumnName,AD_Element_ID,Help,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ServerName',200182,'Node instance name','D','Server Name','Server Name','7bd7b80a-d97d-4643-8d69-e2856a2a144a',0,TO_DATE('2012-10-15 18:21:26','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-10-15 18:21:26','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') ; -- Oct 15, 2012 6:21:27 PM IST @@ -10,7 +10,7 @@ INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_He -- Oct 15, 2012 6:22:04 PM IST -- IDEMPIERE-389 Adding server name on AD_Session -INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection) VALUES (0,566,200613,'U','N','N','N',0,'N',40,'Y',14,'N','N',200182,'N','Y','14d3c02e-9f80-40cb-8507-e040fbaf3ef6','N','Y','N','ServerName','Load balancing instance name','Server Name','Y',100,TO_DATE('2012-10-15 18:22:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-15 18:22:03','YYYY-MM-DD HH24:MI:SS'),100,0,0) +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection) VALUES (0,566,200613,'D','N','N','N',0,'N',80,'Y',14,'N','N',200182,'N','Y','14d3c02e-9f80-40cb-8507-e040fbaf3ef6','N','Y','N','ServerName','Node instance name','Server Name','Y',100,TO_DATE('2012-10-15 18:22:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-15 18:22:03','YYYY-MM-DD HH24:MI:SS'),100,0,0) ; -- Oct 15, 2012 6:22:04 PM IST @@ -20,7 +20,7 @@ INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Clien -- Oct 15, 2012 6:22:45 PM IST -- IDEMPIERE-389 Adding server name on AD_Session -ALTER TABLE AD_Session ADD ServerName NVARCHAR2(40) DEFAULT NULL +ALTER TABLE AD_Session ADD ServerName NVARCHAR2(80) DEFAULT NULL ; SELECT register_migration_script('934_IDEMPIERE-389.sql') FROM dual diff --git a/migration/360lts-release/oracle/936_IDEMPIERE-389_ServerName_Field.sql b/migration/360lts-release/oracle/936_IDEMPIERE-389_ServerName_Field.sql new file mode 100644 index 0000000000..a763f847d9 --- /dev/null +++ b/migration/360lts-release/oracle/936_IDEMPIERE-389_ServerName_Field.sql @@ -0,0 +1,133 @@ +-- Oct 16, 2012 11:39:49 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',475,36,'N','N',60501,'Y',200638,'N','D','AD_Session_UU','N','Y','bf38a28b-bfab-4c21-8626-18322acd7807',100,0,TO_DATE('2012-10-16 11:39:47','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-16 11:39:47','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 16, 2012 11:39:49 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200638 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 16, 2012 11:39:50 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',475,40,'N','N',200613,'Y',200639,'N','Node instance name','D','Server Name','N','Y','7b8abf7a-5cb6-4d8e-9ed4-a0191ea16c7f',100,0,TO_DATE('2012-10-16 11:39:49','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-16 11:39:49','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 16, 2012 11:39:50 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200639 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 16, 2012 11:42:31 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=200639 +; + +-- Oct 16, 2012 11:42:31 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=6620 +; + +-- Oct 16, 2012 11:42:31 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=54394 +; + +-- Oct 16, 2012 11:42:31 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=54395 +; + +-- Oct 16, 2012 11:42:31 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=54393 +; + +-- Oct 16, 2012 11:42:31 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=6622 +; + +-- Oct 16, 2012 11:42:31 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNoGrid=140,IsDisplayedGrid='Y' WHERE AD_Field_ID=200638 +; + +-- Oct 16, 2012 12:01:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200639 +; + +-- Oct 16, 2012 12:01:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=6620 +; + +-- Oct 16, 2012 12:01:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54394 +; + +-- Oct 16, 2012 12:01:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54395 +; + +-- Oct 16, 2012 12:01:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54393 +; + +-- Oct 16, 2012 12:01:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=6622 +; + +-- Oct 16, 2012 12:01:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=200638 +; + +-- Oct 16, 2012 12:03:37 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2012-10-16 12:03:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200639 +; + +-- Oct 16, 2012 12:04:28 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET XPosition=3,Updated=TO_DATE('2012-10-16 12:04:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200639 +; + +-- Oct 16, 2012 12:05:12 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET XPosition=1,Updated=TO_DATE('2012-10-16 12:05:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200639 +; + +-- Oct 16, 2012 12:05:44 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2012-10-16 12:05:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200639 +; + +-- Oct 16, 2012 12:06:43 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET IsSameLine='Y', XPosition=4,Updated=TO_DATE('2012-10-16 12:06:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6620 +; + +-- Oct 16, 2012 12:11:26 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=110, XPosition=1,Updated=TO_DATE('2012-10-16 12:11:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54394 +; + +-- Oct 16, 2012 12:11:43 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=100,Updated=TO_DATE('2012-10-16 12:11:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54395 +; + +-- Oct 16, 2012 12:12:44 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET XPosition=4,Updated=TO_DATE('2012-10-16 12:12:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54394 +; + + +SELECT register_migration_script('936_IDEMPIERE-389_ServerName_Field.sql') FROM dual +; diff --git a/migration/360lts-release/postgresql/934_IDEMPIERE-389.sql b/migration/360lts-release/postgresql/934_IDEMPIERE-389.sql index c2940b2e68..7f701aa734 100644 --- a/migration/360lts-release/postgresql/934_IDEMPIERE-389.sql +++ b/migration/360lts-release/postgresql/934_IDEMPIERE-389.sql @@ -1,6 +1,6 @@ -- Oct 15, 2012 6:21:27 PM IST -- IDEMPIERE-389 Adding server name on AD_Session -INSERT INTO AD_Element (ColumnName,AD_Element_ID,Help,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ServerName',200182,'Load balancing instance name','U','Server Name','Server Name','7bd7b80a-d97d-4643-8d69-e2856a2a144a',0,TO_TIMESTAMP('2012-10-15 18:21:26','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2012-10-15 18:21:26','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +INSERT INTO AD_Element (ColumnName,AD_Element_ID,Help,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('ServerName',200182,'Node instance name','D','Server Name','Server Name','7bd7b80a-d97d-4643-8d69-e2856a2a144a',0,TO_TIMESTAMP('2012-10-15 18:21:26','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2012-10-15 18:21:26','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') ; -- Oct 15, 2012 6:21:27 PM IST @@ -10,7 +10,7 @@ INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_He -- Oct 15, 2012 6:22:04 PM IST -- IDEMPIERE-389 Adding server name on AD_Session -INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection) VALUES (0,566,200613,'U','N','N','N',0,'N',40,'Y',14,'N','N',200182,'N','Y','14d3c02e-9f80-40cb-8507-e040fbaf3ef6','N','Y','N','ServerName','Load balancing instance name','Server Name','Y',100,TO_TIMESTAMP('2012-10-15 18:22:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-15 18:22:03','YYYY-MM-DD HH24:MI:SS'),100,0,0) +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection) VALUES (0,566,200613,'D','N','N','N',0,'N',80,'Y',14,'N','N',200182,'N','Y','14d3c02e-9f80-40cb-8507-e040fbaf3ef6','N','Y','N','ServerName','Node instance name','Server Name','Y',100,TO_TIMESTAMP('2012-10-15 18:22:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-15 18:22:03','YYYY-MM-DD HH24:MI:SS'),100,0,0) ; -- Oct 15, 2012 6:22:04 PM IST @@ -20,7 +20,7 @@ INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Clien -- Oct 15, 2012 6:22:45 PM IST -- IDEMPIERE-389 Adding server name on AD_Session -ALTER TABLE AD_Session ADD COLUMN ServerName VARCHAR(40) DEFAULT NULL +ALTER TABLE AD_Session ADD COLUMN ServerName VARCHAR(80) DEFAULT NULL ; SELECT register_migration_script('934_IDEMPIERE-389.sql') FROM dual diff --git a/migration/360lts-release/postgresql/936_IDEMPIERE-389_ServerName_Field.sql b/migration/360lts-release/postgresql/936_IDEMPIERE-389_ServerName_Field.sql new file mode 100644 index 0000000000..2378c1f480 --- /dev/null +++ b/migration/360lts-release/postgresql/936_IDEMPIERE-389_ServerName_Field.sql @@ -0,0 +1,133 @@ +-- Oct 16, 2012 11:39:49 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',475,36,'N','N',60501,'Y',200638,'N','D','AD_Session_UU','N','Y','bf38a28b-bfab-4c21-8626-18322acd7807',100,0,TO_TIMESTAMP('2012-10-16 11:39:47','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-16 11:39:47','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 16, 2012 11:39:49 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200638 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 16, 2012 11:39:50 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',475,40,'N','N',200613,'Y',200639,'N','Node instance name','D','Server Name','N','Y','7b8abf7a-5cb6-4d8e-9ed4-a0191ea16c7f',100,0,TO_TIMESTAMP('2012-10-16 11:39:49','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-16 11:39:49','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 16, 2012 11:39:50 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200639 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 16, 2012 11:42:31 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=200639 +; + +-- Oct 16, 2012 11:42:31 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=6620 +; + +-- Oct 16, 2012 11:42:31 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=54394 +; + +-- Oct 16, 2012 11:42:31 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=54395 +; + +-- Oct 16, 2012 11:42:31 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=54393 +; + +-- Oct 16, 2012 11:42:31 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=6622 +; + +-- Oct 16, 2012 11:42:31 AM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNoGrid=140,IsDisplayedGrid='Y' WHERE AD_Field_ID=200638 +; + +-- Oct 16, 2012 12:01:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200639 +; + +-- Oct 16, 2012 12:01:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=6620 +; + +-- Oct 16, 2012 12:01:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54394 +; + +-- Oct 16, 2012 12:01:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54395 +; + +-- Oct 16, 2012 12:01:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54393 +; + +-- Oct 16, 2012 12:01:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=6622 +; + +-- Oct 16, 2012 12:01:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=200638 +; + +-- Oct 16, 2012 12:03:37 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2012-10-16 12:03:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200639 +; + +-- Oct 16, 2012 12:04:28 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET XPosition=3,Updated=TO_TIMESTAMP('2012-10-16 12:04:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200639 +; + +-- Oct 16, 2012 12:05:12 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET XPosition=1,Updated=TO_TIMESTAMP('2012-10-16 12:05:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200639 +; + +-- Oct 16, 2012 12:05:44 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2012-10-16 12:05:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200639 +; + +-- Oct 16, 2012 12:06:43 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET IsSameLine='Y', XPosition=4,Updated=TO_TIMESTAMP('2012-10-16 12:06:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6620 +; + +-- Oct 16, 2012 12:11:26 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=110, XPosition=1,Updated=TO_TIMESTAMP('2012-10-16 12:11:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54394 +; + +-- Oct 16, 2012 12:11:43 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=100,Updated=TO_TIMESTAMP('2012-10-16 12:11:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54395 +; + +-- Oct 16, 2012 12:12:44 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET XPosition=4,Updated=TO_TIMESTAMP('2012-10-16 12:12:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54394 +; + + +SELECT register_migration_script('936_IDEMPIERE-389_ServerName_Field.sql') FROM dual +; \ No newline at end of file diff --git a/org.adempiere.base/src/org/compiere/model/MSession.java b/org.adempiere.base/src/org/compiere/model/MSession.java index 99baa121b7..d185c187e7 100644 --- a/org.adempiere.base/src/org/compiere/model/MSession.java +++ b/org.adempiere.base/src/org/compiere/model/MSession.java @@ -27,6 +27,7 @@ import org.compiere.util.CCache; import org.compiere.util.Env; import org.compiere.util.Ini; import org.compiere.util.TimeUtil; +import org.compiere.util.WebUtil; /** * Session Model. @@ -148,7 +149,8 @@ public class MSession extends X_AD_Session public MSession (Properties ctx, String Remote_Addr, String Remote_Host, String WebSession, String trxName) { this (ctx, 0, trxName); - setServerName(Ini.getProperties().getProperty("ServerName")); + + setServerName(WebUtil.getServerName()); if (Remote_Addr != null) setRemote_Addr(Remote_Addr); if (Remote_Host != null) @@ -173,7 +175,7 @@ public class MSession extends X_AD_Session try { InetAddress lh = InetAddress.getLocalHost(); - setServerName(Ini.getProperties().getProperty("ServerName")); + setServerName(WebUtil.getServerName()); setRemote_Addr(lh.getHostAddress()); setRemote_Host(lh.getHostName()); setDescription(Adempiere.MAIN_VERSION + "_" diff --git a/org.adempiere.base/src/org/compiere/util/WebUtil.java b/org.adempiere.base/src/org/compiere/util/WebUtil.java index b4600ef1a8..5000605bbd 100644 --- a/org.adempiere.base/src/org/compiere/util/WebUtil.java +++ b/org.adempiere.base/src/org/compiere/util/WebUtil.java @@ -24,8 +24,10 @@ import java.io.IOException; import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.math.BigDecimal; +import java.net.InetAddress; import java.net.URLDecoder; import java.net.URLEncoder; +import java.net.UnknownHostException; import java.sql.Timestamp; import java.text.DateFormat; import java.text.DecimalFormat; @@ -1250,4 +1252,31 @@ public final class WebUtil } return wu.save(); } // updateFields + + /** + * + * @return Servername including host name: IP : instance name + */ + public static String getServerName(){ + StringBuilder strBuilder = new StringBuilder(); + String serverName = Ini.getProperties().getProperty("ServerName"); + + + try { + strBuilder.append(InetAddress.getLocalHost().getHostName()); + } catch (UnknownHostException e) { + log.log(Level.WARNING, "Local host or IP not found", e); + } + strBuilder.append(":"); + try { + strBuilder.append(InetAddress.getLocalHost().getHostAddress()); + } catch (UnknownHostException e) { + log.log(Level.WARNING, "Local host or IP not found", e); + } + strBuilder.append(":"); + if(serverName!=null) + strBuilder.append(serverName); + + return strBuilder.toString(); + } } // WUtil From 34328a35915e597bd198d1d1f82e0ee53c82fa16 Mon Sep 17 00:00:00 2001 From: Elaine Tan Date: Wed, 17 Oct 2012 17:39:12 +0800 Subject: [PATCH 2/4] IDEMPIERE-447 Abstract Payment Processor from Tenant configuration - allow multiple payment processors link to the same bank account --- .../oracle/939_IDEMPIERE-447.sql | 427 ++++++++++++++++++ .../postgresql/939_IDEMPIERE-447.sql | 427 ++++++++++++++++++ .../org/compiere/model/I_C_BankAccount.java | 15 - .../model/I_C_BankAccount_Processor.java | 148 ++++++ .../compiere/model/MBankAccountProcessor.java | 68 +++ .../src/org/compiere/model/MPayment.java | 52 +-- .../org/compiere/model/MPaymentProcessor.java | 27 +- .../org/compiere/model/X_C_BankAccount.java | 30 +- .../model/X_C_BankAccount_Processor.java | 142 ++++++ .../src/org/compiere/pos/PosOrderModel.java | 12 +- 10 files changed, 1259 insertions(+), 89 deletions(-) create mode 100644 migration/360lts-release/oracle/939_IDEMPIERE-447.sql create mode 100644 migration/360lts-release/postgresql/939_IDEMPIERE-447.sql create mode 100644 org.adempiere.base/src/org/compiere/model/I_C_BankAccount_Processor.java create mode 100644 org.adempiere.base/src/org/compiere/model/MBankAccountProcessor.java create mode 100644 org.adempiere.base/src/org/compiere/model/X_C_BankAccount_Processor.java diff --git a/migration/360lts-release/oracle/939_IDEMPIERE-447.sql b/migration/360lts-release/oracle/939_IDEMPIERE-447.sql new file mode 100644 index 0000000000..db0fe6717d --- /dev/null +++ b/migration/360lts-release/oracle/939_IDEMPIERE-447.sql @@ -0,0 +1,427 @@ +-- Oct 17, 2012 3:50:55 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=200593 +; + +-- Oct 17, 2012 3:50:55 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Field WHERE AD_Field_ID=200593 +; + +-- Oct 17, 2012 3:51:07 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200579 +; + +-- Oct 17, 2012 3:51:08 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column WHERE AD_Column_ID=200579 +; + +-- Oct 17, 2012 4:07:55 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Table (IsSecurityEnabled,AccessLevel,LoadSeq,AD_Window_ID,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','3',145,158,200030,'N','N','N','D','L','471aedbd-8298-42f2-8dad-ab8be38279f4','Y','N','C_BankAccount_Processor','Bank Account Processor',0,'Y',0,TO_DATE('2012-10-17 16:07:53','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2012-10-17 16:07:53','YYYY-MM-DD HH24:MI:SS')) +; + +-- Oct 17, 2012 4:07:55 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200030 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Oct 17, 2012 4:08:18 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200688,'D','Y','N','N','N',22,'N',19,'N',129,'N',102,'N','Y','b9f429d0-2a8f-4ab0-94ec-85ff869690c5','N','N','N','AD_Client_ID','Client/Tenant for this installation.','@AD_Client_ID@','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',100,TO_DATE('2012-10-17 16:08:18','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-17 16:08:18','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:18 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200688 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:19 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200689,'D','Y','N','N','N',22,'N',19,'N',104,'N',113,'N','Y','5c6f57bf-377c-4fe7-90a2-ebc74b974679','N','N','N','AD_Org_ID','Organizational entity within client','@AD_Org_ID@','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',100,TO_DATE('2012-10-17 16:08:18','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-17 16:08:18','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:19 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200689 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:20 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200690,'D','Y','N','N','N',7,'N',16,'N','N',245,'N','Y','6cd0b686-74c5-4de9-b214-fc6b8aa2f7db','N','N','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',100,TO_DATE('2012-10-17 16:08:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-17 16:08:19','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:20 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200690 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:21 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200691,'D',110,'Y','N','N','N',22,'N',18,'N','N',246,'N','Y','c09022a9-0141-47d7-9008-13c435260519','N','N','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',100,TO_DATE('2012-10-17 16:08:20','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-17 16:08:20','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:21 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200691 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200692,'D','Y','N','N','N',1,'N',20,'N','N',348,'N','Y','3478bc60-b0df-4852-abfd-d44510806de5','N','Y','N','IsActive','The record is active in the system','Y','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Active','N',100,TO_DATE('2012-10-17 16:08:21','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-17 16:08:21','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200692 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200030,200693,'D','Y','N','N','Y',22,'N',19,'N','N',450,'N','Y','bbbf50a6-663b-4b83-a846-a01b7694e91a','N','N','N','M_PriceList_Version_ID','Identifies a unique instance of a Price List','Each Price List can have multiple versions. The most common use is to indicate the dates that a Price List is valid for.','Price List Version','Y',100,TO_DATE('2012-10-17 16:08:22','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-17 16:08:22','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200693 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:23 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200694,'D','Y','N','N','Y',22,'N',30,'N',231,'N',454,'N','Y','59d9301f-daef-421d-9bf7-18726aae07a1','N','N','N','M_Product_ID','Product, Service, Item','Identifies an item which is either purchased or sold in this organization.','Product','Y',100,TO_DATE('2012-10-17 16:08:22','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-17 16:08:22','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:23 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200694 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:24 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('C_BankAccount_Processor_UU',200185,'D','C_BankAccount_Processor_UU','C_BankAccount_Processor_UU','808efaa4-40d2-4e2e-9e6c-a6cf987dfe86',0,TO_DATE('2012-10-17 16:08:23','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-10-17 16:08:23','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Oct 17, 2012 4:08:24 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=200185 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Oct 17, 2012 4:08:25 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1.00,200030,200695,'D','N','N','N','N',36,'N',10,'N','N',200185,'N','Y','81b5ac50-4154-48d4-bd71-01dcdda30bee','N','Y','N','C_BankAccount_Processor_UU','C_BankAccount_Processor_UU','N',100,TO_DATE('2012-10-17 16:08:23','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-17 16:08:23','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:25 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200695 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:26 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200696,'D','Y','N','N','N',22,'N',37,'N','N',955,'N','Y','511e5d93-d3e6-41d8-ba24-e90ad2c52d03','N','Y','N','PriceLimit','Lowest price for a product','The Price Limit indicates the lowest price for a product stated in the Price List Currency.','Limit Price','Y',100,TO_DATE('2012-10-17 16:08:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-17 16:08:25','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:26 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200696 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:26 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200697,'D','Y','N','N','N',22,'N',37,'N','N',520,'N','Y','b3938e76-d817-49fe-afa0-2975f144faa4','N','Y','N','PriceList','List Price','The List Price is the official List Price in the document currency.','List Price','Y',100,TO_DATE('2012-10-17 16:08:26','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-17 16:08:26','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:27 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200697 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:27 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200698,'D','Y','N','N','N',22,'N',37,'N','N',957,'N','Y','4444790c-113f-4ba0-8bc0-6b899e20fe2e','N','Y','N','PriceStd','Standard Price','The Standard Price indicates the standard or normal price for a product on this price list','Standard Price','Y',100,TO_DATE('2012-10-17 16:08:27','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-17 16:08:27','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:27 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200698 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:28 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200699,'D','Y','N','N','N',7,'N',16,'N','N',607,'N','Y','a94382be-adad-4ee6-adfe-306750d39756','N','N','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',100,TO_DATE('2012-10-17 16:08:27','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-17 16:08:27','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:28 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200699 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:29 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200700,'D',110,'Y','N','N','N',22,'N',18,'N','N',608,'N','Y','5605e703-d80e-4517-bea5-dfee7e6b9b6e','N','N','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',100,TO_DATE('2012-10-17 16:08:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-17 16:08:28','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:29 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200700 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:09:04 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Column SET AD_Element_ID=836, IsUpdateable='N', ColumnName='C_BankAccount_ID', Description='Account at the Bank', Help='The Bank Account identifies an account at this Bank.', Name='Bank Account',Updated=TO_DATE('2012-10-17 16:09:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200693 +; + +-- Oct 17, 2012 4:09:04 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=200693 +; + +-- Oct 17, 2012 4:09:04 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET Name='Bank Account', Description='Account at the Bank', Help='The Bank Account identifies an account at this Bank.' WHERE AD_Column_ID=200693 AND IsCentrallyMaintained='Y' +; + +-- Oct 17, 2012 4:09:41 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Column SET AD_Reference_ID=19, AD_Val_Rule_ID=NULL, AD_Element_ID=1385, IsUpdateable='N', ColumnName='C_PaymentProcessor_ID', Description='Payment processor for electronic payments', Help='The Payment Processor indicates the processor to be used for electronic payments', Name='Payment Processor',Updated=TO_DATE('2012-10-17 16:09:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200694 +; + +-- Oct 17, 2012 4:09:41 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=200694 +; + +-- Oct 17, 2012 4:09:41 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET Name='Payment Processor', Description='Payment processor for electronic payments', Help='The Payment Processor indicates the processor to be used for electronic payments' WHERE AD_Column_ID=200694 AND IsCentrallyMaintained='Y' +; + +-- Oct 17, 2012 4:09:49 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200696 +; + +-- Oct 17, 2012 4:09:49 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column WHERE AD_Column_ID=200696 +; + +-- Oct 17, 2012 4:09:49 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200697 +; + +-- Oct 17, 2012 4:09:49 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column WHERE AD_Column_ID=200697 +; + +-- Oct 17, 2012 4:09:49 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200698 +; + +-- Oct 17, 2012 4:09:49 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column WHERE AD_Column_ID=200698 +; + +-- Oct 17, 2012 4:10:15 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +CREATE TABLE C_BankAccount_Processor (AD_Client_ID NUMBER(10) NOT NULL, AD_Org_ID NUMBER(10) NOT NULL, C_BankAccount_ID NUMBER(10) NOT NULL, C_BankAccount_Processor_UU NVARCHAR2(36) DEFAULT NULL , C_PaymentProcessor_ID NUMBER(10) NOT NULL, Created DATE NOT NULL, CreatedBy NUMBER(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, Updated DATE NOT NULL, UpdatedBy NUMBER(10) NOT NULL, CONSTRAINT C_BankAccount_Processor_Key PRIMARY KEY (C_BankAccount_ID, C_PaymentProcessor_ID)) +; + +-- Oct 17, 2012 4:12:17 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Tab (IsSingleRow,AD_Window_ID,SeqNo,Help,IsTranslationTab,IsSortTab,AD_Table_ID,HasTree,IsReadOnly,IsInfoTab,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,Name,Description,AD_Tab_ID,AD_Client_ID,Updated,AD_Org_ID,Created,CreatedBy,UpdatedBy,Processing,IsActive) VALUES ('N',158,40,NULL,'N','N',200030,'N','N','N','Y','N',2,'f0709010-509c-4a1f-8773-68cbeefd0f04','D','Bank Account Processor','Maintain Bank Account Payment Processors',200026,0,TO_DATE('2012-10-17 16:12:17','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2012-10-17 16:12:17','YYYY-MM-DD HH24:MI:SS'),100,100,'N','Y') +; + +-- Oct 17, 2012 4:12:18 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, Help,CommitWarning,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Tab_Trl_UU ) SELECT l.AD_Language,t.AD_Tab_ID, t.Help,t.CommitWarning,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=200026 AND NOT EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Tab_ID=t.AD_Tab_ID) +; + +-- Oct 17, 2012 4:12:24 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200026,1,'N','N',200692,'Y',200640,'N','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','D','The record is active in the system','Active','N','Y','2d243e8a-cbb3-45cf-b8fe-d36bb479c591',100,0,TO_DATE('2012-10-17 16:12:23','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-17 16:12:23','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 17, 2012 4:12:24 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200640 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 17, 2012 4:12:25 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200026,22,'N','N',200693,'Y',200641,'N','The Bank Account identifies an account at this Bank.','D','Account at the Bank','Bank Account','N','Y','fcdac875-f873-4d28-8aea-c063b02e6b9d',100,0,TO_DATE('2012-10-17 16:12:24','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-17 16:12:24','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 17, 2012 4:12:25 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200641 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 17, 2012 4:12:26 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200026,36,'N','N',200695,'Y',200642,'N','D','C_BankAccount_Processor_UU','N','Y','fb920783-2bd1-4f9d-9be1-bd5e52f51a4a',100,0,TO_DATE('2012-10-17 16:12:25','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-17 16:12:25','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 17, 2012 4:12:26 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200642 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 17, 2012 4:12:26 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200026,22,'N','N',200688,'Y',200643,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','D','Client/Tenant for this installation.','Client','N','Y','ec299a6f-8cb0-4c1a-a02e-9e527de9e721',100,0,TO_DATE('2012-10-17 16:12:26','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-17 16:12:26','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 17, 2012 4:12:26 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200643 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 17, 2012 4:12:27 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200026,22,'N','N',200689,'Y',200644,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','D','Organizational entity within client','Organization','N','Y','e9fd2a83-3580-49ba-bcaa-b4c0ef35b758',100,0,TO_DATE('2012-10-17 16:12:26','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-17 16:12:26','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 17, 2012 4:12:27 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200644 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 17, 2012 4:12:28 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200026,22,'N','N',200694,'Y',200645,'N','The Payment Processor indicates the processor to be used for electronic payments','D','Payment processor for electronic payments','Payment Processor','N','Y','d9792865-1bb8-4052-b9ce-c8f1789b365f',100,0,TO_DATE('2012-10-17 16:12:27','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-17 16:12:27','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 17, 2012 4:12:28 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200645 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 17, 2012 4:13:10 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200642 +; + +-- Oct 17, 2012 4:13:10 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=200643 +; + +-- Oct 17, 2012 4:13:10 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=200644 +; + +-- Oct 17, 2012 4:13:10 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=200641 +; + +-- Oct 17, 2012 4:13:10 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=200645 +; + +-- Oct 17, 2012 4:13:10 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=200640 +; + +-- Oct 17, 2012 4:13:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200642 +; + +-- Oct 17, 2012 4:13:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=200643 +; + +-- Oct 17, 2012 4:13:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=200644 +; + +-- Oct 17, 2012 4:13:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=200641 +; + +-- Oct 17, 2012 4:13:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=200645 +; + +-- Oct 17, 2012 4:13:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=200640 +; + +-- Oct 17, 2012 4:13:46 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET IsSameLine='Y', XPosition=4,Updated=TO_DATE('2012-10-17 16:13:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200644 +; + +-- Oct 17, 2012 4:13:47 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2012-10-17 16:13:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200643 +; + +-- Oct 17, 2012 4:13:48 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2012-10-17 16:13:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200644 +; + +-- Oct 17, 2012 4:13:49 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2012-10-17 16:13:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200641 +; + +-- Oct 17, 2012 4:13:51 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2012-10-17 16:13:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200645 +; + +-- Oct 17, 2012 4:13:53 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET XPosition=2, ColumnSpan=2,Updated=TO_DATE('2012-10-17 16:13:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200640 +; + +-- Oct 17, 2012 4:14:14 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2012-10-17 16:14:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200643 +; + +-- Oct 17, 2012 4:14:15 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2012-10-17 16:14:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200644 +; + +-- Oct 17, 2012 4:14:24 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2012-10-17 16:14:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200641 +; + +INSERT INTO C_BankAccount_Processor (AD_Client_ID, AD_Org_ID, C_BankAccount_ID, C_PaymentProcessor_ID, Created, CreatedBy, IsActive, Updated, UpdatedBy) + SELECT AD_Client_ID, AD_Org_ID, C_BankAccount_ID, C_PaymentProcessor_ID, Created, CreatedBy, IsActive, Updated, UpdatedBy + FROM C_BankAccount + WHERE (C_BankAccount_ID, C_PaymentProcessor_ID) NOT IN ( + SELECT C_BankAccount_ID, C_PaymentProcessor_ID FROM C_BankAccount_Processor) + AND C_PaymentProcessor_ID IS NOT NULL; + +ALTER TABLE C_BankAccount DROP COLUMN C_PaymentProcessor_ID; + +SELECT register_migration_script('939_IDEMPIERE-447.sql') FROM dual +; \ No newline at end of file diff --git a/migration/360lts-release/postgresql/939_IDEMPIERE-447.sql b/migration/360lts-release/postgresql/939_IDEMPIERE-447.sql new file mode 100644 index 0000000000..68baaae99c --- /dev/null +++ b/migration/360lts-release/postgresql/939_IDEMPIERE-447.sql @@ -0,0 +1,427 @@ +-- Oct 17, 2012 3:50:55 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=200593 +; + +-- Oct 17, 2012 3:50:55 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Field WHERE AD_Field_ID=200593 +; + +-- Oct 17, 2012 3:51:07 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200579 +; + +-- Oct 17, 2012 3:51:08 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column WHERE AD_Column_ID=200579 +; + +-- Oct 17, 2012 4:07:55 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Table (IsSecurityEnabled,AccessLevel,LoadSeq,AD_Window_ID,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,EntityType,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','3',145,158,200030,'N','N','N','D','L','471aedbd-8298-42f2-8dad-ab8be38279f4','Y','N','C_BankAccount_Processor','Bank Account Processor',0,'Y',0,TO_TIMESTAMP('2012-10-17 16:07:53','YYYY-MM-DD HH24:MI:SS'),100,100,TO_TIMESTAMP('2012-10-17 16:07:53','YYYY-MM-DD HH24:MI:SS')) +; + +-- Oct 17, 2012 4:07:55 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200030 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + +-- Oct 17, 2012 4:08:18 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200688,'D','Y','N','N','N',22,'N',19,'N',129,'N',102,'N','Y','b9f429d0-2a8f-4ab0-94ec-85ff869690c5','N','N','N','AD_Client_ID','Client/Tenant for this installation.','@AD_Client_ID@','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',100,TO_TIMESTAMP('2012-10-17 16:08:18','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-17 16:08:18','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:18 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200688 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:19 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200689,'D','Y','N','N','N',22,'N',19,'N',104,'N',113,'N','Y','5c6f57bf-377c-4fe7-90a2-ebc74b974679','N','N','N','AD_Org_ID','Organizational entity within client','@AD_Org_ID@','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',100,TO_TIMESTAMP('2012-10-17 16:08:18','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-17 16:08:18','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:19 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200689 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:20 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200690,'D','Y','N','N','N',7,'N',16,'N','N',245,'N','Y','6cd0b686-74c5-4de9-b214-fc6b8aa2f7db','N','N','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',100,TO_TIMESTAMP('2012-10-17 16:08:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-17 16:08:19','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:20 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200690 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:21 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200691,'D',110,'Y','N','N','N',22,'N',18,'N','N',246,'N','Y','c09022a9-0141-47d7-9008-13c435260519','N','N','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',100,TO_TIMESTAMP('2012-10-17 16:08:20','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-17 16:08:20','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:21 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200691 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200692,'D','Y','N','N','N',1,'N',20,'N','N',348,'N','Y','3478bc60-b0df-4852-abfd-d44510806de5','N','Y','N','IsActive','The record is active in the system','Y','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Active','N',100,TO_TIMESTAMP('2012-10-17 16:08:21','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-17 16:08:21','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200692 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200030,200693,'D','Y','N','N','Y',22,'N',19,'N','N',450,'N','Y','bbbf50a6-663b-4b83-a846-a01b7694e91a','N','N','N','M_PriceList_Version_ID','Identifies a unique instance of a Price List','Each Price List can have multiple versions. The most common use is to indicate the dates that a Price List is valid for.','Price List Version','Y',100,TO_TIMESTAMP('2012-10-17 16:08:22','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-17 16:08:22','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200693 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:23 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200694,'D','Y','N','N','Y',22,'N',30,'N',231,'N',454,'N','Y','59d9301f-daef-421d-9bf7-18726aae07a1','N','N','N','M_Product_ID','Product, Service, Item','Identifies an item which is either purchased or sold in this organization.','Product','Y',100,TO_TIMESTAMP('2012-10-17 16:08:22','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-17 16:08:22','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:23 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200694 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:24 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('C_BankAccount_Processor_UU',200185,'D','C_BankAccount_Processor_UU','C_BankAccount_Processor_UU','808efaa4-40d2-4e2e-9e6c-a6cf987dfe86',0,TO_TIMESTAMP('2012-10-17 16:08:23','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2012-10-17 16:08:23','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Oct 17, 2012 4:08:24 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=200185 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Oct 17, 2012 4:08:25 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1.00,200030,200695,'D','N','N','N','N',36,'N',10,'N','N',200185,'N','Y','81b5ac50-4154-48d4-bd71-01dcdda30bee','N','Y','N','C_BankAccount_Processor_UU','C_BankAccount_Processor_UU','N',100,TO_TIMESTAMP('2012-10-17 16:08:23','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-17 16:08:23','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:25 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200695 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:26 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200696,'D','Y','N','N','N',22,'N',37,'N','N',955,'N','Y','511e5d93-d3e6-41d8-ba24-e90ad2c52d03','N','Y','N','PriceLimit','Lowest price for a product','The Price Limit indicates the lowest price for a product stated in the Price List Currency.','Limit Price','Y',100,TO_TIMESTAMP('2012-10-17 16:08:25','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-17 16:08:25','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:26 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200696 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:27 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200697,'D','Y','N','N','N',22,'N',37,'N','N',520,'N','Y','b3938e76-d817-49fe-afa0-2975f144faa4','N','Y','N','PriceList','List Price','The List Price is the official List Price in the document currency.','List Price','Y',100,TO_TIMESTAMP('2012-10-17 16:08:26','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-17 16:08:26','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:27 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200697 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:27 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200698,'D','Y','N','N','N',22,'N',37,'N','N',957,'N','Y','4444790c-113f-4ba0-8bc0-6b899e20fe2e','N','Y','N','PriceStd','Standard Price','The Standard Price indicates the standard or normal price for a product on this price list','Standard Price','Y',100,TO_TIMESTAMP('2012-10-17 16:08:27','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-17 16:08:27','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:27 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200698 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:28 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200699,'D','Y','N','N','N',7,'N',16,'N','N',607,'N','Y','a94382be-adad-4ee6-adfe-306750d39756','N','N','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',100,TO_TIMESTAMP('2012-10-17 16:08:27','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-17 16:08:27','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:28 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200699 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:08:29 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200030,200700,'D',110,'Y','N','N','N',22,'N',18,'N','N',608,'N','Y','5605e703-d80e-4517-bea5-dfee7e6b9b6e','N','N','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',100,TO_TIMESTAMP('2012-10-17 16:08:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-17 16:08:28','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 17, 2012 4:08:29 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200700 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 17, 2012 4:09:04 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Column SET AD_Element_ID=836, IsUpdateable='N', ColumnName='C_BankAccount_ID', Description='Account at the Bank', Help='The Bank Account identifies an account at this Bank.', Name='Bank Account',Updated=TO_TIMESTAMP('2012-10-17 16:09:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200693 +; + +-- Oct 17, 2012 4:09:04 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=200693 +; + +-- Oct 17, 2012 4:09:04 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET Name='Bank Account', Description='Account at the Bank', Help='The Bank Account identifies an account at this Bank.' WHERE AD_Column_ID=200693 AND IsCentrallyMaintained='Y' +; + +-- Oct 17, 2012 4:09:41 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Column SET AD_Reference_ID=19, AD_Val_Rule_ID=NULL, AD_Element_ID=1385, IsUpdateable='N', ColumnName='C_PaymentProcessor_ID', Description='Payment processor for electronic payments', Help='The Payment Processor indicates the processor to be used for electronic payments', Name='Payment Processor',Updated=TO_TIMESTAMP('2012-10-17 16:09:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200694 +; + +-- Oct 17, 2012 4:09:41 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=200694 +; + +-- Oct 17, 2012 4:09:41 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET Name='Payment Processor', Description='Payment processor for electronic payments', Help='The Payment Processor indicates the processor to be used for electronic payments' WHERE AD_Column_ID=200694 AND IsCentrallyMaintained='Y' +; + +-- Oct 17, 2012 4:09:49 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200696 +; + +-- Oct 17, 2012 4:09:49 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column WHERE AD_Column_ID=200696 +; + +-- Oct 17, 2012 4:09:49 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200697 +; + +-- Oct 17, 2012 4:09:49 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column WHERE AD_Column_ID=200697 +; + +-- Oct 17, 2012 4:09:49 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=200698 +; + +-- Oct 17, 2012 4:09:49 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +DELETE FROM AD_Column WHERE AD_Column_ID=200698 +; + +-- Oct 17, 2012 4:10:15 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +CREATE TABLE C_BankAccount_Processor (AD_Client_ID NUMERIC(10) NOT NULL, AD_Org_ID NUMERIC(10) NOT NULL, C_BankAccount_ID NUMERIC(10) NOT NULL, C_BankAccount_Processor_UU VARCHAR(36) DEFAULT NULL , C_PaymentProcessor_ID NUMERIC(10) NOT NULL, Created TIMESTAMP NOT NULL, CreatedBy NUMERIC(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, Updated TIMESTAMP NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, CONSTRAINT C_BankAccount_Processor_Key PRIMARY KEY (C_BankAccount_ID, C_PaymentProcessor_ID)) +; + +-- Oct 17, 2012 4:12:17 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Tab (IsSingleRow,AD_Window_ID,SeqNo,Help,IsTranslationTab,IsSortTab,AD_Table_ID,HasTree,IsReadOnly,IsInfoTab,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,Name,Description,AD_Tab_ID,AD_Client_ID,Updated,AD_Org_ID,Created,CreatedBy,UpdatedBy,Processing,IsActive) VALUES ('N',158,40,NULL,'N','N',200030,'N','N','N','Y','N',2,'f0709010-509c-4a1f-8773-68cbeefd0f04','D','Bank Account Processor','Maintain Bank Account Payment Processors',200026,0,TO_TIMESTAMP('2012-10-17 16:12:17','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2012-10-17 16:12:17','YYYY-MM-DD HH24:MI:SS'),100,100,'N','Y') +; + +-- Oct 17, 2012 4:12:18 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, Help,CommitWarning,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Tab_Trl_UU ) SELECT l.AD_Language,t.AD_Tab_ID, t.Help,t.CommitWarning,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=200026 AND NOT EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Tab_ID=t.AD_Tab_ID) +; + +-- Oct 17, 2012 4:12:24 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200026,1,'N','N',200692,'Y',200640,'N','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','D','The record is active in the system','Active','N','Y','2d243e8a-cbb3-45cf-b8fe-d36bb479c591',100,0,TO_TIMESTAMP('2012-10-17 16:12:23','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-17 16:12:23','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 17, 2012 4:12:24 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200640 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 17, 2012 4:12:25 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200026,22,'N','N',200693,'Y',200641,'N','The Bank Account identifies an account at this Bank.','D','Account at the Bank','Bank Account','N','Y','fcdac875-f873-4d28-8aea-c063b02e6b9d',100,0,TO_TIMESTAMP('2012-10-17 16:12:24','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-17 16:12:24','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 17, 2012 4:12:25 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200641 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 17, 2012 4:12:26 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200026,36,'N','N',200695,'Y',200642,'N','D','C_BankAccount_Processor_UU','N','Y','fb920783-2bd1-4f9d-9be1-bd5e52f51a4a',100,0,TO_TIMESTAMP('2012-10-17 16:12:25','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-17 16:12:25','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 17, 2012 4:12:26 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200642 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 17, 2012 4:12:26 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200026,22,'N','N',200688,'Y',200643,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','D','Client/Tenant for this installation.','Client','N','Y','ec299a6f-8cb0-4c1a-a02e-9e527de9e721',100,0,TO_TIMESTAMP('2012-10-17 16:12:26','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-17 16:12:26','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 17, 2012 4:12:26 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200643 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 17, 2012 4:12:27 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200026,22,'N','N',200689,'Y',200644,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','D','Organizational entity within client','Organization','N','Y','e9fd2a83-3580-49ba-bcaa-b4c0ef35b758',100,0,TO_TIMESTAMP('2012-10-17 16:12:26','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-17 16:12:26','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 17, 2012 4:12:27 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200644 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 17, 2012 4:12:28 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200026,22,'N','N',200694,'Y',200645,'N','The Payment Processor indicates the processor to be used for electronic payments','D','Payment processor for electronic payments','Payment Processor','N','Y','d9792865-1bb8-4052-b9ce-c8f1789b365f',100,0,TO_TIMESTAMP('2012-10-17 16:12:27','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-17 16:12:27','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 17, 2012 4:12:28 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200645 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 17, 2012 4:13:10 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200642 +; + +-- Oct 17, 2012 4:13:10 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=200643 +; + +-- Oct 17, 2012 4:13:10 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=200644 +; + +-- Oct 17, 2012 4:13:10 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=200641 +; + +-- Oct 17, 2012 4:13:10 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=200645 +; + +-- Oct 17, 2012 4:13:10 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=200640 +; + +-- Oct 17, 2012 4:13:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=200642 +; + +-- Oct 17, 2012 4:13:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=200643 +; + +-- Oct 17, 2012 4:13:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=200644 +; + +-- Oct 17, 2012 4:13:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=200641 +; + +-- Oct 17, 2012 4:13:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=200645 +; + +-- Oct 17, 2012 4:13:22 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=200640 +; + +-- Oct 17, 2012 4:13:46 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET IsSameLine='Y', XPosition=4,Updated=TO_TIMESTAMP('2012-10-17 16:13:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200644 +; + +-- Oct 17, 2012 4:13:47 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-17 16:13:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200643 +; + +-- Oct 17, 2012 4:13:48 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-17 16:13:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200644 +; + +-- Oct 17, 2012 4:13:49 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-17 16:13:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200641 +; + +-- Oct 17, 2012 4:13:51 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-17 16:13:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200645 +; + +-- Oct 17, 2012 4:13:53 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET XPosition=2, ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-17 16:13:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200640 +; + +-- Oct 17, 2012 4:14:14 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2012-10-17 16:14:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200643 +; + +-- Oct 17, 2012 4:14:15 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2012-10-17 16:14:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200644 +; + +-- Oct 17, 2012 4:14:24 PM SGT +-- IDEMPIERE-447 Abstract Payment Processor from Tenant configuration +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2012-10-17 16:14:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200641 +; + +INSERT INTO C_BankAccount_Processor (AD_Client_ID, AD_Org_ID, C_BankAccount_ID, C_PaymentProcessor_ID, Created, CreatedBy, IsActive, Updated, UpdatedBy) + SELECT AD_Client_ID, AD_Org_ID, C_BankAccount_ID, C_PaymentProcessor_ID, Created, CreatedBy, IsActive, Updated, UpdatedBy + FROM C_BankAccount + WHERE (C_BankAccount_ID, C_PaymentProcessor_ID) NOT IN ( + SELECT C_BankAccount_ID, C_PaymentProcessor_ID FROM C_BankAccount_Processor) + AND C_PaymentProcessor_ID IS NOT NULL; + +ALTER TABLE C_BankAccount DROP COLUMN C_PaymentProcessor_ID; + +SELECT register_migration_script('939_IDEMPIERE-447.sql') FROM dual +; \ No newline at end of file diff --git a/org.adempiere.base/src/org/compiere/model/I_C_BankAccount.java b/org.adempiere.base/src/org/compiere/model/I_C_BankAccount.java index ad64446083..0cab72cac1 100644 --- a/org.adempiere.base/src/org/compiere/model/I_C_BankAccount.java +++ b/org.adempiere.base/src/org/compiere/model/I_C_BankAccount.java @@ -153,21 +153,6 @@ public interface I_C_BankAccount public org.compiere.model.I_C_Currency getC_Currency() throws RuntimeException; - /** Column name C_PaymentProcessor_ID */ - public static final String COLUMNNAME_C_PaymentProcessor_ID = "C_PaymentProcessor_ID"; - - /** Set Payment Processor. - * Payment processor for electronic payments - */ - public void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID); - - /** Get Payment Processor. - * Payment processor for electronic payments - */ - public int getC_PaymentProcessor_ID(); - - public org.compiere.model.I_C_PaymentProcessor getC_PaymentProcessor() throws RuntimeException; - /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/org.adempiere.base/src/org/compiere/model/I_C_BankAccount_Processor.java b/org.adempiere.base/src/org/compiere/model/I_C_BankAccount_Processor.java new file mode 100644 index 0000000000..47ebc0fbf4 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/I_C_BankAccount_Processor.java @@ -0,0 +1,148 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * + * This program is free software, you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied * + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * + * See the GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program, if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + * For the text or an alternative of this public license, you may reach us * + * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * + * or via info@compiere.org or http://www.compiere.org/license.html * + *****************************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for C_BankAccount_Processor + * @author Adempiere (generated) + * @version Release 3.6.0LTS + */ +public interface I_C_BankAccount_Processor +{ + + /** TableName=C_BankAccount_Processor */ + public static final String Table_Name = "C_BankAccount_Processor"; + + /** AD_Table_ID=200030 */ + public static final int Table_ID = 200030; + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(3); + + /** Load Meta Data */ + + /** Column name AD_Client_ID */ + public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; + + /** Get Client. + * Client/Tenant for this installation. + */ + public int getAD_Client_ID(); + + /** Column name AD_Org_ID */ + public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; + + /** Set Organization. + * Organizational entity within client + */ + public void setAD_Org_ID (int AD_Org_ID); + + /** Get Organization. + * Organizational entity within client + */ + public int getAD_Org_ID(); + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException; + + /** Column name C_BankAccount_Processor_UU */ + public static final String COLUMNNAME_C_BankAccount_Processor_UU = "C_BankAccount_Processor_UU"; + + /** Set C_BankAccount_Processor_UU */ + public void setC_BankAccount_Processor_UU (String C_BankAccount_Processor_UU); + + /** Get C_BankAccount_Processor_UU */ + public String getC_BankAccount_Processor_UU(); + + /** Column name C_PaymentProcessor_ID */ + public static final String COLUMNNAME_C_PaymentProcessor_ID = "C_PaymentProcessor_ID"; + + /** Set Payment Processor. + * Payment processor for electronic payments + */ + public void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID); + + /** Get Payment Processor. + * Payment processor for electronic payments + */ + public int getC_PaymentProcessor_ID(); + + public org.compiere.model.I_C_PaymentProcessor getC_PaymentProcessor() throws RuntimeException; + + /** Column name Created */ + public static final String COLUMNNAME_Created = "Created"; + + /** Get Created. + * Date this record was created + */ + public Timestamp getCreated(); + + /** Column name CreatedBy */ + public static final String COLUMNNAME_CreatedBy = "CreatedBy"; + + /** Get Created By. + * User who created this records + */ + public int getCreatedBy(); + + /** Column name IsActive */ + public static final String COLUMNNAME_IsActive = "IsActive"; + + /** Set Active. + * The record is active in the system + */ + public void setIsActive (boolean IsActive); + + /** Get Active. + * The record is active in the system + */ + public boolean isActive(); + + /** Column name Updated */ + public static final String COLUMNNAME_Updated = "Updated"; + + /** Get Updated. + * Date this record was updated + */ + public Timestamp getUpdated(); + + /** Column name UpdatedBy */ + public static final String COLUMNNAME_UpdatedBy = "UpdatedBy"; + + /** Get Updated By. + * User who updated this records + */ + public int getUpdatedBy(); +} diff --git a/org.adempiere.base/src/org/compiere/model/MBankAccountProcessor.java b/org.adempiere.base/src/org/compiere/model/MBankAccountProcessor.java new file mode 100644 index 0000000000..d647184ef5 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/MBankAccountProcessor.java @@ -0,0 +1,68 @@ +/****************************************************************************** + * Copyright (C) 2012 Elaine Tan * + * Copyright (C) 2012 Trek Global + * This program is free software; you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * + * See the GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program; if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + *****************************************************************************/ + +package org.compiere.model; + +import java.sql.ResultSet; +import java.util.Properties; + +/** + * Bank Account Payment Processor + * @author Elaine + * @date October 17, 2012 + */ +public class MBankAccountProcessor extends X_C_BankAccount_Processor { + + /** + * + */ + private static final long serialVersionUID = -9082774421123292838L; + + public static MBankAccountProcessor get(Properties ctx, int C_BankAccount_ID, int C_PaymentProcessor_ID, String trxName) + { + final String whereClause = MBankAccountProcessor.COLUMNNAME_C_BankAccount_ID + "=? AND " + MBankAccountProcessor.COLUMNNAME_C_PaymentProcessor_ID + "=?"; + MBankAccountProcessor retValue = new Query(ctx, I_C_BankAccount_Processor.Table_Name, whereClause, trxName) + .setParameters(C_BankAccount_ID, C_PaymentProcessor_ID) + .first(); + return retValue; + } + + public MBankAccountProcessor (Properties ctx, int ignored, String trxName) + { + super(ctx, 0, trxName); + if (ignored != 0) + throw new IllegalArgumentException("Multi-Key"); + } + + public MBankAccountProcessor (Properties ctx, ResultSet rs, String trxName) + { + super(ctx, rs, trxName); + } + + public MBankAccountProcessor (Properties ctx, int C_BankAccount_ID, int C_PaymentProcessor_ID, String trxName) + { + this (ctx, 0, trxName); + setC_BankAccount_ID(C_BankAccount_ID); // FK + setC_PaymentProcessor_ID(C_PaymentProcessor_ID); // FK + } + + public String toString() + { + StringBuilder sb = new StringBuilder("MBankAccountProcessor[") + .append("C_BankAccount_ID=").append(getC_BankAccount_ID()) + .append(",C_PaymentProcessor_ID=").append(getC_PaymentProcessor_ID()) + .append("]"); + return sb.toString (); + } +} diff --git a/org.adempiere.base/src/org/compiere/model/MPayment.java b/org.adempiere.base/src/org/compiere/model/MPayment.java index 3794e559a2..c857774075 100644 --- a/org.adempiere.base/src/org/compiere/model/MPayment.java +++ b/org.adempiere.base/src/org/compiere/model/MPayment.java @@ -162,10 +162,10 @@ public final class MPayment extends X_C_Payment super(ctx, rs, trxName); } // MPayment - /** Temporary Bank Accounts & Payment Processors */ - private MBankAccount[] m_mBankAccounts = null; - /** Temporary Bank Account & Payment Processor */ - private MBankAccount m_mBankAccount = null; + /** Temporary Bank Account Processors */ + private MBankAccountProcessor[] m_mBankAccountProcessors = null; + /** Temporary Bank Account Processor */ + private MBankAccountProcessor m_mBankAccountProcessor = null; /** Logger */ private static CLogger s_log = CLogger.getCLogger (MPayment.class); /** Error Message */ @@ -466,9 +466,9 @@ public final class MPayment extends X_C_Payment return true; } - if (m_mBankAccount == null) + if (m_mBankAccountProcessor == null) setPaymentProcessor(); - if (m_mBankAccount == null) + if (m_mBankAccountProcessor == null) { log.log(Level.WARNING, "No Payment Processor Model"); setErrorMessage("No Payment Processor Model"); @@ -479,7 +479,7 @@ public final class MPayment extends X_C_Payment try { - MPaymentProcessor paymentProcessor = new MPaymentProcessor(m_mBankAccount.getCtx(), m_mBankAccount.getC_PaymentProcessor_ID(), m_mBankAccount.get_TrxName()); + MPaymentProcessor paymentProcessor = new MPaymentProcessor(m_mBankAccountProcessor.getCtx(), m_mBankAccountProcessor.getC_PaymentProcessor_ID(), m_mBankAccountProcessor.get_TrxName()); PaymentProcessor pp = PaymentProcessor.create(paymentProcessor, this); if (pp == null) setErrorMessage("No Payment Processor"); @@ -826,33 +826,33 @@ public final class MPayment extends X_C_Payment */ public boolean setPaymentProcessor (String tender, String CCType) { - m_mBankAccount = null; + m_mBankAccountProcessor = null; // Get Processor List - if (m_mBankAccounts == null || m_mBankAccounts.length == 0) - m_mBankAccounts = MPaymentProcessor.find (getCtx(), tender, CCType, getAD_Client_ID(), + if (m_mBankAccountProcessors == null || m_mBankAccountProcessors.length == 0) + m_mBankAccountProcessors = MPaymentProcessor.find (getCtx(), tender, CCType, getAD_Client_ID(), getC_Currency_ID(), getPayAmt(), get_TrxName()); // Relax Amount - if (m_mBankAccounts == null || m_mBankAccounts.length == 0) - m_mBankAccounts = MPaymentProcessor.find (getCtx(), tender, CCType, getAD_Client_ID(), + if (m_mBankAccountProcessors == null || m_mBankAccountProcessors.length == 0) + m_mBankAccountProcessors = MPaymentProcessor.find (getCtx(), tender, CCType, getAD_Client_ID(), getC_Currency_ID(), Env.ZERO, get_TrxName()); - if (m_mBankAccounts == null || m_mBankAccounts.length == 0) + if (m_mBankAccountProcessors == null || m_mBankAccountProcessors.length == 0) return false; // Find the first right one - for (int i = 0; i < m_mBankAccounts.length; i++) + for (int i = 0; i < m_mBankAccountProcessors.length; i++) { - MBankAccount bankAccount = m_mBankAccounts[i]; - MPaymentProcessor paymentProcessor = new MPaymentProcessor(bankAccount.getCtx(), bankAccount.getC_PaymentProcessor_ID(), bankAccount.get_TrxName()); + MBankAccountProcessor bankAccountProcessor = m_mBankAccountProcessors[i]; + MPaymentProcessor paymentProcessor = new MPaymentProcessor(bankAccountProcessor.getCtx(), bankAccountProcessor.getC_PaymentProcessor_ID(), bankAccountProcessor.get_TrxName()); if (paymentProcessor.accepts (tender, CCType)) { - m_mBankAccount = m_mBankAccounts[i]; + m_mBankAccountProcessor = m_mBankAccountProcessors[i]; break; } } - if (m_mBankAccount != null) - setC_BankAccount_ID (m_mBankAccount.getC_BankAccount_ID()); + if (m_mBankAccountProcessor != null) + setC_BankAccount_ID (m_mBankAccountProcessor.getC_BankAccount_ID()); // - return m_mBankAccount != null; + return m_mBankAccountProcessor != null; } // setPaymentProcessor @@ -875,15 +875,15 @@ public final class MPayment extends X_C_Payment { try { - if (m_mBankAccounts == null || m_mBankAccounts.length == 0) - m_mBankAccounts = MPaymentProcessor.find (getCtx (), null, null, + if (m_mBankAccountProcessors == null || m_mBankAccountProcessors.length == 0) + m_mBankAccountProcessors = MPaymentProcessor.find (getCtx (), null, null, getAD_Client_ID (), getC_Currency_ID (), amt, get_TrxName()); // HashMap map = new HashMap(); // to eliminate duplicates - for (int i = 0; i < m_mBankAccounts.length; i++) + for (int i = 0; i < m_mBankAccountProcessors.length; i++) { - MBankAccount bankAccount = m_mBankAccounts[i]; - MPaymentProcessor paymentProcessor = new MPaymentProcessor(bankAccount.getCtx(), bankAccount.getC_PaymentProcessor_ID(), bankAccount.get_TrxName()); + MBankAccountProcessor bankAccountProcessor = m_mBankAccountProcessors[i]; + MPaymentProcessor paymentProcessor = new MPaymentProcessor(bankAccountProcessor.getCtx(), bankAccountProcessor.getC_PaymentProcessor_ID(), bankAccountProcessor.get_TrxName()); if (paymentProcessor.isAcceptAMEX ()) map.put (CREDITCARDTYPE_Amex, getCreditCardPair (CREDITCARDTYPE_Amex)); if (paymentProcessor.isAcceptDiners ()) @@ -900,7 +900,7 @@ public final class MPayment extends X_C_Payment // ValueNamePair[] retValue = new ValueNamePair[map.size ()]; map.values ().toArray (retValue); - log.fine("getCreditCards - #" + retValue.length + " - Processors=" + m_mBankAccounts.length); + log.fine("getCreditCards - #" + retValue.length + " - Processors=" + m_mBankAccountProcessors.length); return retValue; } catch (Exception ex) diff --git a/org.adempiere.base/src/org/compiere/model/MPaymentProcessor.java b/org.adempiere.base/src/org/compiere/model/MPaymentProcessor.java index 97e4ae4ccf..53c7368bcd 100644 --- a/org.adempiere.base/src/org/compiere/model/MPaymentProcessor.java +++ b/org.adempiere.base/src/org/compiere/model/MPaymentProcessor.java @@ -43,7 +43,7 @@ public class MPaymentProcessor extends X_C_PaymentProcessor private static final long serialVersionUID = 8514876566904723695L; - public static MBankAccount[] find (Properties ctx, + public static MBankAccountProcessor[] find (Properties ctx, String tender, String CCType, int AD_Client_ID, int AD_Org_ID, int C_Currency_ID, BigDecimal Amt, String trxName) { @@ -51,7 +51,7 @@ public class MPaymentProcessor extends X_C_PaymentProcessor } /** - * Get BankAccount & PaymentProcessor + * Get Bank Account Processor * @param ctx context * @param tender optional Tender see TENDER_ * @param CCType optional CC Type see CC_ @@ -61,18 +61,19 @@ public class MPaymentProcessor extends X_C_PaymentProcessor * @param trxName transaction * @return Array of BankAccount[0] & PaymentProcessor[1] or null */ - protected static MBankAccount[] find (Properties ctx, + protected static MBankAccountProcessor[] find (Properties ctx, String tender, String CCType, int AD_Client_ID, int C_Currency_ID, BigDecimal Amt, String trxName) { - ArrayList list = new ArrayList(); - StringBuffer sql = new StringBuffer("SELECT ba.* " - + "FROM C_PaymentProcessor pp, C_BankAccount ba " - + "WHERE pp.C_PaymentProcessor_ID = ba.C_PaymentProcessor_ID" - + " AND ba.AD_Client_ID=? AND ba.IsActive='Y'" // #1 - + " AND pp.IsActive='Y' " - + " AND (pp.C_Currency_ID IS NULL OR pp.C_Currency_ID=?)" // #2 - + " AND (pp.MinimumAmt IS NULL OR pp.MinimumAmt = 0 OR pp.MinimumAmt <= ?)"); // #3 + ArrayList list = new ArrayList(); + StringBuffer sql = new StringBuffer("SELECT bap.* " + + "FROM C_BankAccount_Processor bap, C_PaymentProcessor pp, C_BankAccount ba " + + "WHERE pp.C_PaymentProcessor_ID = bap.C_PaymentProcessor_ID" + + " AND ba.C_BankAccount_ID = bap.C_BankAccount_ID" + + " AND ba.AD_Client_ID=? AND pp.IsActive='Y'" // #1 + + " AND ba.IsActive='Y' AND bap.IsActive='Y' " + + " AND (pp.C_Currency_ID IS NULL OR pp.C_Currency_ID=?)" // #2 + + " AND (pp.MinimumAmt IS NULL OR pp.MinimumAmt = 0 OR pp.MinimumAmt <= ?)"); // #3 if (MPayment.TENDERTYPE_DirectDeposit.equals(tender)) sql.append(" AND pp.AcceptDirectDeposit='Y'"); else if (MPayment.TENDERTYPE_DirectDebit.equals(tender)) @@ -104,7 +105,7 @@ public class MPaymentProcessor extends X_C_PaymentProcessor pstmt.setBigDecimal(3, Amt); ResultSet rs = pstmt.executeQuery(); while (rs.next()) - list.add(new MBankAccount (ctx, rs, trxName)); + list.add(new MBankAccountProcessor (ctx, rs, trxName)); rs.close(); pstmt.close(); } @@ -120,7 +121,7 @@ public class MPaymentProcessor extends X_C_PaymentProcessor else s_log.fine("find - #" + list.size() + " - AD_Client_ID=" + AD_Client_ID + ", C_Currency_ID=" + C_Currency_ID + ", Amt=" + Amt); - MBankAccount[] retValue = new MBankAccount[list.size()]; + MBankAccountProcessor[] retValue = new MBankAccountProcessor[list.size()]; list.toArray(retValue); return retValue; } // find diff --git a/org.adempiere.base/src/org/compiere/model/X_C_BankAccount.java b/org.adempiere.base/src/org/compiere/model/X_C_BankAccount.java index 423639d7b7..1ca8b9a5a0 100644 --- a/org.adempiere.base/src/org/compiere/model/X_C_BankAccount.java +++ b/org.adempiere.base/src/org/compiere/model/X_C_BankAccount.java @@ -32,7 +32,7 @@ public class X_C_BankAccount extends PO implements I_C_BankAccount, I_Persistent /** * */ - private static final long serialVersionUID = 20121003L; + private static final long serialVersionUID = 20121017L; /** Standard Constructor */ public X_C_BankAccount (Properties ctx, int C_BankAccount_ID, String trxName) @@ -236,34 +236,6 @@ public class X_C_BankAccount extends PO implements I_C_BankAccount, I_Persistent return ii.intValue(); } - public org.compiere.model.I_C_PaymentProcessor getC_PaymentProcessor() throws RuntimeException - { - return (org.compiere.model.I_C_PaymentProcessor)MTable.get(getCtx(), org.compiere.model.I_C_PaymentProcessor.Table_Name) - .getPO(getC_PaymentProcessor_ID(), get_TrxName()); } - - /** Set Payment Processor. - @param C_PaymentProcessor_ID - Payment processor for electronic payments - */ - public void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID) - { - if (C_PaymentProcessor_ID < 1) - set_Value (COLUMNNAME_C_PaymentProcessor_ID, null); - else - set_Value (COLUMNNAME_C_PaymentProcessor_ID, Integer.valueOf(C_PaymentProcessor_ID)); - } - - /** Get Payment Processor. - @return Payment processor for electronic payments - */ - public int getC_PaymentProcessor_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentProcessor_ID); - if (ii == null) - return 0; - return ii.intValue(); - } - /** Set Credit limit. @param CreditLimit Amount of Credit allowed diff --git a/org.adempiere.base/src/org/compiere/model/X_C_BankAccount_Processor.java b/org.adempiere.base/src/org/compiere/model/X_C_BankAccount_Processor.java new file mode 100644 index 0000000000..f2a6c56f4d --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/X_C_BankAccount_Processor.java @@ -0,0 +1,142 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * + * This program is free software, you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied * + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * + * See the GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program, if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + * For the text or an alternative of this public license, you may reach us * + * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * + * or via info@compiere.org or http://www.compiere.org/license.html * + *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ +package org.compiere.model; + +import java.sql.ResultSet; +import java.util.Properties; + +/** Generated Model for C_BankAccount_Processor + * @author Adempiere (generated) + * @version Release 3.6.0LTS - $Id$ */ +public class X_C_BankAccount_Processor extends PO implements I_C_BankAccount_Processor, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 20121017L; + + /** Standard Constructor */ + public X_C_BankAccount_Processor (Properties ctx, int C_BankAccount_Processor_ID, String trxName) + { + super (ctx, C_BankAccount_Processor_ID, trxName); + /** if (C_BankAccount_Processor_ID == 0) + { + setC_BankAccount_ID (0); + setC_PaymentProcessor_ID (0); + } */ + } + + /** Load Constructor */ + public X_C_BankAccount_Processor (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BankAccount_Processor[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException + { + return (org.compiere.model.I_C_BankAccount)MTable.get(getCtx(), org.compiere.model.I_C_BankAccount.Table_Name) + .getPO(getC_BankAccount_ID(), get_TrxName()); } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set C_BankAccount_Processor_UU. + @param C_BankAccount_Processor_UU C_BankAccount_Processor_UU */ + public void setC_BankAccount_Processor_UU (String C_BankAccount_Processor_UU) + { + set_Value (COLUMNNAME_C_BankAccount_Processor_UU, C_BankAccount_Processor_UU); + } + + /** Get C_BankAccount_Processor_UU. + @return C_BankAccount_Processor_UU */ + public String getC_BankAccount_Processor_UU () + { + return (String)get_Value(COLUMNNAME_C_BankAccount_Processor_UU); + } + + public org.compiere.model.I_C_PaymentProcessor getC_PaymentProcessor() throws RuntimeException + { + return (org.compiere.model.I_C_PaymentProcessor)MTable.get(getCtx(), org.compiere.model.I_C_PaymentProcessor.Table_Name) + .getPO(getC_PaymentProcessor_ID(), get_TrxName()); } + + /** Set Payment Processor. + @param C_PaymentProcessor_ID + Payment processor for electronic payments + */ + public void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID) + { + if (C_PaymentProcessor_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_PaymentProcessor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PaymentProcessor_ID, Integer.valueOf(C_PaymentProcessor_ID)); + } + + /** Get Payment Processor. + @return Payment processor for electronic payments + */ + public int getC_PaymentProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/org.adempiere.ui.swing/src/org/compiere/pos/PosOrderModel.java b/org.adempiere.ui.swing/src/org/compiere/pos/PosOrderModel.java index 596289f89a..95bb86e0b6 100644 --- a/org.adempiere.ui.swing/src/org/compiere/pos/PosOrderModel.java +++ b/org.adempiere.ui.swing/src/org/compiere/pos/PosOrderModel.java @@ -18,7 +18,7 @@ import java.util.HashMap; import java.util.Properties; import org.compiere.model.MBPartner; -import org.compiere.model.MBankAccount; +import org.compiere.model.MBankAccountProcessor; import org.compiere.model.MOrder; import org.compiere.model.MOrderLine; import org.compiere.model.MOrderTax; @@ -397,14 +397,14 @@ public class PosOrderModel extends MOrder { { try { - MBankAccount[] m_mBankAccounts = MPaymentProcessor.find (getCtx (), null, null, + MBankAccountProcessor[] m_mBankAccountProcessors = MPaymentProcessor.find (getCtx (), null, null, getAD_Client_ID (), getAD_Org_ID(), getC_Currency_ID (), amt, get_TrxName()); // HashMap map = new HashMap(); // to eliminate duplicates - for (int i = 0; i < m_mBankAccounts.length; i++) + for (int i = 0; i < m_mBankAccountProcessors.length; i++) { - MBankAccount bankAccount = m_mBankAccounts[i]; - MPaymentProcessor paymentProcessor = new MPaymentProcessor(bankAccount.getCtx(), bankAccount.getC_PaymentProcessor_ID(), bankAccount.get_TrxName()); + MBankAccountProcessor bankAccountProcessor = m_mBankAccountProcessors[i]; + MPaymentProcessor paymentProcessor = new MPaymentProcessor(bankAccountProcessor.getCtx(), bankAccountProcessor.getC_PaymentProcessor_ID(), bankAccountProcessor.get_TrxName()); if (paymentProcessor.isAcceptAMEX ()) map.put (MPayment.CREDITCARDTYPE_Amex, getCreditCardPair (MPayment.CREDITCARDTYPE_Amex)); if (paymentProcessor.isAcceptDiners ()) @@ -421,7 +421,7 @@ public class PosOrderModel extends MOrder { // ValueNamePair[] retValue = new ValueNamePair[map.size ()]; map.values ().toArray (retValue); - log.fine("getCreditCards - #" + retValue.length + " - Processors=" + m_mBankAccounts.length); + log.fine("getCreditCards - #" + retValue.length + " - Processors=" + m_mBankAccountProcessors.length); return retValue; } catch (Exception ex) From c54b3b6ca6d464431f2e60677f078cbae01fd9eb Mon Sep 17 00:00:00 2001 From: Deepak Pansheriya Date: Wed, 17 Oct 2012 22:15:28 +0530 Subject: [PATCH 3/4] IDEMPIERE-9 : Not allowing updation of BPartner from Completed records. --- .../WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java index bea84bee7a..cbabbef96a 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java @@ -430,9 +430,11 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value * Action - Special BPartner Screen * @param newRecord true if new record should be created */ - private void actionBPartner (boolean newRecord) { + if(!getComponent().isEnabled()) + return; + final WBPartner vbp = new WBPartner (lookup.getWindowNo()); int BPartner_ID = 0; From bb085c554656b3de9468115df92aa2f334be6bdf Mon Sep 17 00:00:00 2001 From: Deepak Pansheriya Date: Thu, 18 Oct 2012 15:53:46 +0530 Subject: [PATCH 4/4] IDEMPIERE-293 List of active session --- db/ddlutils/oracle/views/AD_SESSIONINFO_V.sql | 7 + .../postgresql/views/AD_SESSIONINFO_V.sql | 7 + .../oracle/935_IDEMPIERE-293.sql | 810 +++++++++++++++++ .../postgresql/935_IDEMPIERE-293.sql | 811 ++++++++++++++++++ .../webui/LoggedSessionListener.java | 76 ++ .../webui/session/SessionContextListener.java | 41 +- org.adempiere.ui.zk/WEB-INF/web.xml | 31 +- 7 files changed, 1767 insertions(+), 16 deletions(-) create mode 100644 db/ddlutils/oracle/views/AD_SESSIONINFO_V.sql create mode 100644 db/ddlutils/postgresql/views/AD_SESSIONINFO_V.sql create mode 100644 migration/360lts-release/oracle/935_IDEMPIERE-293.sql create mode 100644 migration/360lts-release/postgresql/935_IDEMPIERE-293.sql create mode 100644 org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/LoggedSessionListener.java diff --git a/db/ddlutils/oracle/views/AD_SESSIONINFO_V.sql b/db/ddlutils/oracle/views/AD_SESSIONINFO_V.sql new file mode 100644 index 0000000000..24346cf159 --- /dev/null +++ b/db/ddlutils/oracle/views/AD_SESSIONINFO_V.sql @@ -0,0 +1,7 @@ +CREATE OR REPLACE VIEW ad_sessioninfo_v AS + SELECT s.ad_session_id,0 ad_client_id, s.ad_org_id, s.isactive, + s.created, s.createdby, s.updated, s.updatedby, s.websession, + s.remote_addr, s.remote_host, s.ad_role_id, s.logindate, s.ad_session_uu, + s.servername, s.ad_client_id AS login_client_id + FROM ad_session s + WHERE s.processed = 'N'; \ No newline at end of file diff --git a/db/ddlutils/postgresql/views/AD_SESSIONINFO_V.sql b/db/ddlutils/postgresql/views/AD_SESSIONINFO_V.sql new file mode 100644 index 0000000000..adc0895cdd --- /dev/null +++ b/db/ddlutils/postgresql/views/AD_SESSIONINFO_V.sql @@ -0,0 +1,7 @@ +CREATE OR REPLACE VIEW ad_sessioninfo_v AS + SELECT s.ad_session_id, 0::numeric(10,0) AS ad_client_id, s.ad_org_id, s.isactive, + s.created, s.createdby, s.updated, s.updatedby, s.websession, + s.remote_addr, s.remote_host, s.ad_role_id, s.logindate, s.ad_session_uu, + s.servername, s.ad_client_id AS login_client_id + FROM ad_session s + WHERE s.processed = 'N'::bpchar; \ No newline at end of file diff --git a/migration/360lts-release/oracle/935_IDEMPIERE-293.sql b/migration/360lts-release/oracle/935_IDEMPIERE-293.sql new file mode 100644 index 0000000000..15891a3f94 --- /dev/null +++ b/migration/360lts-release/oracle/935_IDEMPIERE-293.sql @@ -0,0 +1,810 @@ +CREATE OR REPLACE VIEW ad_sessioninfo_v AS + SELECT s.ad_session_id,0 ad_client_id, s.ad_org_id, s.isactive, + s.created, s.createdby, s.updated, s.updatedby, s.websession, + s.remote_addr, s.remote_host, s.ad_role_id, s.logindate, s.ad_session_uu, + s.servername, s.ad_client_id AS login_client_id + FROM ad_session s + WHERE s.processed = 'N'; + + Update AD_Session set processed='Y'; + +-- Oct 11, 2012 6:09:22 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Table (IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,ImportTable,IsView,IsChangeLog,EntityType,CopyColumnsFromTable,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Description,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','4',0,200025,'N','N','N','N','D','N','L','fd0427f8-ec15-4bd2-b4b1-d9ee2fb3890f','Y','Y','AD_SessionInfo_v','List of current logged in user','AD_SessionInfo_v',0,'Y',0,TO_DATE('2012-10-11 18:09:20','YYYY-MM-DD HH24:MI:SS'),100,100,TO_DATE('2012-10-11 18:09:20','YYYY-MM-DD HH24:MI:SS')) +; + +-- Oct 11, 2012 6:09:22 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Table_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_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200025 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + + +-- Oct 11, 2012 6:09:24 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,StartNo,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive) VALUES ('N',50000,'Y',1000000,1000000,'N','Y',200025,'8d765793-7e49-47fe-809f-e82c93b8a5f2','Table AD_SessionInfo_v','AD_SessionInfo_v',1,0,0,TO_DATE('2012-10-11 18:09:22','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-10-11 18:09:22','YYYY-MM-DD HH24:MI:SS'),100,'Y') +; + +-- Oct 11, 2012 6:12:56 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200588,'D','N','N','N','N',10,'N',19,'N',2029,'ce1e4f62-f570-4d3f-b57f-29cbfc70ad8a','N','Y','N','AD_Session_ID','User Session Online or Web','Online or Web Session Information','Session',100,TO_DATE('2012-10-11 18:12:55','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:12:55','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:12:56 PM PDT +-- IDEMPIERE-293-List of logged users +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=200588 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + + +-- Oct 11, 2012 6:12:58 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200589,'D','N','N','N','N',10,'N',19,'N',102,'4fb5a4e2-626f-44e3-ab61-9225cee5b188','N','N','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client',100,TO_DATE('2012-10-11 18:12:56','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:12:56','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:12:58 PM PDT +-- IDEMPIERE-293-List of logged users +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=200589 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + + +-- Oct 11, 2012 6:12:59 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200590,'D','N','N','N','N',10,'N',19,'N',113,'52199616-5a16-4bf4-ba03-496a75b33138','N','N','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization',100,TO_DATE('2012-10-11 18:12:58','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:12:58','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:12:59 PM PDT +-- IDEMPIERE-293-List of logged users +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=200590 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 11, 2012 6:13:00 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200591,'D','N','N','N','N',1,'N',20,'N',348,'b011d222-0512-474d-967a-39501f9f4aad','N','Y','N','IsActive','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Active',100,TO_DATE('2012-10-11 18:12:59','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:12:59','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:00 PM PDT +-- IDEMPIERE-293-List of logged users +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=200591 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:01 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200592,'D','N','N','N','N',29,'N',16,'N',245,'6a2a8dff-02b4-4a9d-8218-4c1ac75967c7','N','N','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created',100,TO_DATE('2012-10-11 18:13:00','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:13:00','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:01 PM PDT +-- IDEMPIERE-293-List of logged users +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=200592 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:02 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200593,'D',110,'N','N','N','N',10,'N',18,'N',246,'f712b956-5f63-4051-99b0-36c0f96ad562','N','N','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By',100,TO_DATE('2012-10-11 18:13:01','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:13:01','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:03 PM PDT +-- IDEMPIERE-293-List of logged users +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=200593 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 11, 2012 6:13:04 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200594,'D','N','N','N','N',29,'N',16,'N',607,'62fb0d4a-a813-4c3f-b61b-b50d769e7221','N','N','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated',100,TO_DATE('2012-10-11 18:13:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:13:03','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:05 PM PDT +-- IDEMPIERE-293-List of logged users +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=200594 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 11, 2012 6:13:07 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200595,'D',110,'N','N','N','N',10,'N',18,'N',608,'dfbd1427-339e-4bff-83a6-99ab8ae71b0b','N','N','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By',100,TO_DATE('2012-10-11 18:13:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:13:05','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:08 PM PDT +-- IDEMPIERE-293-List of logged users +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=200595 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 11, 2012 6:13:13 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200596,'D','N','N','N','N',40,'N',10,'N',2059,'c105dadf-309d-4a1d-b0bd-a5a2aac25667','N','Y','N','WebSession','Web Session ID','Web Session',100,TO_DATE('2012-10-11 18:13:08','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:13:08','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:13 PM PDT +-- IDEMPIERE-293-List of logged users +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=200596 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 11, 2012 6:13:16 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200597,'D','N','N','N','N',60,'N',10,'N',1430,'7cd7f374-5ab8-4f64-ab70-03191fe92705','N','Y','N','Remote_Addr','Remote Address','The Remote Address indicates an alternative or external address.','Remote Addr',100,TO_DATE('2012-10-11 18:13:13','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:13:13','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:16 PM PDT +-- IDEMPIERE-293-List of logged users +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=200597 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:18 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200598,'D','N','N','N','N',120,'N',10,'N',1431,'2505c72d-c722-4548-8339-de2a4c38b94f','N','Y','N','Remote_Host','Remote host Info','Remote Host',100,TO_DATE('2012-10-11 18:13:16','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:13:16','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:18 PM PDT +-- IDEMPIERE-293-List of logged users +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=200598 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:24 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200599,'D','N','N','N','N',10,'N',19,'N',123,'a979c0b4-d349-40b7-9dc9-6aa9dbb41913','N','Y','N','AD_Role_ID','Responsibility Role','The Role determines security and access a user who has this Role will have in the System.','Role',100,TO_DATE('2012-10-11 18:13:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:13:19','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:24 PM PDT +-- IDEMPIERE-293-List of logged users +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=200599 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:27 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200600,'D','N','N','N','N',29,'N',16,'N',53344,'b286aafe-777b-46ff-ab4a-bcd304962e38','N','Y','N','LoginDate','Login date',100,TO_DATE('2012-10-11 18:13:24','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:13:24','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:27 PM PDT +-- IDEMPIERE-293-List of logged users +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=200600 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:29 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200601,'D','N','N','N','N',36,'N',10,'N',54595,'58879fef-b363-465a-a56e-25f15bdf296e','N','Y','N','AD_Session_UU','AD_Session_UU',100,TO_DATE('2012-10-11 18:13:27','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:13:27','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:29 PM PDT +-- IDEMPIERE-293-List of logged users +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=200601 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:32 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200602,'D','N','N','N','N',40,'Y',10,'N',1000006,'992d57b8-76ef-45a8-8dd7-0226cb17b3e4','N','Y','N','ServerName','Server name',100,TO_DATE('2012-10-11 18:13:29','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 18:13:29','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:32 PM PDT +-- IDEMPIERE-293-List of logged users +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=200602 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:17:07 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Window (WindowType,IsSOTrx,IsDefault,IsBetaFunctionality,WinHeight,WinWidth,EntityType,Name,Description,AD_Window_ID,Processing,AD_Window_UU,Created,Updated,AD_Org_ID,AD_Client_ID,IsActive,UpdatedBy,CreatedBy) VALUES ('Q','Y','N','N',0,0,'D','Current Logins','List of Current Logged in user',200016,'N','9ca5088a-12f9-4f68-9ad2-8d6bc667c718',TO_DATE('2012-10-11 18:17:05','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-10-11 18:17:05','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',100,100) +; + +-- Oct 11, 2012 6:17:08 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Window_Trl (AD_Language,AD_Window_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Window_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Window t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Window_ID=200016 AND NOT EXISTS (SELECT * FROM AD_Window_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Window_ID=t.AD_Window_ID) +; + + +-- Oct 11, 2012 6:24:07 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Tab (IsSingleRow,AD_Window_ID,SeqNo,IsTranslationTab,IsSortTab,AD_Table_ID,ImportFields,HasTree,IsInfoTab,IsReadOnly,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,Name,Description,AD_Tab_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Processing,IsActive) VALUES ('Y',200016,10,'N','N',200025,'N','N','N','N','Y','N',0,'6fb7071b-f94c-49fe-86db-a4a5560f119f','D','Sessions','Current Sessions',200025,0,0,TO_DATE('2012-10-11 18:24:05','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-10-11 18:24:05','YYYY-MM-DD HH24:MI:SS'),100,'N','Y') +; + +-- Oct 11, 2012 6:24:08 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, Help,CommitWarning,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Tab_ID, t.Help,t.CommitWarning,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=200025 AND NOT EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Tab_ID=t.AD_Tab_ID) +; + + +-- Oct 11, 2012 6:24:17 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,1,'N','N',200591,'Y',200604,'N','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','D','The record is active in the system','Active','Y','N','4a4ea069-d90b-4f94-bd8c-54bc9e9e410d',100,0,TO_DATE('2012-10-11 18:24:14','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-11 18:24:14','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:17 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200604 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:20 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,36,'N','N',200601,'Y',200605,'N','D','AD_Session_UU','Y','N','13fd257c-f4b4-4847-b550-a5b5121c4dd3',100,0,TO_DATE('2012-10-11 18:24:17','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-11 18:24:17','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:20 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200605 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:26 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,10,'N','N',200589,'Y',200606,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','D','Client/Tenant for this installation.','Client','Y','N','0a1cb71d-afb0-4b44-8500-b98bcb0d6f5a',100,0,TO_DATE('2012-10-11 18:24:20','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-11 18:24:20','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:26 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200606 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:28 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,29,'N','N',200600,'Y',200607,'N','D','Login date','Y','N','75afce1d-6a45-4f3c-991b-a99755414c06',100,0,TO_DATE('2012-10-11 18:24:26','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-11 18:24:26','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:28 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200607 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:32 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,10,'N','N',200590,'Y',200608,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','D','Organizational entity within client','Organization','Y','N','b2f7e6d5-192f-4602-967f-0bad43829dd2',100,0,TO_DATE('2012-10-11 18:24:28','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-11 18:24:28','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:32 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200608 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:32 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,60,'N','N',200597,'Y',200609,'N','The Remote Address indicates an alternative or external address.','D','Remote Address','Remote Addr','Y','N','246620b1-bdfd-44f6-9e04-86a1b2acebb9',100,0,TO_DATE('2012-10-11 18:24:32','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-11 18:24:32','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:33 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200609 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:34 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,120,'N','N',200598,'Y',200610,'N','D','Remote host Info','Remote Host','Y','N','721af3e7-10ec-4e6f-b9b7-cefb1f11579d',100,0,TO_DATE('2012-10-11 18:24:33','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-11 18:24:33','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:34 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200610 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:35 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,10,'N','N',200599,'Y',200611,'N','The Role determines security and access a user who has this Role will have in the System.','D','Responsibility Role','Role','Y','N','3e693000-4510-4d7b-a1cf-7cc2d33a877a',100,0,TO_DATE('2012-10-11 18:24:34','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-11 18:24:34','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:35 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200611 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:36 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,40,'N','N',200602,'Y',200612,'N','D','Server name','Y','N','b15ce97a-2550-4c7d-9cfa-2ae4e66e5783',100,0,TO_DATE('2012-10-11 18:24:35','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-11 18:24:35','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:36 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200612 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:37 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,10,'N','N',200588,'Y',200613,'N','Online or Web Session Information','D','User Session Online or Web','Session','Y','N','8dd5343c-ebd6-4824-8a37-f2129750a5c1',100,0,TO_DATE('2012-10-11 18:24:36','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-11 18:24:36','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:37 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200613 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:39 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,40,'N','N',200596,'Y',200614,'N','D','Web Session ID','Web Session','Y','N','55af8bd7-d361-4f1c-8b8f-3546b66f4d05',100,0,TO_DATE('2012-10-11 18:24:37','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-11 18:24:37','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:39 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200614 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:28:47 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Menu (AD_Window_ID,AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,Name,Description,Action,AD_Menu_UU,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200016,200022,'N','N','N','U','Y','Login Session','Current logged in session','W','cef6bf48-0c65-4739-97f5-2d0b0cb062d4','Y',0,100,TO_DATE('2012-10-11 18:28:44','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2012-10-11 18:28:44','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Oct 11, 2012 6:28:47 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200022 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) +; + +-- Oct 11, 2012 6:28:47 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID, 0, 'Y', SysDate, 100, SysDate, 100,t.AD_Tree_ID, 200022, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200022) +; + + +-- Oct 18, 2012 1:30:02 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Window SET Name='Active Session',Updated=TO_DATE('2012-10-18 13:30:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=200016 +; + +-- Oct 18, 2012 1:30:02 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=200016 +; + +-- Oct 18, 2012 1:30:02 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Menu SET Name='Active Session', Description='List of Current Logged in user', IsActive='Y',Updated=TO_DATE('2012-10-18 13:30:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=200022 +; + +-- Oct 18, 2012 1:30:02 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=200022 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=200606 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=200608 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=200605 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=200609 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=200610 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=200611 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200607 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200613 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200614 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=200604 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=200609 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=200610 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=200611 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=200607 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200613 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200614 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200604 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=200605 +; + +-- Oct 18, 2012 1:33:15 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2012-10-18 13:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200606 +; + +-- Oct 18, 2012 1:33:39 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_DATE('2012-10-18 13:33:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200608 +; + +-- Oct 18, 2012 1:34:00 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2012-10-18 13:34:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200609 +; + +-- Oct 18, 2012 1:34:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET IsSameLine='Y', XPosition=4, ColumnSpan=2,Updated=TO_DATE('2012-10-18 13:34:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200610 +; + +-- Oct 18, 2012 1:34:28 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2012-10-18 13:34:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200611 +; + +-- Oct 18, 2012 1:34:43 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET XPosition=4,Updated=TO_DATE('2012-10-18 13:34:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200607 +; + +-- Oct 18, 2012 1:35:43 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200614 +; + +-- Oct 18, 2012 1:35:43 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200604 +; + +-- Oct 18, 2012 1:35:43 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200613 +; + +-- Oct 18, 2012 1:38:12 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_SysConfig SET Value='IDEMPIERE-293 List of Active Session',Updated=TO_DATE('2012-10-18 13:38:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=50003 +; + +-- Oct 18, 2012 1:38:59 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200701,'D','N','N','N','N',40,'Y',10,'N',200182,'d7bc09f3-6c2c-444b-bea9-0ef0324cccbf','N','Y','N','ServerName','Load balancing instance name','Server Name',100,TO_DATE('2012-10-18 13:38:57','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-18 13:38:57','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 18, 2012 1:39:00 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200701 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 18, 2012 1:40:09 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,40,'N','N',200701,'Y',200646,'N','Load balancing instance name','D','Server Name','N','Y','cd3e0ee3-501f-4445-adc8-ecef383bc96b',100,0,TO_DATE('2012-10-18 13:40:08','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-18 13:40:08','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 18, 2012 1:40:09 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200646 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 18, 2012 1:41:56 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200646 +; + +-- Oct 18, 2012 1:41:56 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200614 +; + +-- Oct 18, 2012 1:41:56 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200604 +; + +-- Oct 18, 2012 1:41:56 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=200613 +; + +-- Oct 18, 2012 1:41:56 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=200605 +; + +-- Oct 18, 2012 1:42:24 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2012-10-18 13:42:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200646 +; + +-- Oct 18, 2012 1:42:36 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_DATE('2012-10-18 13:42:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200614 +; + +-- Oct 18, 2012 1:42:53 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET XPosition=2,Updated=TO_DATE('2012-10-18 13:42:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200604 +; + +-- Oct 18, 2012 1:43:19 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_DATE('2012-10-18 13:43:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200605 +; + +-- Oct 18, 2012 1:46:50 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53242 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=519 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53083 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=518 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=228 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=159, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200022 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=159, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=114 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=159, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=108 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=159, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=115 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=159, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53225 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=159, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53226 +; + + + + +-- Oct 18, 2012 2:28:42 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('login_client_id',200186,'D','login_client_id','login_client_id','4fc6243a-2368-4251-9229-5dd20de17693',0,TO_DATE('2012-10-18 14:28:41','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-10-18 14:28:41','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Oct 18, 2012 2:28:42 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=200186 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Oct 18, 2012 2:28:43 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200702,'D','N','N','N','N',10,'N',19,'N',200186,'1b4a16bb-fe54-4afb-a1b1-2320a09ab856','N','N','N','login_client_id','login_client_id',100,TO_DATE('2012-10-18 14:28:41','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-18 14:28:41','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 18, 2012 2:28:43 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200702 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 18, 2012 2:31:50 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Element SET Name='Client', PrintName='Client',Updated=TO_DATE('2012-10-18 14:31:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=200186 +; + +-- Oct 18, 2012 2:31:50 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=200186 +; + +-- Oct 18, 2012 2:31:50 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Column SET ColumnName='login_client_id', Name='Client', Description=NULL, Help=NULL WHERE AD_Element_ID=200186 +; + +-- Oct 18, 2012 2:31:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Process_Para SET ColumnName='login_client_id', Name='Client', Description=NULL, Help=NULL, AD_Element_ID=200186 WHERE UPPER(ColumnName)='LOGIN_CLIENT_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Oct 18, 2012 2:31:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Process_Para SET ColumnName='login_client_id', Name='Client', Description=NULL, Help=NULL WHERE AD_Element_ID=200186 AND IsCentrallyMaintained='Y' +; + +-- Oct 18, 2012 2:31:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET Name='Client', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200186) AND IsCentrallyMaintained='Y' +; + +-- Oct 18, 2012 2:31:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_PrintFormatItem pi SET PrintName='Client', Name='Client' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=200186) +; + +-- Oct 18, 2012 2:32:49 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Table SET AccessLevel='4', IsView='N',Updated=TO_DATE('2012-10-18 14:32:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200025 +; + +-- Oct 18, 2012 2:32:57 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Table SET IsView='Y',Updated=TO_DATE('2012-10-18 14:32:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200025 +; + +-- Oct 18, 2012 2:33:22 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,10,'N','N',200702,'Y',200647,'N','D','Client','N','Y','5fb154ca-0759-4700-9beb-071c871a7b7b',100,0,TO_DATE('2012-10-18 14:33:21','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2012-10-18 14:33:21','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 18, 2012 2:33:22 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200647 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 18, 2012 2:33:59 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200606 +; + +-- Oct 18, 2012 2:33:59 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=200647 +; + +-- Oct 18, 2012 2:37:13 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Reference (AD_Reference_ID,Name,EntityType,AD_Reference_UU,IsOrderByValue,Description,ValidationType,AD_Client_ID,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy) VALUES (200013,'AD_Session','D','3d5add60-2d2d-4570-b1d1-0e188b731374','N','AD Session','T',0,0,100,TO_DATE('2012-10-18 14:37:12','YYYY-MM-DD HH24:MI:SS'),'Y',TO_DATE('2012-10-18 14:37:12','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Oct 18, 2012 2:37:13 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Reference_Trl_UU ) SELECT l.AD_Language,t.AD_Reference_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=200013 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) +; + +-- Oct 18, 2012 2:38:49 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Column SET AD_Reference_Value_ID=129, AD_Reference_ID=18,Updated=TO_DATE('2012-10-18 14:38:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200702 +; + +-- Oct 18, 2012 2:39:09 PM IST +-- IDEMPIERE-293 List of Active Session +DELETE FROM AD_Reference_Trl WHERE AD_Reference_ID=200013 +; + +-- Oct 18, 2012 2:39:09 PM IST +-- IDEMPIERE-293 List of Active Session +DELETE FROM AD_Reference WHERE AD_Reference_ID=200013 +; + + + +SELECT register_migration_script('935_IDEMPIERE-293.sql') FROM dual +; \ No newline at end of file diff --git a/migration/360lts-release/postgresql/935_IDEMPIERE-293.sql b/migration/360lts-release/postgresql/935_IDEMPIERE-293.sql new file mode 100644 index 0000000000..abdd1dbe48 --- /dev/null +++ b/migration/360lts-release/postgresql/935_IDEMPIERE-293.sql @@ -0,0 +1,811 @@ +CREATE OR REPLACE VIEW ad_sessioninfo_v AS + SELECT s.ad_session_id, 0::numeric(10,0) AS ad_client_id, s.ad_org_id, s.isactive, + s.created, s.createdby, s.updated, s.updatedby, s.websession, + s.remote_addr, s.remote_host, s.ad_role_id, s.logindate, s.ad_session_uu, + s.servername, s.ad_client_id AS login_client_id + FROM ad_session s + WHERE s.processed = 'N'::bpchar; + + Update AD_Session set processed='Y'; + +-- Oct 11, 2012 6:09:22 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Table (IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,ImportTable,IsView,IsChangeLog,EntityType,CopyColumnsFromTable,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Description,Name,AD_Client_ID,IsActive,AD_Org_ID,Updated,CreatedBy,UpdatedBy,Created) VALUES ('N','4',0,200025,'N','N','N','N','D','N','L','fd0427f8-ec15-4bd2-b4b1-d9ee2fb3890f','Y','Y','AD_SessionInfo_v','List of current logged in user','AD_SessionInfo_v',0,'Y',0,TO_TIMESTAMP('2012-10-11 18:09:20','YYYY-MM-DD HH24:MI:SS'),100,100,TO_TIMESTAMP('2012-10-11 18:09:20','YYYY-MM-DD HH24:MI:SS')) +; + +-- Oct 11, 2012 6:09:22 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Table_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_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200025 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) +; + + +-- Oct 11, 2012 6:09:24 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,StartNo,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,AD_Sequence_UU,Description,Name,IncrementNo,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive) VALUES ('N',50000,'Y',1000000,1000000,'N','Y',200025,'8d765793-7e49-47fe-809f-e82c93b8a5f2','Table AD_SessionInfo_v','AD_SessionInfo_v',1,0,0,TO_TIMESTAMP('2012-10-11 18:09:22','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-10-11 18:09:22','YYYY-MM-DD HH24:MI:SS'),100,'Y') +; + +-- Oct 11, 2012 6:12:56 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200588,'D','N','N','N','N',10,'N',19,'N',2029,'ce1e4f62-f570-4d3f-b57f-29cbfc70ad8a','N','Y','N','AD_Session_ID','User Session Online or Web','Online or Web Session Information','Session',100,TO_TIMESTAMP('2012-10-11 18:12:55','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:12:55','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:12:56 PM PDT +-- IDEMPIERE-293-List of logged users +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=200588 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:12:58 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200589,'D','N','N','N','N',10,'N',19,'N',102,'4fb5a4e2-626f-44e3-ab61-9225cee5b188','N','N','N','AD_Client_ID','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client',100,TO_TIMESTAMP('2012-10-11 18:12:56','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:12:56','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:12:58 PM PDT +-- IDEMPIERE-293-List of logged users +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=200589 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:12:59 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200590,'D','N','N','N','N',10,'N',19,'N',113,'52199616-5a16-4bf4-ba03-496a75b33138','N','N','N','AD_Org_ID','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization',100,TO_TIMESTAMP('2012-10-11 18:12:58','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:12:58','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:12:59 PM PDT +-- IDEMPIERE-293-List of logged users +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=200590 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:00 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200591,'D','N','N','N','N',1,'N',20,'N',348,'b011d222-0512-474d-967a-39501f9f4aad','N','Y','N','IsActive','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Active',100,TO_TIMESTAMP('2012-10-11 18:12:59','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:12:59','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:00 PM PDT +-- IDEMPIERE-293-List of logged users +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=200591 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:01 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200592,'D','N','N','N','N',29,'N',16,'N',245,'6a2a8dff-02b4-4a9d-8218-4c1ac75967c7','N','N','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created',100,TO_TIMESTAMP('2012-10-11 18:13:00','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:13:00','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:01 PM PDT +-- IDEMPIERE-293-List of logged users +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=200592 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 11, 2012 6:13:02 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200593,'D',110,'N','N','N','N',10,'N',18,'N',246,'f712b956-5f63-4051-99b0-36c0f96ad562','N','N','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By',100,TO_TIMESTAMP('2012-10-11 18:13:01','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:13:01','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:03 PM PDT +-- IDEMPIERE-293-List of logged users +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=200593 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:04 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200594,'D','N','N','N','N',29,'N',16,'N',607,'62fb0d4a-a813-4c3f-b61b-b50d769e7221','N','N','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated',100,TO_TIMESTAMP('2012-10-11 18:13:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:13:03','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:05 PM PDT +-- IDEMPIERE-293-List of logged users +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=200594 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:07 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200595,'D',110,'N','N','N','N',10,'N',18,'N',608,'dfbd1427-339e-4bff-83a6-99ab8ae71b0b','N','N','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By',100,TO_TIMESTAMP('2012-10-11 18:13:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:13:05','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:08 PM PDT +-- IDEMPIERE-293-List of logged users +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=200595 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:13 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200596,'D','N','N','N','N',40,'N',10,'N',2059,'c105dadf-309d-4a1d-b0bd-a5a2aac25667','N','Y','N','WebSession','Web Session ID','Web Session',100,TO_TIMESTAMP('2012-10-11 18:13:08','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:13:08','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:13 PM PDT +-- IDEMPIERE-293-List of logged users +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=200596 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:16 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200597,'D','N','N','N','N',60,'N',10,'N',1430,'7cd7f374-5ab8-4f64-ab70-03191fe92705','N','Y','N','Remote_Addr','Remote Address','The Remote Address indicates an alternative or external address.','Remote Addr',100,TO_TIMESTAMP('2012-10-11 18:13:13','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:13:13','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:16 PM PDT +-- IDEMPIERE-293-List of logged users +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=200597 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:18 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200598,'D','N','N','N','N',120,'N',10,'N',1431,'2505c72d-c722-4548-8339-de2a4c38b94f','N','Y','N','Remote_Host','Remote host Info','Remote Host',100,TO_TIMESTAMP('2012-10-11 18:13:16','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:13:16','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:18 PM PDT +-- IDEMPIERE-293-List of logged users +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=200598 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:24 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200599,'D','N','N','N','N',10,'N',19,'N',123,'a979c0b4-d349-40b7-9dc9-6aa9dbb41913','N','Y','N','AD_Role_ID','Responsibility Role','The Role determines security and access a user who has this Role will have in the System.','Role',100,TO_TIMESTAMP('2012-10-11 18:13:19','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:13:19','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:24 PM PDT +-- IDEMPIERE-293-List of logged users +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=200599 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:13:27 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200600,'D','N','N','N','N',29,'N',16,'N',53344,'b286aafe-777b-46ff-ab4a-bcd304962e38','N','Y','N','LoginDate','Login date',100,TO_TIMESTAMP('2012-10-11 18:13:24','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:13:24','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:27 PM PDT +-- IDEMPIERE-293-List of logged users +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=200600 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 11, 2012 6:13:29 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200601,'D','N','N','N','N',36,'N',10,'N',54595,'58879fef-b363-465a-a56e-25f15bdf296e','N','Y','N','AD_Session_UU','AD_Session_UU',100,TO_TIMESTAMP('2012-10-11 18:13:27','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:13:27','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:29 PM PDT +-- IDEMPIERE-293-List of logged users +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=200601 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 11, 2012 6:13:32 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200602,'D','N','N','N','N',40,'Y',10,'N',1000006,'992d57b8-76ef-45a8-8dd7-0226cb17b3e4','N','Y','N','ServerName','Server name',100,TO_TIMESTAMP('2012-10-11 18:13:29','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 18:13:29','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 11, 2012 6:13:32 PM PDT +-- IDEMPIERE-293-List of logged users +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=200602 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + + +-- Oct 11, 2012 6:17:07 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Window (WindowType,IsSOTrx,IsDefault,IsBetaFunctionality,WinHeight,WinWidth,EntityType,Name,Description,AD_Window_ID,Processing,AD_Window_UU,Created,Updated,AD_Org_ID,AD_Client_ID,IsActive,UpdatedBy,CreatedBy) VALUES ('Q','Y','N','N',0,0,'D','Current Logins','List of Current Logged in user',200016,'N','9ca5088a-12f9-4f68-9ad2-8d6bc667c718',TO_TIMESTAMP('2012-10-11 18:17:05','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2012-10-11 18:17:05','YYYY-MM-DD HH24:MI:SS'),0,0,'Y',100,100) +; + +-- Oct 11, 2012 6:17:08 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Window_Trl (AD_Language,AD_Window_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Window_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Window t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Window_ID=200016 AND NOT EXISTS (SELECT * FROM AD_Window_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Window_ID=t.AD_Window_ID) +; + +-- Oct 11, 2012 6:24:07 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Tab (IsSingleRow,AD_Window_ID,SeqNo,IsTranslationTab,IsSortTab,AD_Table_ID,ImportFields,HasTree,IsInfoTab,IsReadOnly,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,Name,Description,AD_Tab_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Processing,IsActive) VALUES ('Y',200016,10,'N','N',200025,'N','N','N','N','Y','N',0,'6fb7071b-f94c-49fe-86db-a4a5560f119f','D','Sessions','Current Sessions',200025,0,0,TO_TIMESTAMP('2012-10-11 18:24:05','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-10-11 18:24:05','YYYY-MM-DD HH24:MI:SS'),100,'N','Y') +; + +-- Oct 11, 2012 6:24:08 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, Help,CommitWarning,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Tab_ID, t.Help,t.CommitWarning,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=200025 AND NOT EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Tab_ID=t.AD_Tab_ID) +; + + +-- Oct 11, 2012 6:24:17 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,1,'N','N',200591,'Y',200604,'N','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','D','The record is active in the system','Active','Y','N','4a4ea069-d90b-4f94-bd8c-54bc9e9e410d',100,0,TO_TIMESTAMP('2012-10-11 18:24:14','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-11 18:24:14','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:17 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200604 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:20 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,36,'N','N',200601,'Y',200605,'N','D','AD_Session_UU','Y','N','13fd257c-f4b4-4847-b550-a5b5121c4dd3',100,0,TO_TIMESTAMP('2012-10-11 18:24:17','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-11 18:24:17','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:20 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200605 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:26 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,10,'N','N',200589,'Y',200606,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','D','Client/Tenant for this installation.','Client','Y','N','0a1cb71d-afb0-4b44-8500-b98bcb0d6f5a',100,0,TO_TIMESTAMP('2012-10-11 18:24:20','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-11 18:24:20','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:26 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200606 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:28 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,29,'N','N',200600,'Y',200607,'N','D','Login date','Y','N','75afce1d-6a45-4f3c-991b-a99755414c06',100,0,TO_TIMESTAMP('2012-10-11 18:24:26','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-11 18:24:26','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:28 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200607 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:32 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,10,'N','N',200590,'Y',200608,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','D','Organizational entity within client','Organization','Y','N','b2f7e6d5-192f-4602-967f-0bad43829dd2',100,0,TO_TIMESTAMP('2012-10-11 18:24:28','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-11 18:24:28','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:32 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200608 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:32 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,60,'N','N',200597,'Y',200609,'N','The Remote Address indicates an alternative or external address.','D','Remote Address','Remote Addr','Y','N','246620b1-bdfd-44f6-9e04-86a1b2acebb9',100,0,TO_TIMESTAMP('2012-10-11 18:24:32','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-11 18:24:32','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:33 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200609 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:34 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,120,'N','N',200598,'Y',200610,'N','D','Remote host Info','Remote Host','Y','N','721af3e7-10ec-4e6f-b9b7-cefb1f11579d',100,0,TO_TIMESTAMP('2012-10-11 18:24:33','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-11 18:24:33','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:34 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200610 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:35 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,10,'N','N',200599,'Y',200611,'N','The Role determines security and access a user who has this Role will have in the System.','D','Responsibility Role','Role','Y','N','3e693000-4510-4d7b-a1cf-7cc2d33a877a',100,0,TO_TIMESTAMP('2012-10-11 18:24:34','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-11 18:24:34','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:35 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200611 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:36 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,40,'N','N',200602,'Y',200612,'N','D','Server name','Y','N','b15ce97a-2550-4c7d-9cfa-2ae4e66e5783',100,0,TO_TIMESTAMP('2012-10-11 18:24:35','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-11 18:24:35','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:36 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200612 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:37 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,10,'N','N',200588,'Y',200613,'N','Online or Web Session Information','D','User Session Online or Web','Session','Y','N','8dd5343c-ebd6-4824-8a37-f2129750a5c1',100,0,TO_TIMESTAMP('2012-10-11 18:24:36','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-11 18:24:36','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:37 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200613 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:24:39 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,40,'N','N',200596,'Y',200614,'N','D','Web Session ID','Web Session','Y','N','55af8bd7-d361-4f1c-8b8f-3546b66f4d05',100,0,TO_TIMESTAMP('2012-10-11 18:24:37','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-11 18:24:37','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 11, 2012 6:24:39 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200614 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + + +-- Oct 11, 2012 6:28:47 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Menu (AD_Window_ID,AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,Name,Description,"action",AD_Menu_UU,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200016,200022,'N','N','N','U','Y','Login Session','Current logged in session','W','cef6bf48-0c65-4739-97f5-2d0b0cb062d4','Y',0,100,TO_TIMESTAMP('2012-10-11 18:28:44','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2012-10-11 18:28:44','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Oct 11, 2012 6:28:47 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200022 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) +; + + +-- Oct 11, 2012 6:28:47 PM PDT +-- IDEMPIERE-293-List of logged users +INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID, 0, 'Y', CURRENT_TIMESTAMP, 100, CURRENT_TIMESTAMP, 100,t.AD_Tree_ID, 200022, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200022) +; + + + +-- Oct 18, 2012 1:30:02 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Window SET Name='Active Session',Updated=TO_TIMESTAMP('2012-10-18 13:30:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=200016 +; + +-- Oct 18, 2012 1:30:02 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=200016 +; + +-- Oct 18, 2012 1:30:02 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Menu SET Name='Active Session', Description='List of Current Logged in user', IsActive='Y',Updated=TO_TIMESTAMP('2012-10-18 13:30:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=200022 +; + +-- Oct 18, 2012 1:30:02 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=200022 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=200606 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=200608 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=200605 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=200609 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=200610 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=200611 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200607 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200613 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200614 +; + +-- Oct 18, 2012 1:31:38 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=200604 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=200609 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=200610 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=200611 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=200607 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200613 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200614 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200604 +; + +-- Oct 18, 2012 1:32:31 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=200605 +; + +-- Oct 18, 2012 1:33:15 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-18 13:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200606 +; + +-- Oct 18, 2012 1:33:39 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-18 13:33:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200608 +; + +-- Oct 18, 2012 1:34:00 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-18 13:34:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200609 +; + +-- Oct 18, 2012 1:34:13 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET IsSameLine='Y', XPosition=4, ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-18 13:34:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200610 +; + +-- Oct 18, 2012 1:34:28 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-18 13:34:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200611 +; + +-- Oct 18, 2012 1:34:43 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET XPosition=4,Updated=TO_TIMESTAMP('2012-10-18 13:34:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200607 +; + +-- Oct 18, 2012 1:35:43 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200614 +; + +-- Oct 18, 2012 1:35:43 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200604 +; + +-- Oct 18, 2012 1:35:43 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200613 +; + +-- Oct 18, 2012 1:38:12 PM IST +-- IDEMPIERE-389 Adding server name on AD_Session +UPDATE AD_SysConfig SET Value='IDEMPIERE-293 List of Active Session',Updated=TO_TIMESTAMP('2012-10-18 13:38:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=50003 +; + +-- Oct 18, 2012 1:38:59 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Help,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200701,'D','N','N','N','N',40,'Y',10,'N',200182,'d7bc09f3-6c2c-444b-bea9-0ef0324cccbf','N','Y','N','ServerName','Load balancing instance name','Server Name',100,TO_TIMESTAMP('2012-10-18 13:38:57','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-18 13:38:57','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 18, 2012 1:39:00 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200701 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 18, 2012 1:40:09 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,40,'N','N',200701,'Y',200646,'N','Load balancing instance name','D','Server Name','N','Y','cd3e0ee3-501f-4445-adc8-ecef383bc96b',100,0,TO_TIMESTAMP('2012-10-18 13:40:08','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-18 13:40:08','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 18, 2012 1:40:09 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200646 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 18, 2012 1:41:56 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=200646 +; + +-- Oct 18, 2012 1:41:56 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=200614 +; + +-- Oct 18, 2012 1:41:56 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=200604 +; + +-- Oct 18, 2012 1:41:56 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=200613 +; + +-- Oct 18, 2012 1:41:56 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=200605 +; + +-- Oct 18, 2012 1:42:24 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-18 13:42:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200646 +; + +-- Oct 18, 2012 1:42:36 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-18 13:42:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200614 +; + +-- Oct 18, 2012 1:42:53 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET XPosition=2,Updated=TO_TIMESTAMP('2012-10-18 13:42:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200604 +; + +-- Oct 18, 2012 1:43:19 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET XPosition=4, ColumnSpan=2,Updated=TO_TIMESTAMP('2012-10-18 13:43:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200605 +; + +-- Oct 18, 2012 1:46:50 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=218 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=153 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=263 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=166 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=203 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53242 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=236 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=183 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=160 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=278 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=345 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=519 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53014 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53083 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53108 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=15, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=518 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=16, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=228 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=159, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200022 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=159, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=114 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=159, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=108 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=159, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=115 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=159, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53225 +; + +-- Oct 18, 2012 1:46:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_TreeNodeMM SET Parent_ID=159, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53226 +; + + + + +-- Oct 18, 2012 2:28:42 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('login_client_id',200186,'D','login_client_id','login_client_id','4fc6243a-2368-4251-9229-5dd20de17693',0,TO_TIMESTAMP('2012-10-18 14:28:41','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2012-10-18 14:28:41','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') +; + +-- Oct 18, 2012 2:28:42 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Description,Name,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Description,t.Name,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=200186 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Oct 18, 2012 2:28:43 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (0,200025,200702,'D','N','N','N','N',10,'N',19,'N',200186,'1b4a16bb-fe54-4afb-a1b1-2320a09ab856','N','N','N','login_client_id','login_client_id',100,TO_TIMESTAMP('2012-10-18 14:28:41','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-18 14:28:41','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Oct 18, 2012 2:28:43 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) 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,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200702 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Oct 18, 2012 2:31:50 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Element SET Name='Client', PrintName='Client',Updated=TO_TIMESTAMP('2012-10-18 14:31:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=200186 +; + +-- Oct 18, 2012 2:31:50 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=200186 +; + +-- Oct 18, 2012 2:31:50 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Column SET ColumnName='login_client_id', Name='Client', Description=NULL, Help=NULL WHERE AD_Element_ID=200186 +; + +-- Oct 18, 2012 2:31:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Process_Para SET ColumnName='login_client_id', Name='Client', Description=NULL, Help=NULL, AD_Element_ID=200186 WHERE UPPER(ColumnName)='LOGIN_CLIENT_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Oct 18, 2012 2:31:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Process_Para SET ColumnName='login_client_id', Name='Client', Description=NULL, Help=NULL WHERE AD_Element_ID=200186 AND IsCentrallyMaintained='Y' +; + +-- Oct 18, 2012 2:31:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET Name='Client', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200186) AND IsCentrallyMaintained='Y' +; + +-- Oct 18, 2012 2:31:51 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_PrintFormatItem SET PrintName='Client', Name='Client' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200186) +; + +-- Oct 18, 2012 2:32:49 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Table SET AccessLevel='4', IsView='N',Updated=TO_TIMESTAMP('2012-10-18 14:32:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200025 +; + +-- Oct 18, 2012 2:32:57 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Table SET IsView='Y',Updated=TO_TIMESTAMP('2012-10-18 14:32:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200025 +; + +-- Oct 18, 2012 2:33:22 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsFieldOnly,IsDisplayed,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',200025,10,'N','N',200702,'Y',200647,'N','D','Client','N','Y','5fb154ca-0759-4700-9beb-071c871a7b7b',100,0,TO_TIMESTAMP('2012-10-18 14:33:21','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2012-10-18 14:33:21','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Oct 18, 2012 2:33:22 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200647 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Oct 18, 2012 2:33:59 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=200606 +; + +-- Oct 18, 2012 2:33:59 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=200647 +; + +-- Oct 18, 2012 2:37:13 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Reference (AD_Reference_ID,Name,EntityType,AD_Reference_UU,IsOrderByValue,Description,ValidationType,AD_Client_ID,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy) VALUES (200013,'AD_Session','D','3d5add60-2d2d-4570-b1d1-0e188b731374','N','AD Session','T',0,0,100,TO_TIMESTAMP('2012-10-18 14:37:12','YYYY-MM-DD HH24:MI:SS'),'Y',TO_TIMESTAMP('2012-10-18 14:37:12','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Oct 18, 2012 2:37:13 PM IST +-- IDEMPIERE-293 List of Active Session +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Reference_Trl_UU ) SELECT l.AD_Language,t.AD_Reference_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=200013 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) +; + +-- Oct 18, 2012 2:38:49 PM IST +-- IDEMPIERE-293 List of Active Session +UPDATE AD_Column SET AD_Reference_Value_ID=129, AD_Reference_ID=18,Updated=TO_TIMESTAMP('2012-10-18 14:38:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200702 +; + +-- Oct 18, 2012 2:39:09 PM IST +-- IDEMPIERE-293 List of Active Session +DELETE FROM AD_Reference_Trl WHERE AD_Reference_ID=200013 +; + +-- Oct 18, 2012 2:39:09 PM IST +-- IDEMPIERE-293 List of Active Session +DELETE FROM AD_Reference WHERE AD_Reference_ID=200013 +; + + + +SELECT register_migration_script('935_IDEMPIERE-293.sql') FROM dual +; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/LoggedSessionListener.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/LoggedSessionListener.java new file mode 100644 index 0000000000..7f14da2b18 --- /dev/null +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/LoggedSessionListener.java @@ -0,0 +1,76 @@ +package org.adempiere.webui; + +import java.sql.ResultSet; +import java.sql.Statement; +import java.util.Hashtable; + +import javax.servlet.ServletContextEvent; +import javax.servlet.ServletContextListener; +import javax.servlet.http.HttpSession; +import javax.servlet.http.HttpSessionEvent; +import javax.servlet.http.HttpSessionListener; + +import org.compiere.model.MSession; +import org.compiere.util.DB; +import org.compiere.util.Env; +import org.compiere.util.WebUtil; + +public class LoggedSessionListener implements HttpSessionListener, ServletContextListener{ + private static Hashtable AD_SessionList = new Hashtable(); + + @Override + public void sessionCreated(HttpSessionEvent evt) { + AD_SessionList.put(evt.getSession().getId(), evt.getSession()); + } + + @Override + public void sessionDestroyed(HttpSessionEvent evt) { + HttpSession currSess = evt.getSession(); + if(AD_SessionList.containsKey(currSess.getId())){ + String serverName = WebUtil.getServerName(); + removeADSession(currSess.getId(),serverName); + AD_SessionList.remove(currSess.getId()); + } + + } + + @Override + public void contextDestroyed(ServletContextEvent arg0) { + DestroyAllSession(); + } + + @Override + public void contextInitialized(ServletContextEvent arg0) { + DestroyAllSession(); + } + + public void DestroyAllSession() { + String serverName = WebUtil.getServerName(); + String sql = "UPDATE AD_Session SET processed = 'Y' WHERE processed ='N' AND servername = '"+serverName+"'"; + Statement stmt = DB.createStatement(); + try{ + stmt.executeUpdate(sql); + }catch (Exception e) { + System.out.println("UpdateSession: "+e); + } + + } + + public void removeADSession(String sessionID, String serverName) { + StringBuilder sql = new StringBuilder("SELECT * FROM AD_Session WHERE websession = '"); + sql.append(sessionID) + .append("' AND servername = '") + .append(serverName).append("' AND processed = 'N'"); + Statement stmt = DB.createStatement(); + try{ + ResultSet rs = stmt.executeQuery(sql.toString()); + if(rs.next()){ + MSession mSession = new MSession(Env.getCtx(), rs, null); + mSession.setProcessed(true); + mSession.save(); + } + }catch (Exception e) { + System.out.println("UpdateSession: "+e); + } + } +} diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/session/SessionContextListener.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/session/SessionContextListener.java index 54e41cb5b5..cf3c9ff121 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/session/SessionContextListener.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/session/SessionContextListener.java @@ -22,10 +22,13 @@ import java.util.Properties; import javax.servlet.http.HttpSession; -import org.compiere.util.CLogMgt; +import org.adempiere.util.ServerContext; +import org.adempiere.util.ServerContextURLHandler; +import org.compiere.model.MSession; import org.compiere.util.Env; import org.zkoss.util.Locales; import org.zkoss.zk.ui.Component; +import org.zkoss.zk.ui.Desktop; import org.zkoss.zk.ui.Execution; import org.zkoss.zk.ui.Executions; import org.zkoss.zk.ui.Session; @@ -36,12 +39,11 @@ import org.zkoss.zk.ui.event.EventThreadResume; import org.zkoss.zk.ui.event.EventThreadSuspend; import org.zkoss.zk.ui.sys.DesktopCtrl; import org.zkoss.zk.ui.sys.ServerPush; +import org.zkoss.zk.ui.util.DesktopCleanup; +import org.zkoss.zk.ui.util.DesktopInit; import org.zkoss.zk.ui.util.ExecutionCleanup; import org.zkoss.zk.ui.util.ExecutionInit; -import org.adempiere.util.ServerContextURLHandler; -import org.adempiere.util.ServerContext; - /** * * @author Ashley G Ramdass @@ -49,7 +51,7 @@ import org.adempiere.util.ServerContext; * @version $Revision: 0.10 $ */ public class SessionContextListener implements ExecutionInit, - ExecutionCleanup, EventThreadInit, EventThreadResume, EventThreadCleanup, EventThreadSuspend + ExecutionCleanup, EventThreadInit, EventThreadResume, EventThreadCleanup, EventThreadSuspend, DesktopCleanup, DesktopInit { public static final String SERVLET_SESSION_ID = "servlet.sessionId"; public static final String SESSION_CTX = "WebUISessionContext"; @@ -301,4 +303,33 @@ public class SessionContextListener implements ExecutionInit, return true; } + + @Override + public void cleanup(Desktop desktop) throws Exception { + if (ServerContext.getCurrentInstance().isEmpty() || !isContextValid()) + { + setupExecutionContextFromSession(Executions.getCurrent()); + } + MSession mSession = MSession.get(Env.getCtx(), false); + if(mSession!=null && !mSession.isProcessed() && (Env.getContext(Env.getCtx(), "isReloaded")==null || Env.getContext(Env.getCtx(), "isReloaded").equals("") || Env.getContext(Env.getCtx(), "isReloaded").equals("N"))){ + mSession.setProcessed(true); + mSession.save(); + } + Env.setContext(Env.getCtx(), "isReloaded", "N"); + } + + @Override + public void init(Desktop desktop, Object request) throws Exception { + if (ServerContext.getCurrentInstance().isEmpty() || !isContextValid()) + { + setupExecutionContextFromSession(Executions.getCurrent()); + } + MSession mSession = MSession.get(Env.getCtx(), false); + if(mSession!=null && mSession.isProcessed()){ + mSession.setProcessed(false); + mSession.save(); + }else if(mSession!=null){ + Env.setContext(Env.getCtx(), "isReloaded", "Y"); + } + } } diff --git a/org.adempiere.ui.zk/WEB-INF/web.xml b/org.adempiere.ui.zk/WEB-INF/web.xml index 69d8086ea6..314a50bab4 100644 --- a/org.adempiere.ui.zk/WEB-INF/web.xml +++ b/org.adempiere.ui.zk/WEB-INF/web.xml @@ -53,6 +53,15 @@ org.zkoss.zk.ui.http.HttpSessionListener + + + Used to track the session currently used + + Update Session + + org.adempiere.webui.LoggedSessionListener + + ZK loader for ZUML pages @@ -88,17 +97,17 @@ auEngine /zkau/* - - - servlet to provide timeline xml event feed - timelineFeed - - org.adempiere.webui.TimelineEventFeed - - - - timelineFeed - /timeline + + + servlet to provide timeline xml event feed + timelineFeed + + org.adempiere.webui.TimelineEventFeed + + + + timelineFeed + /timeline