UFN_CONSTITID_MAPFROM_REVENUEBATCHCONSTITUENTID

Return

Return Type
uniqueidentifier

Parameters

Parameter Parameter Type Mode Description
@REVENUEBATCHCONSTITUENTID uniqueidentifier IN

Definition

Copy


create function dbo.UFN_CONSTITID_MAPFROM_REVENUEBATCHCONSTITUENTID(@REVENUEBATCHCONSTITUENTID uniqueidentifier)
returns uniqueidentifier
as begin

    if exists(select 1 from dbo.CONSTITUENT where ID = @REVENUEBATCHCONSTITUENTID)
        return @REVENUEBATCHCONSTITUENTID;

    return null;

end