USP_DATAFORMTEMPLATE_VIEW_RECOGNITIONS
The load procedure used by the view dataform template "Revenue Recognition Credits View Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter used to load the fields defined on the form. |
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@TYPE | nvarchar(20) | INOUT | TYPE |
@AMOUNT | money | INOUT | AMOUNT |
@RECOGNITIONS | xml | INOUT | RECOGNITIONS |
@BASECURRENCYID | uniqueidentifier | INOUT | Base currency ID |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_RECOGNITIONS
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TYPE nvarchar(20) = null output,
@AMOUNT money = null output,
@RECOGNITIONS xml = null output,
@BASECURRENCYID uniqueidentifier = null output
)
as
begin
set nocount on;
select
@DATALOADED = 1,
@TYPE = APPLICATION,
@AMOUNT = AMOUNT,
@RECOGNITIONS = dbo.UFN_REVENUE_GETRECOGNITIONS_2_TOITEMLISTXML(ID),
@BASECURRENCYID = BASECURRENCYID
from
dbo.REVENUESPLIT
where
ID = @ID;
return 0;
end