From d10314493dcc7b4a1c9c6810ce88058e6b344b88 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sun, 27 Feb 2011 00:56:56 -0500 Subject: [PATCH] Fixes on dictionary for payroll tables and windows: -- Make column payroll concept category updatable -- Make column HR_Year.StartDate type Date instead of DateTime -- Fix Error -> All periods of a year shown -- Add security validation to HR_Process.AD_Org_ID -- Change HR_Movement date columns from datetime to just date --- .../oracle/741_PayrollDictionaryFixes.sql | 37 +++++++++++++++++++ .../postgresql/741_PayrollDictionaryFixes.sql | 37 +++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 migration/migration/360lts-release/oracle/741_PayrollDictionaryFixes.sql create mode 100644 migration/migration/360lts-release/postgresql/741_PayrollDictionaryFixes.sql diff --git a/migration/migration/360lts-release/oracle/741_PayrollDictionaryFixes.sql b/migration/migration/360lts-release/oracle/741_PayrollDictionaryFixes.sql new file mode 100644 index 0000000000..16df72b0ef --- /dev/null +++ b/migration/migration/360lts-release/oracle/741_PayrollDictionaryFixes.sql @@ -0,0 +1,37 @@ +-- 11-oct-2010 14:42:01 VET +-- Make column payroll concept category updatable +UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_DATE('2010-10-11 14:42:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=54820 +; + +-- 11-oct-2010 14:51:57 VET +-- Make column HR_Year.StartDate type Date instead of DateTime +UPDATE AD_Column SET AD_Reference_ID=15,Updated=TO_DATE('2010-10-11 14:51:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=54937 +; + +-- 13-oct-2010 15:21:20 VET +-- All periods of a year shown +UPDATE AD_Tab SET AD_Column_ID=54914,Updated=TO_DATE('2010-10-13 15:21:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53116 +; + +-- 13-oct-2010 15:28:02 VET +UPDATE AD_Field SET DefaultValue='@C_Year_ID@', IsReadOnly='Y',Updated=TO_DATE('2010-10-13 15:28:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=55077 +; + +-- 13-oct-2010 15:44:17 VET +-- Add security validation to HR_Process.AD_Org_ID +UPDATE AD_Column SET AD_Val_Rule_ID=130, DefaultValue='@#AD_Org_ID@',Updated=TO_DATE('2010-10-13 15:44:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=54881 +; + +-- 13-oct-2010 15:45:37 VET +-- Change HR_Movement date columns from datetime to just date +UPDATE AD_Column SET AD_Reference_ID=15,Updated=TO_DATE('2010-10-13 15:45:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55048 +; + +-- 13-oct-2010 15:45:43 VET +UPDATE AD_Column SET AD_Reference_ID=15,Updated=TO_DATE('2010-10-13 15:45:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55052 +; + +-- 13-oct-2010 15:45:46 VET +UPDATE AD_Column SET AD_Reference_ID=15,Updated=TO_DATE('2010-10-13 15:45:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55054 +; + diff --git a/migration/migration/360lts-release/postgresql/741_PayrollDictionaryFixes.sql b/migration/migration/360lts-release/postgresql/741_PayrollDictionaryFixes.sql new file mode 100644 index 0000000000..4d2109fb78 --- /dev/null +++ b/migration/migration/360lts-release/postgresql/741_PayrollDictionaryFixes.sql @@ -0,0 +1,37 @@ +-- 11-oct-2010 14:42:01 VET +-- Make column payroll concept category updatable +UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_TIMESTAMP('2010-10-11 14:42:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=54820 +; + +-- 11-oct-2010 14:51:57 VET +-- Make column HR_Year.StartDate type Date instead of DateTime +UPDATE AD_Column SET AD_Reference_ID=15,Updated=TO_TIMESTAMP('2010-10-11 14:51:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=54937 +; + +-- 13-oct-2010 15:21:20 VET +-- All periods of a year shown +UPDATE AD_Tab SET AD_Column_ID=54914,Updated=TO_TIMESTAMP('2010-10-13 15:21:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53116 +; + +-- 13-oct-2010 15:28:02 VET +UPDATE AD_Field SET DefaultValue='@C_Year_ID@', IsReadOnly='Y',Updated=TO_TIMESTAMP('2010-10-13 15:28:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=55077 +; + +-- 13-oct-2010 15:44:17 VET +-- Add security validation to HR_Process.AD_Org_ID +UPDATE AD_Column SET AD_Val_Rule_ID=130, DefaultValue='@#AD_Org_ID@',Updated=TO_TIMESTAMP('2010-10-13 15:44:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=54881 +; + +-- 13-oct-2010 15:45:37 VET +-- Change HR_Movement date columns from datetime to just date +UPDATE AD_Column SET AD_Reference_ID=15,Updated=TO_TIMESTAMP('2010-10-13 15:45:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55048 +; + +-- 13-oct-2010 15:45:43 VET +UPDATE AD_Column SET AD_Reference_ID=15,Updated=TO_TIMESTAMP('2010-10-13 15:45:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55052 +; + +-- 13-oct-2010 15:45:46 VET +UPDATE AD_Column SET AD_Reference_ID=15,Updated=TO_TIMESTAMP('2010-10-13 15:45:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55054 +; +