UFN_REVENUE_GETBENEFITS_TOITEMLISTXML
Used to convert the results of UFN_REVENUE_GETBENEFITS to xml.
Return
Return Type |
---|
xml |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@REVENUEID | uniqueidentifier | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 4/29/2010 7:21:02 PM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=2.6.1444.0, Culture=neutral, PublicKeyToken=null
Based on: UFN_REVENUE_GETBENEFITS
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_REVENUE_GETBENEFITS_TOITEMLISTXML](
@REVENUEID uniqueidentifier
)
returns xml
as
BEGIN
RETURN (
SELECT [BENEFITID], [DETAILS], [ID], [QUANTITY], [SEQUENCE], [TOTALVALUE], [UNITVALUE]
FROM dbo.[UFN_REVENUE_GETBENEFITS](@REVENUEID)
order by SEQUENCE, ID
for xml raw('ITEM'),type,elements,root('BENEFITS'),BINARY BASE64
)
END