UFN_PDACCOUNTSTRUCTURE_ELEMENTDEFINITIONCODE_GETID
Return
Return Type |
---|
tinyint |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@Description | nvarchar(12) | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 11/30/2010 11:16:30 PM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=2.8.2022.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_PDACCOUNTSTRUCTURE_ELEMENTDEFINITIONCODE_GETID(@Description nvarchar(12))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin
return case @Description
when 'Account code' then 1
when 'Fund' then 2
when 'User-defined' then 3
when 'Endowment' then 4
when 'Program' then 5
when 'Event' then 6
when 'Project' then 7
when 'Grant' then 8
when 'Membership' then 9
else -1
end
end