UFN_REVENUELIFECYCLEHISTORY_DONORSTATECODE_GETID
Return
Return Type |
---|
tinyint |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@Description | nvarchar(21) | 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_REVENUELIFECYCLEHISTORY_DONORSTATECODE_GETID(@Description nvarchar(21))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin
return case @Description
when 'New' then 0
when 'Recapture' then 1
when 'Upgrade' then 2
when 'Same' then 3
when 'Downgrade' then 4
when 'Lapsed new donor' then 5
when 'Lapsed repeat donor' then 6
when 'Lapsed multiple years' then 7
when 'Non-donor' then 8
else -1
end
end