USP_REVENUESPLITBUSINESSUNITOVERRIDECODE_GETLIST

Returns the set of table entries for the "Revenue Split Business Unit Override Reason" code table.

Parameters

Parameter Parameter Type Mode Description
@INCLUDEINACTIVE bit IN Input parameter indicating whether or not to include inactive code table entries in the list.
@APPUSERID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  9/30/2015 1:01:06 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=4.0.153.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE PROCEDURE dbo.USP_REVENUESPLITBUSINESSUNITOVERRIDECODE_GETLIST(@INCLUDEINACTIVE bit, @APPUSERID uniqueidentifier = null)
AS

    if dbo.UFN_GETLISTSORTMETHOD('REVENUESPLITBUSINESSUNITOVERRIDECODE') = 0
        begin
            if @INCLUDEINACTIVE = 0
                select ID, DESCRIPTION, [SEQUENCE], ACTIVE from dbo.REVENUESPLITBUSINESSUNITOVERRIDECODE where ACTIVE = 1  order by DESCRIPTION
            else
                select ID, DESCRIPTION, [SEQUENCE], ACTIVE from dbo.REVENUESPLITBUSINESSUNITOVERRIDECODE  order by DESCRIPTION    
            end
    else
        begin
            if @INCLUDEINACTIVE = 0
                select ID, DESCRIPTION, [SEQUENCE], ACTIVE from dbo.REVENUESPLITBUSINESSUNITOVERRIDECODE where ACTIVE = 1  order by SEQUENCE
            else
                select ID, DESCRIPTION, [SEQUENCE], ACTIVE from dbo.REVENUESPLITBUSINESSUNITOVERRIDECODE  order by SEQUENCE
            end