UFN_RECURRINGGIFTAMENDMENT_FREQUENCYCODE_GETID
Return
Return Type |
---|
tinyint |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@Description | nvarchar(14) | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 4/21/2018 10:20:46 AM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=4.0.177.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_RECURRINGGIFTAMENDMENT_FREQUENCYCODE_GETID(@Description nvarchar(14))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin
return case @Description
when 'Annually' then 0
when 'Semi-annually' then 1
when 'Quarterly' then 2
when 'Monthly' then 3
when 'Bimonthly' then 6
when 'Semi-Monthly' then 7
when 'Biweekly' then 8
when 'Weekly' then 9
when 'Every 4 weeks' then 10
when 'Not applicable' then 99
else -1
end
end