UFN_MERCHANDISE_GETPRODUCTLABELSTOPRINT_TOITEMLISTXML
Used to convert the results of UFN_MERCHANDISE_GETPRODUCTLABELSTOPRINT to xml.
Return
Return Type |
---|
xml |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@MERCHANDISEPRODUCTID | uniqueidentifier | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 11/30/2010 11:30:25 PM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=2.8.2022.0, Culture=neutral, PublicKeyToken=null
Based on: UFN_MERCHANDISE_GETPRODUCTLABELSTOPRINT
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_MERCHANDISE_GETPRODUCTLABELSTOPRINT_TOITEMLISTXML](
@MERCHANDISEPRODUCTID uniqueidentifier
)
returns xml
as
BEGIN
RETURN (
SELECT [BARCODE], [ID], [ITEMDETAILS], [ONHANDQUANTITY], [QUANTITYTOPRINT], [SALEPRICE]
FROM dbo.[UFN_MERCHANDISE_GETPRODUCTLABELSTOPRINT](@MERCHANDISEPRODUCTID)
order by ITEMDETAILS
for xml raw('ITEM'),type,elements,root('PRODUCTLABELS'),BINARY BASE64
)
END