USP_DATAFORMTEMPLATE_REVERSE_BALANCINGENTRY

The save procedure used by the add dataform template "Reverse Balancing Entry Add Form".

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier INOUT The output parameter indicating the ID of the record added.
@REVERSEID uniqueidentifier IN Input parameter indicating the context ID for the record being added.
@DESCRIPTION nvarchar(60) IN Description
@BALANCINGENTRYDEBITFROM xml IN
@BALANCINGENTRYCREDITFROM xml IN
@BALANCINGENTRYDEBITTO xml IN
@BALANCINGENTRYCREDITTO xml IN
@CHANGEAGENTID uniqueidentifier IN Input parameter indicating the ID of the change agent invoking the procedure.

Definition

Copy


CREATE procedure dbo.USP_DATAFORMTEMPLATE_REVERSE_BALANCINGENTRY
(
  @ID uniqueidentifier = null output,
    @REVERSEID uniqueidentifier,
    @DESCRIPTION nvarchar(60) = null,
  @BALANCINGENTRYDEBITFROM xml = null,
  @BALANCINGENTRYCREDITFROM xml = null,
  @BALANCINGENTRYDEBITTO xml = null,
  @BALANCINGENTRYCREDITTO xml = null,
  @CHANGEAGENTID uniqueidentifier = null
)
as

set nocount on;

/* invoke the default implementation */
declare @r int
exec @r = dbo.USP_DATAFORMTEMPLATE_ADD_BALANCINGENTRY 
  @ID = @ID output
  @DESCRIPTION = @DESCRIPTION
  @BALANCINGENTRYDEBITFROM = @BALANCINGENTRYDEBITFROM,
  @BALANCINGENTRYCREDITFROM = @BALANCINGENTRYCREDITFROM,
  @BALANCINGENTRYDEBITTO = @BALANCINGENTRYDEBITTO,
  @BALANCINGENTRYCREDITTO = @BALANCINGENTRYCREDITTO,
  @CHANGEAGENTID = @CHANGEAGENTID

if @@error <> 0 
    begin
        if @r <> 0 return @r
        return 1;
    end

return @r;