UFN_ORDER_GETMANUALDISCOUNTS_TOITEMLISTXML

Used to convert the results of UFN_ORDER_GETMANUALDISCOUNTS to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@SALESORDERID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  1/27/2010 6:54:33 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.5.465.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_ORDER_GETMANUALDISCOUNTS
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_ORDER_GETMANUALDISCOUNTS_TOITEMLISTXML](
@SALESORDERID uniqueidentifier
    )
returns xml
as
BEGIN

RETURN (
SELECT [DESCRIPTION], [ID], [NAME], [PROMOTIONALCODE]
 FROM dbo.[UFN_ORDER_GETMANUALDISCOUNTS](@SALESORDERID)
 for xml raw('ITEM'),type,elements,root('MANUALDISCOUNTS'),BINARY BASE64

)

END