UFN_REVENUE_PAYMENTMETHODCODE_GETDESCRIPTION

Return

Return Type
nvarchar(13)

Parameters

Parameter Parameter Type Mode Description
@ID tinyint IN

Definition

Copy


        /*
Generated by Blackbaud AppFx Platform
Date:  12/17/2008 2:27:10 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=1.7.1271.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_REVENUE_PAYMENTMETHODCODE_GETDESCRIPTION(@ID tinyint)
RETURNS nvarchar(13) WITH EXECUTE AS CALLER
AS
begin

    return case @ID
        when 0 then 'Cash'
        when 1 then 'Check'
        when 2 then 'Credit card'
        when 3 then 'Direct debit'
        when 4 then 'Stock'
        when 5 then 'Property'
        when 6 then 'Gift-in-kind'
        when 7 then 'Sold stock'
        when 8 then 'Sold property'
        when 9 then 'None'
        when 10 then 'Other'    
    end

end