-- Mar 28, 2013 9:56:36 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=10, IsInsertRecord='N',Updated=TO_TIMESTAMP('2013-03-28 09:56:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53146
;

-- Mar 28, 2013 9:56:53 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=20,Updated=TO_TIMESTAMP('2013-03-28 09:56:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53147
;

-- Mar 28, 2013 9:58:20 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=10,Updated=TO_TIMESTAMP('2013-03-28 09:58:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53139
;

-- Mar 28, 2013 9:58:53 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=10,Updated=TO_TIMESTAMP('2013-03-28 09:58:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53138
;

-- Mar 28, 2013 10:33:30 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=10, IsInsertRecord='N',Updated=TO_DATE('2013-03-28 10:33:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53143
;

-- Mar 28, 2013 10:33:39 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=20, IsInsertRecord='N',Updated=TO_DATE('2013-03-28 10:33:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53144
;

-- Mar 28, 2013 10:33:44 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=30, IsInsertRecord='N',Updated=TO_DATE('2013-03-28 10:33:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53145
;

-- Mar 28, 2013 10:33:49 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=40,Updated=TO_DATE('2013-03-28 10:33:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53142
;

-- Mar 28, 2013 10:35:45 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=10, IsInsertRecord='N',Updated=TO_DATE('2013-03-28 10:35:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53150
;

-- Mar 28, 2013 10:35:49 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=20, IsInsertRecord='N',Updated=TO_DATE('2013-03-28 10:35:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53148
;

-- Mar 28, 2013 10:35:54 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=30,Updated=TO_DATE('2013-03-28 10:35:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53149
;

-- Mar 28, 2013 10:36:59 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=10,Updated=TO_DATE('2013-03-28 10:36:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53175
;

-- Mar 28, 2013 10:37:15 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=10,Updated=TO_DATE('2013-03-28 10:37:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53174
;

-- Mar 28, 2013 10:37:27 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=10,Updated=TO_DATE('2013-03-28 10:37:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53171
;

-- Mar 28, 2013 10:40:15 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=10,Updated=TO_DATE('2013-03-28 10:40:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53152
;

-- Mar 28, 2013 10:40:24 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=10,Updated=TO_DATE('2013-03-28 10:40:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53170
;

-- Mar 28, 2013 10:40:32 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=10,Updated=TO_DATE('2013-03-28 10:40:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53141
;

-- Mar 28, 2013 10:40:43 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=10,Updated=TO_DATE('2013-03-28 10:40:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=367
;

-- Mar 28, 2013 10:40:48 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=20,Updated=TO_DATE('2013-03-28 10:40:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=780
;

-- Mar 28, 2013 10:40:57 AM COT
-- IDEMPIERE-808 new record allows user to select System Client
UPDATE AD_Tab SET SeqNo=10,Updated=TO_DATE('2013-03-28 10:40:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53140
;

update ad_column set ad_val_rule_id=129 where ad_element_id=102 and ad_val_rule_id is null and ad_reference_id=19
;

update ad_field set isreadonly='Y' where ad_column_id in (select ad_column_id from ad_column where ad_element_id=102)
;

-- show again client on grid for system+client or all windows
update ad_field set isdisplayedgrid='Y'
where ad_column_id in (select ad_column_id from ad_column where ad_element_id=102) /* ad_client_id */
and ad_field_id < 1000000
and ad_column_id in (select c.ad_column_id from ad_column c join ad_table t on t.ad_table_id=c.ad_table_id where t.accesslevel in ('6','7'))
;

SELECT register_migration_script('201303281029_IDEMPIERE-808.sql') FROM dual
;

