UFN_PDACCOUNTCODEMAP_GETPAYOUTDESCRIPTION

Returns the description of the account code mapping with the given ID from the PLANNEDGIFTPAYOUTGLDISTRIBUTION table.

Return

Return Type
nvarchar(30)

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN

Definition

Copy


create function dbo.UFN_PDACCOUNTCODEMAP_GETPAYOUTDESCRIPTION(@ID uniqueidentifier)
returns nvarchar(30)
with execute as caller
as begin
    declare @S nvarchar(30)
    select @S = T2.DESCRIPTION
    from dbo.PLANNEDGIFTPAYOUTGLDISTRIBUTION T1
        inner join dbo.GLPAYMENTMETHODREVENUETYPEMAPPING T2 
        on T1.GLPAYMENTMETHODREVENUETYPEMAPPINGID = T2.ID
    where
        T1.ID = @ID
    return @S
end