UFN_PLANNEDGIFTVEHICLEOPTIONS_VEHICLECODE_GETID

Return

Return Type
tinyint

Parameters

Parameter Parameter Type Mode Description
@Description nvarchar(34) 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_PLANNEDGIFTVEHICLEOPTIONS_VEHICLECODE_GETID(@Description nvarchar(34))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin

    return case @Description
        when 'Charitable gift annuity' then 0
        when 'Charitable remainder unitrust' then 1
        when 'Charitable remainder annuity trust' then 2
        when 'Charitable lead unitrust' then 3
        when 'Charitable lead annuity trust' then 4
        when 'Pooled income fund' then 5
        when 'Life insurance' then 6
        when 'Retained life estate' then 7
        when 'Bargain sale' then 8
        when 'Outright gift' then 9
        when 'Bequest' then 10
        when 'Retirement plan assets' then 11
        when 'Testamentary charitable trust' then 12
        when 'Living trust' then 14
        when 'Other' then 13
        else -1
        end 

end