FR [ 1920314 ] Make configurable the changelog for insert
This commit is contained in:
parent
19f6725583
commit
0423542a2f
|
@ -2413,12 +2413,14 @@ public abstract class PO
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change Log - Only
|
// Change Log - Only
|
||||||
|
String insertLog = MSysConfig.getValue("SYSTEM_INSERT_CHANGELOG", "Y", getAD_Client_ID());
|
||||||
if ( session != null
|
if ( session != null
|
||||||
&& m_IDs.length == 1
|
&& m_IDs.length == 1
|
||||||
&& !p_info.isEncrypted(i) // not encrypted
|
&& !p_info.isEncrypted(i) // not encrypted
|
||||||
&& !p_info.isVirtualColumn(i) // no virtual column
|
&& !p_info.isVirtualColumn(i) // no virtual column
|
||||||
&& !"Password".equals(columnName)
|
&& !"Password".equals(columnName)
|
||||||
// && p_info.getColumn(i).IsKey // log all record - to log just ID uncomment this line
|
&& (insertLog.equalsIgnoreCase("Y"))
|
||||||
|
|| (insertLog.equalsIgnoreCase("K") && p_info.getColumn(i).IsKey)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// change log on new
|
// change log on new
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
-- Mar 19, 2008 7:17:07 PM COT
|
||||||
|
-- 1920314 - Make configurable the changelog for insert
|
||||||
|
INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,ConfigurationLevel,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,50015,'C',TO_DATE('2008-03-19 19:17:05','YYYY-MM-DD HH24:MI:SS'),100,'Keep change log for inserts: Y - Yes, N - No, K - just the key _ID','D','Y','SYSTEM_INSERT_CHANGELOG',TO_DATE('2008-03-19 19:17:05','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
-- Mar 19, 2008 7:17:07 PM COT
|
||||||
|
-- 1920314 - Make configurable the changelog for insert
|
||||||
|
INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,ConfigurationLevel,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,50015,'C',TO_TIMESTAMP('2008-03-19 19:17:05','YYYY-MM-DD HH24:MI:SS'),100,'Keep change log for inserts: Y - Yes, N - No, K - just the key _ID','D','Y','SYSTEM_INSERT_CHANGELOG',TO_TIMESTAMP('2008-03-19 19:17:05','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||||
|
;
|
||||||
|
|
Loading…
Reference in New Issue