UFN_BATCHSPONSORSHIP_PAYMENTMETHODCODE_GETDESCRIPTION

Return

Return Type
nvarchar(47)

Parameters

Parameter Parameter Type Mode Description
@ID tinyint IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  11/11/2014 4:27:25 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=4.0.2.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_BATCHSPONSORSHIP_PAYMENTMETHODCODE_GETDESCRIPTION(@ID tinyint)
RETURNS nvarchar(47) 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 9 then 'None'
        when 10 then 'Other'
        when 11 then 'Standing order'
        when 98 then 'Credit card - store last 4 digits for reference'    
    end

end