UFN_BANKACCOUNTDEPOSIT_DEFAULTPAYMENTMETHODCODE_GETID
Return
| Return Type | 
|---|
| tinyint | 
Parameters
| Parameter | Parameter Type | Mode | Description | 
|---|---|---|---|
| @Description | nvarchar(11) | IN | 
Definition
 Copy 
                                    /*
Generated by Blackbaud AppFx Platform
Date:  7/16/2009 11:18:02 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.1.30.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_BANKACCOUNTDEPOSIT_DEFAULTPAYMENTMETHODCODE_GETID(@Description nvarchar(11))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin
    return case @Description
        when 'None' then 0
        when 'Check' then 1
        when 'Cash' then 2
        when 'Credit card' then 8
        when 'Other' then 32
        else -1
        end 
end