core-jgi/migration/351a-352a/210_FixDRP.sql

206 lines
8.1 KiB
MySQL
Raw Normal View History

-- Jun 22, 2008 5:51:42 PM CDT
-- New Event Model Validator
UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-06-22 17:51:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53072
;
-- Jun 22, 2008 6:01:35 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=53513
;
-- Jun 22, 2008 6:01:35 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=53512
;
-- Jun 22, 2008 6:01:45 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2008-06-22 18:01:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53513
;
-- Jun 22, 2008 6:01:47 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-06-22 18:01:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53512
;
-- Jun 22, 2008 6:02:06 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET DisplayLength=30,Updated=TO_DATE('2008-06-22 18:02:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54392
;
-- Jun 22, 2008 6:02:35 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2008-06-22 18:02:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55434
;
-- Jun 22, 2008 6:02:49 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2008-06-22 18:02:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53522
;
-- Jun 22, 2008 6:05:22 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET DisplayLogic='@Order_Policy@=''POQ''',Updated=TO_DATE('2008-06-22 18:05:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53526
;
-- Jun 22, 2008 6:08:03 PM CDT
-- New Event Model Validator
UPDATE AD_Tab SET AD_Column_ID=53389,Updated=TO_DATE('2008-06-22 18:08:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53030
;
-- Jun 22, 2008 6:09:53 PM CDT
-- New Event Model Validator
UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-06-22 18:09:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53030
;
-- Jun 22, 2008 6:09:57 PM CDT
-- New Event Model Validator
UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-06-22 18:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53033
;
-- Jun 22, 2008 6:10:01 PM CDT
-- New Event Model Validator
UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-06-22 18:10:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53031
;
-- Jun 22, 2008 6:10:04 PM CDT
-- New Event Model Validator
UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-06-22 18:10:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53034
;
-- Jun 22, 2008 6:12:07 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=53533
;
-- Jun 22, 2008 6:12:07 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=53525
;
-- Jun 22, 2008 6:12:07 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=53526
;
-- Jun 22, 2008 6:12:07 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=53527
;
-- Jun 22, 2008 6:12:07 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=53528
;
-- Jun 22, 2008 6:12:07 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=53529
;
-- Jun 22, 2008 6:12:07 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=53530
;
-- Jun 22, 2008 6:12:07 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=53531
;
-- Jun 22, 2008 6:12:07 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=53532
;
-- Jun 22, 2008 6:12:07 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=54420
;
-- Jun 22, 2008 6:12:20 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-06-22 18:12:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53533
;
-- Jun 22, 2008 6:13:09 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=53533
;
-- Jun 22, 2008 6:13:09 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=53523
;
-- Jun 22, 2008 6:13:09 PM CDT
-- New Event Model Validator
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=53524
;
-- Jun 22, 2008 6:14:30 PM CDT
-- New Event Model Validator
UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_DATE('2008-06-22 18:14:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53376
;
-- Jun 22, 2008 6:14:51 PM CDT
-- New Event Model Validator
UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_DATE('2008-06-22 18:14:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53390
;
-- Jun 22, 2008 6:19:12 PM CDT
-- New Event Model Validator
UPDATE AD_Column SET IsUpdateable='N',Updated=TO_DATE('2008-06-22 18:19:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53376
;
-- Jun 22, 2008 6:45:01 PM CDT
-- New Event Model Validator
UPDATE AD_Process_Para SET IsMandatory='Y',Updated=TO_DATE('2008-06-22 18:45:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53035
;
-- Jun 22, 2008 6:46:14 PM CDT
-- New Event Model Validator
UPDATE AD_Process_Para SET SeqNo=195,Updated=TO_DATE('2008-06-22 18:46:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53052
;
-- Jun 22, 2008 6:46:40 PM CDT
-- New Event Model Validator
UPDATE AD_Process_Para SET DefaultValue='@Order_Policy@=''POQ''',Updated=TO_DATE('2008-06-22 18:46:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53052
;
-- Jun 23, 2008 12:30:57 AM CDT
-- Completed the DRP
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgTip,MsgType,Updated,UpdatedBy,Value) VALUES (0,53039,0,TO_DATE('2008-06-23 00:30:56','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Do not exist default Locator for Warehouse','Do not exist default Locator for Warehouse','I',TO_DATE('2008-06-23 00:30:56','YYYY-MM-DD HH24:MI:SS'),0,'DRP-001')
;
-- Jun 23, 2008 12:30:57 AM CDT
-- Completed the DRP
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53039 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
;
-- Jun 23, 2008 12:31:53 AM CDT
-- Completed the DRP
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgTip,MsgType,Updated,UpdatedBy,Value) VALUES (0,53040,0,TO_DATE('2008-06-23 00:31:52','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Do not exist Shipper for Create Distribution Order','Do not exist Shipper for Create Distribution Order','I',TO_DATE('2008-06-23 00:31:52','YYYY-MM-DD HH24:MI:SS'),0,'DRP-030')
;
-- Jun 23, 2008 12:31:53 AM CDT
-- Completed the DRP
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53040 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
;
-- Jun 23, 2008 12:34:18 AM CDT
-- Completed the DRP
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_DATE('2008-06-23 00:34:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54298
;
-- Jun 23, 2008 12:34:21 AM CDT
-- Completed the DRP
ALTER TABLE DD_NetworkDistributionLine MODIFY M_Shipper_ID NUMBER(10) DEFAULT NULL
;
-- Jun 23, 2008 12:35:46 AM CDT
-- Completed the DRP
ALTER TABLE DD_NetworkDistributionLine MODIFY M_Shipper_ID NOT NULL
;