diff --git a/migration/i5.1/oracle/201709181100_Ticket_1008477.sql b/migration/i5.1/oracle/201709181100_Ticket_1008477.sql new file mode 100644 index 0000000000..999c740297 --- /dev/null +++ b/migration/i5.1/oracle/201709181100_Ticket_1008477.sql @@ -0,0 +1,11 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Sep 18, 2017 12:37:19 PM GMT+08:00 +-- 1008477 List on Position field in Lead window is blank even if there are position options configured. +UPDATE AD_Val_Rule SET Code='((C_Job.IsEmployee=(SELECT IsEmployee FROM C_BPartner WHERE C_BPartner_ID=@C_BPartner_ID:0@)) OR (C_Job.IsEmployee=''N'' AND @C_BPartner_ID:0@=0))',Updated=TO_DATE('2017-09-18 12:37:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=243 +; + +SELECT register_migration_script('201709181100_Ticket_1008477.sql') FROM dual +; + diff --git a/migration/i5.1/postgresql/201709181100_Ticket_1008477.sql b/migration/i5.1/postgresql/201709181100_Ticket_1008477.sql new file mode 100644 index 0000000000..f015d8518c --- /dev/null +++ b/migration/i5.1/postgresql/201709181100_Ticket_1008477.sql @@ -0,0 +1,8 @@ +-- Sep 18, 2017 12:37:19 PM GMT+08:00 +-- 1008477 List on Position field in Lead window is blank even if there are position options configured. +UPDATE AD_Val_Rule SET Code='((C_Job.IsEmployee=(SELECT IsEmployee FROM C_BPartner WHERE C_BPartner_ID=@C_BPartner_ID:0@)) OR (C_Job.IsEmployee=''N'' AND @C_BPartner_ID:0@=0))',Updated=TO_TIMESTAMP('2017-09-18 12:37:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=243 +; + +SELECT register_migration_script('201709181100_Ticket_1008477.sql') FROM dual +; +