UFN_CATEGORYDEFINITION_CATEGORYCODE_GETID

Return

Return Type
tinyint

Parameters

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

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  4/29/2010 7:19:26 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.6.1444.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_CATEGORYDEFINITION_CATEGORYCODE_GETID(@Description nvarchar(9))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin

    return case @Description
        when 'Asset' then 1
        when 'Liability' then 2
        when 'Net asset' then 3
        when 'Revenue' then 4
        when 'Expense' then 5
        else -1
        end 

end