UFN_OPPORTUNITY_STATUSCODE_GETID

Return

Return Type
tinyint

Parameters

Parameter Parameter Type Mode Description
@Description nvarchar(16) IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  12/17/2008 2:37:08 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=1.7.1271.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_OPPORTUNITY_STATUSCODE_GETID(@Description nvarchar(16))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin

    return case @Description
        when 'Unqualified' then 0
        when 'Qualified' then 1
        when 'Response pending' then 2
        when 'Accepted' then 3
        when 'Rejected' then 4
        when 'Canceled' then 5
        else -1
        end 

end