-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
How to Correct Order With Wrong Gateway Added #504
1. Script changes for new operation context
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
IF NOT EXISTS(SELECT 1 FROM [dbo].[SYSTM000Ref_Options] WHERE [SysOptionName] = 'RevertGateway' AND [SysLookupCode] = 'OperationType' and [StatusId] = 1) | ||
BEGIN | ||
INSERT INTO [dbo].[SYSTM000Ref_Options] | ||
([SysLookupId] | ||
,[SysLookupCode] | ||
,[SysOptionName] | ||
,[SysSortOrder] | ||
,[SysDefault] | ||
,[IsSysAdmin] | ||
,[StatusId] | ||
,[DateEntered] | ||
,[EnteredBy] | ||
,[DateChanged] | ||
,[ChangedBy]) | ||
VALUES | ||
(29 | ||
,'OperationType' | ||
,'RevertGateway' | ||
,1 | ||
,0 | ||
,0 | ||
,1 | ||
,GETUTCDATE() | ||
,NULL | ||
,NULL | ||
,NULL) | ||
END | ||
|
||
DECLARE @sysRefId INT | ||
SELECT @sysRefId = ID FROM [dbo].[SYSTM000Ref_Options] WHERE [SysOptionName] = 'RevertGateway' AND [SysLookupCode] = 'OperationType' | ||
|
||
IF NOT EXISTS(SELECT 1 FROM [dbo].[SYSMS010Ref_MessageTypes] WHERE sysmsgtypetitle = 'Revert Gateway' AND [SysRefId] = @sysRefId) | ||
BEGIN | ||
INSERT INTO [dbo].[SYSMS010Ref_MessageTypes] | ||
([LangCode] | ||
,[SysRefId] | ||
,[SysMsgtypeTitle] | ||
,[SysMsgTypeDescription] | ||
,[SysMsgTypeHeaderIcon] | ||
,[SysMsgTypeIcon] | ||
,[StatusId] | ||
,[DateEntered] | ||
,[EnteredBy] | ||
,[DateChanged] | ||
,[ChangedBy]) | ||
VALUES | ||
('EN' | ||
,@sysRefId | ||
,'Revert Gateway' | ||
,NULL | ||
,NULL | ||
,NULL | ||
,1 | ||
,GETUTCDATE() | ||
,NULL | ||
,NULL | ||
,NULL) | ||
END |