Skip to content

Commit cca7eb7

Browse files
committed
Added an option to by pass the claim review and process claims
1 parent 0932540 commit cca7eb7

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

sql/base/1_schema_tables.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,8 @@ CREATE TABLE [dbo].[tblIMISDefaults](
13651365
[AppVersionFeedbackRenewal] [decimal](3, 1) NULL,
13661366
[AppVersionImis] [decimal](3, 1) NULL,
13671367
[APIKey] [nvarchar](100) NULL,
1368-
[ActivationOption] tinyint NOT NULL
1368+
[ActivationOption] tinyint NOT NULL,
1369+
[BypassReviewClaim] BIT NOT NULL
13691370
CONSTRAINT [PK_tblIMISDefaults] PRIMARY KEY CLUSTERED
13701371
(
13711372
[DefaultID] ASC
@@ -1376,6 +1377,8 @@ GO
13761377
ALTER TABLE [tblIMISDefaults] ADD CONSTRAINT ActivationOptionDefaultConstraint DEFAULT ((2)) FOR [ActivationOption]
13771378
GO
13781379

1380+
ALTER TABLE [tblIMISDefaults] ADD CONSTRAINT DF_BypassReviewClaim DEFAULT ((0)) FOR [BypassReviewClaim]
1381+
GO
13791382

13801383
SET ANSI_NULLS ON
13811384
GO

sql/base/6_bundle_stored_procedures.sql

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14029,7 +14029,31 @@ UPDATECLAIM:
1402914029
--no rejections
1403014030
UPDATE tblClaim SET ClaimStatus = 4, AuditUserIDSubmit = @AuditUser , SubmitStamp = GETDATE() , ClaimCategory = @BaseCategory WHERE ClaimID = @ClaimID
1403114031
END
14032-
SET @RtnStatus = 1
14032+
SET @RtnStatus = 1;
14033+
14034+
--Check the default settings, if the review is bypassed process the claim
14035+
DECLARE @BypassReviewClaim BIT;
14036+
SELECT @BypassReviewClaim = ISNULL(BypassReviewClaim, 0) FROM tblIMISDefaults;
14037+
14038+
IF @BypassReviewClaim = 1
14039+
BEGIN
14040+
DECLARE @xtClaimSubmit dbo.xClaimSubmit;
14041+
INSERT INTO @xtClaimSubmit(ClaimId, RowID)
14042+
SELECT ClaimId, RowID FROM tblClaim WHERE ClaimID = @ClaimID;
14043+
14044+
DECLARE @RC int
14045+
DECLARE @Submitted int
14046+
DECLARE @Processed int
14047+
DECLARE @Valuated int
14048+
DECLARE @Changed int
14049+
DECLARE @Rejected int
14050+
DECLARE @Failed int
14051+
14052+
14053+
EXEC @oReturnValue = uspProcessClaims @AuditUser, @xtClaimSubmit, @Submitted OUTPUT, @Processed OUTPUT, @Valuated OUTPUT, @Changed OUTPUT, @Rejected OUTPUT, @Failed OUTPUT, @oReturnValue OUTPUT
14054+
14055+
END
14056+
1403314057
END
1403414058
ELSE
1403514059
BEGIN
@@ -14043,14 +14067,13 @@ FINISH:
1404314067
END TRY
1404414068

1404514069
BEGIN CATCH
14046-
SELECT 'Unexpected error encountered'
14070+
SELECT ERROR_MESSAGE()
1404714071
SET @oReturnValue = 1
1404814072
RETURN @oReturnValue
1404914073

1405014074
END CATCH
1405114075
END
1405214076
GO
14053-
1405414077
SET ANSI_NULLS ON
1405514078
GO
1405614079
SET QUOTED_IDENTIFIER ON

0 commit comments

Comments
 (0)