USP_DATAFORMTEMPLATE_EDITSAVE_REVENUETRANSACTIONCHANGECONSTITUENT_3

The save procedure used by the edit dataform template "Revenue Transaction Change Constituent Edit Form 2".

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN The input ID parameter indicating the ID of the record being edited.
@CHANGEAGENTID uniqueidentifier IN Input parameter indicating the ID of the change agent invoking the procedure.
@NEWCONSTITUENTID uniqueidentifier IN New constituent
@CONSTITUENTACCOUNTID uniqueidentifier IN Account
@RESETRECOGNITIONCREDITS bit IN Recognition credit
@RESETSOLICITORS bit IN Solicitors
@CURRENTAPPUSERID uniqueidentifier IN Input parameter indicating the ID of the current user.
@RESETMATCHINGGIFTCLAIMS bit IN Matching gift claims

Definition

Copy


CREATE procedure USP_DATAFORMTEMPLATE_EDITSAVE_REVENUETRANSACTIONCHANGECONSTITUENT_3
(
    @ID uniqueidentifier,
    @CHANGEAGENTID uniqueidentifier = null,
    @NEWCONSTITUENTID uniqueidentifier,
    @CONSTITUENTACCOUNTID uniqueidentifier,
    @RESETRECOGNITIONCREDITS bit,
    @RESETSOLICITORS bit,
    @CURRENTAPPUSERID uniqueidentifier = null,
    @RESETMATCHINGGIFTCLAIMS bit
)

as
  set nocount on;

    declare @SEPAMANDATEID uniqueidentifier;

  exec dbo.USP_DATAFORMTEMPLATE_EDITLOAD_REVENUETRANSACTIONCHANGECONSTITUENT_2
        @ID = @ID,
        @SEPAMANDATEID = @SEPAMANDATEID output

  exec dbo.USP_DATAFORMTEMPLATE_EDITSAVE_REVENUETRANSACTIONCHANGECONSTITUENT_4
        @ID,
        @CHANGEAGENTID,
        @NEWCONSTITUENTID,
        @CONSTITUENTACCOUNTID,
        @RESETRECOGNITIONCREDITS,
        @RESETSOLICITORS,
        @CURRENTAPPUSERID,
        @RESETMATCHINGGIFTCLAIMS,
        @SEPAMANDATEID

  return 0;