IDEMPIERE-4315 Allow showing Change Log for extension tables #resolves IDEMPIERE-4315 (#92)

This commit is contained in:
Carlos Ruiz 2020-06-01 16:07:43 +02:00 committed by GitHub
parent f2cbbc662d
commit e0980645d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 60 additions and 1 deletions

View File

@ -0,0 +1,27 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- IDEMPIERE-4315 Allow showing Change Log for extension tables
-- Jun 1, 2020, 3:09:46 PM CEST
UPDATE AD_Table SET IsChangeLog='Y',Updated=TO_DATE('2020-06-01 15:09:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=227
;
-- Jun 1, 2020, 3:09:52 PM CEST
UPDATE AD_Table SET IsChangeLog='Y',Updated=TO_DATE('2020-06-01 15:09:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=228
;
-- Jun 1, 2020, 3:09:57 PM CEST
UPDATE AD_Table SET IsChangeLog='Y',Updated=TO_DATE('2020-06-01 15:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=103
;
-- Jun 1, 2020, 3:10:01 PM CEST
UPDATE AD_Table SET IsChangeLog='Y',Updated=TO_DATE('2020-06-01 15:10:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=315
;
-- Jun 1, 2020, 3:10:06 PM CEST
UPDATE AD_Table SET IsChangeLog='Y',Updated=TO_DATE('2020-06-01 15:10:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=266
;
SELECT register_migration_script('202006011511_IDEMPIERE-4315.sql') FROM dual
;

View File

@ -0,0 +1,24 @@
-- IDEMPIERE-4315 Allow showing Change Log for extension tables
-- Jun 1, 2020, 3:09:46 PM CEST
UPDATE AD_Table SET IsChangeLog='Y',Updated=TO_TIMESTAMP('2020-06-01 15:09:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=227
;
-- Jun 1, 2020, 3:09:52 PM CEST
UPDATE AD_Table SET IsChangeLog='Y',Updated=TO_TIMESTAMP('2020-06-01 15:09:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=228
;
-- Jun 1, 2020, 3:09:57 PM CEST
UPDATE AD_Table SET IsChangeLog='Y',Updated=TO_TIMESTAMP('2020-06-01 15:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=103
;
-- Jun 1, 2020, 3:10:01 PM CEST
UPDATE AD_Table SET IsChangeLog='Y',Updated=TO_TIMESTAMP('2020-06-01 15:10:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=315
;
-- Jun 1, 2020, 3:10:06 PM CEST
UPDATE AD_Table SET IsChangeLog='Y',Updated=TO_TIMESTAMP('2020-06-01 15:10:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=266
;
SELECT register_migration_script('202006011511_IDEMPIERE-4315.sql') FROM dual
;

View File

@ -2382,7 +2382,15 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
e.CreatedBy = (Integer)getValue("CreatedBy"); e.CreatedBy = (Integer)getValue("CreatedBy");
e.Updated = (Timestamp)getValue("Updated"); e.Updated = (Timestamp)getValue("Updated");
e.UpdatedBy = (Integer)getValue("UpdatedBy"); e.UpdatedBy = (Integer)getValue("UpdatedBy");
e.Record_ID = getValue(m_keyColumnName); if ( e.AD_Table_ID == I_AD_OrgInfo.Table_ID
|| e.AD_Table_ID == I_AD_ClientInfo.Table_ID
|| e.AD_Table_ID == I_AD_Ref_Table.Table_ID
|| e.AD_Table_ID == I_C_AcctSchema_Default.Table_ID
|| e.AD_Table_ID == I_C_AcctSchema_GL.Table_ID) {
e.Record_ID = getValue(m_parents.get(0));
} else {
e.Record_ID = getValue(m_keyColumnName);
}
// Info // Info
StringBuilder info = new StringBuilder(getTableName()); StringBuilder info = new StringBuilder(getTableName());