USP_DATAFORMTEMPLATE_VIEW_CONTROLACCOUNT

The load procedure used by the view dataform template "Subsidiary Ledger Account 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.
@CONTROLACCOUNTS xml INOUT CONTROLACCOUNTS
@ISSUMMARYDISTRIBUTIONEDITABLE tinyint INOUT Allow editing of summary distribution

Definition

Copy


CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_CONTROLACCOUNT
(
    @ID uniqueidentifier
    ,@DATALOADED bit = 0 output
  ,@CONTROLACCOUNTS xml = null output
  ,@ISSUMMARYDISTRIBUTIONEDITABLE tinyint = null output
)
as
set nocount on;

    set @DATALOADED = 0;

  select
    @DATALOADED=1
    ,@ISSUMMARYDISTRIBUTIONEDITABLE = ISNULL(FSS.ISSUMMARYDISTRIBUTIONEDITABLE,0)
    ,@CONTROLACCOUNTS = dbo.UFN_CONTROLACCOUNT_TOITEMLISTXML(@ID)
  from dbo.FINANCIALSYSTEM as FS
  left outer join dbo.FINANCIALSYSTEMSETTINGS as FSS
    on FS.ID = FSS.FINANCIALSYSTEMID
  where
    FS.ID = @ID

    return 0;