UFN_SALESDEPOSITTEMPLATE_CURRENCY_FROMITEMLISTXML
Return
Return Type |
---|
table |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ITEMLISTXML | xml | IN |
Definition
Copy
create function dbo.UFN_SALESDEPOSITTEMPLATE_CURRENCY_FROMITEMLISTXML(
@ITEMLISTXML xml
)
RETURNS TABLE AS
RETURN (
select
T.c.value('(ID)[1]', 'uniqueidentifier') as 'ID',
T.c.value('(CURRENCYID)[1]', 'uniqueidentifier') as 'CURRENCYID',
T.c.value('(CURRENCY)[1]', 'nvarchar(100)') as 'CURRENCY',
T.c.value('(INCLUDE)[1]', 'bit') as 'INCLUDE'
from @ITEMLISTXML.nodes('/CURRENCY/ITEM') T(c)
)