UFN_REVENUE_GETCREDITGLDISTRIBUTION_TOITEMLISTXML

Used to convert the results of UFN_REVENUE_GETCREDITGLDISTRIBUTION to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@REVENUEID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  1/27/2010 7:18:26 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.5.465.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_REVENUE_GETCREDITGLDISTRIBUTION
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_REVENUE_GETCREDITGLDISTRIBUTION_TOITEMLISTXML](
@REVENUEID uniqueidentifier
    )
returns xml
as
BEGIN

RETURN (
SELECT [ACCOUNT], [AMOUNT], [DEBITCREDIT], [ID], [REFERENCE], [TRANSACTIONTYPECODE]
 FROM dbo.[UFN_REVENUE_GETCREDITGLDISTRIBUTION](@REVENUEID)
 for xml raw('ITEM'),type,elements,root('GLDISTRIBUTION'),BINARY BASE64

)

END