UFN_MULTICURRENCYCONFIGURATION_CORPORATEEXCHANGERATEEXPIRATIONCODE_GETID

Return

Return Type
tinyint

Parameters

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

    return case @Description
        when 'Never' then 0
        when 'Same day' then 1
        when 'In one day' then 2
        when 'In two days' then 3
        when 'In three days' then 4
        when 'In one week' then 5
        when 'In one month' then 6
        when 'In one quarter' then 7
        when 'In one year' then 8
        else -1
        end 

end