UFN_INCENTIVELEVEL_GETBENEFITS_TOITEMLISTXML

Get associated benefits of a incentive level into XML

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@INCENTIVELEVELID uniqueidentifier IN

Definition

Copy


create function dbo.UFN_INCENTIVELEVEL_GETBENEFITS_TOITEMLISTXML(
 @INCENTIVELEVELID uniqueidentifier
 )
returns xml
as
BEGIN

RETURN (
SELECT [BENEFITID], [DETAILS], [ID], [QUANTITY], [TOTALVALUE], [UNITVALUE], DEDUCTIBLEUNITVALUE, DEDUCTIBLEVALUE
 FROM dbo.UFN_INCENTIVELEVEL_GETBENEFITS(@INCENTIVELEVELID)
 for xml raw('ITEM'),type,elements,root('BENEFITS'),BINARY BASE64

)

END