USP_DATAFORMTEMPLATE_VIEW_GLDISTRIBUTIONS
The load procedure used by the view dataform template "Revenue GL Distributions 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 |
@GLDISTRIBUTION | xml | INOUT | Revenue GL distribution |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_GLDISTRIBUTIONS
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TYPE nvarchar(20) = null output,
@AMOUNT money = null output,
@GLDISTRIBUTION XML= null output
)
as
begin
set nocount on;
select @DATALOADED = 1,
@TYPE = TRANSACTIONTYPE,
@AMOUNT = AMOUNT,
@GLDISTRIBUTION = dbo.UFN_REVENUE_GETGLDISTRIBUTION_TOITEMLISTXML(ID)
from dbo.REVENUE
where ID = @ID
return 0;
end