UFN_RECURRINGGIFT_ISSPONSORSHIPRECURRINGADDITIONALGIFT

Returns true if the recurring gift is a sponsorship recurring additional gift.

Return

Return Type
bit

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN

Definition

Copy


create function dbo.UFN_RECURRINGGIFT_ISSPONSORSHIPRECURRINGADDITIONALGIFT(@ID uniqueidentifier)
returns bit 
with execute as caller
as begin
    if (select top 1 1 from dbo.SPONSORSHIPRECURRINGADDITIONALGIFT where SPONSORSHIPRECURRINGADDITIONALGIFT.REVENUEID = @ID) = 1
        return 1;
    return 0;
end