USP_DATAFORMTEMPLATE_EDITLOAD_REVENUEDETAIL_2
The load procedure used by the edit dataform template "Revenue Detail Edit Form 2"
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. |
| @CONSTITUENTID | uniqueidentifier | INOUT | Constituent |
| @TYPECODE | tinyint | INOUT | |
| @TYPE | nvarchar(50) | INOUT | |
| @MAXSOFTCREDITAMOUNT | money | INOUT | Max soft credit amount |
| @MAXSOLICITORAMOUNT | money | INOUT | Max solicitor amount |
| @AMOUNT | money | INOUT | Revenue amount |
| @TRANSACTIONAMOUNT | money | INOUT | Transaction Amount |
| @RECEIPTAMOUNT | money | INOUT | Receipt amount |
| @SPLITS | xml | INOUT | Designations |
| @SOURCECODE | nvarchar(50) | INOUT | Source code |
| @APPEALID | uniqueidentifier | INOUT | Appeal |
| @BENEFITS | xml | INOUT | Benefits |
| @BENEFITSWAIVED | bit | INOUT | Benefits waived |
| @MAILINGID | uniqueidentifier | INOUT | Mailing |
| @CHANNELCODEID | uniqueidentifier | INOUT | Channel |
| @DONOTACKNOWLEDGE | bit | INOUT | Do not acknowledge |
| @TSLONG | bigint | INOUT | Output parameter indicating the TSLONG value of the record being edited. This is used to manage multi-user concurrency issues when multiple users access the same record. |
| @SINGLEDESIGNATIONID | uniqueidentifier | INOUT | Designation |
| @HASFINDERNUMBER | bit | INOUT | Has finder number |
| @CATEGORYCODEID | uniqueidentifier | INOUT | Revenue category |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_REVENUEDETAIL_2
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@CONSTITUENTID uniqueidentifier = null output,
@TYPECODE tinyint = null output,
@TYPE nvarchar(50) = null output,
@MAXSOFTCREDITAMOUNT money = null output,
@MAXSOLICITORAMOUNT money = null output,
@AMOUNT money = null output,
@TRANSACTIONAMOUNT money = null output,
@RECEIPTAMOUNT money = null output,
@SPLITS xml = null output,
@SOURCECODE nvarchar(50) = null output,
@APPEALID uniqueidentifier = null output,
@BENEFITS xml = null output,
@BENEFITSWAIVED bit = null output,
@MAILINGID uniqueidentifier = null output,
@CHANNELCODEID uniqueidentifier = null output,
@DONOTACKNOWLEDGE bit = null output,
@TSLONG bigint = 0 output,
@SINGLEDESIGNATIONID uniqueidentifier = null output,
@HASFINDERNUMBER bit = null output,
@CATEGORYCODEID uniqueidentifier = null output
)
as
set nocount on;
exec dbo.USP_REVENUEDETAIL_LOAD @ID, @DATALOADED output, @CONSTITUENTID output,
@TYPECODE output, @TYPE output, @MAXSOFTCREDITAMOUNT output, @MAXSOLICITORAMOUNT output, @AMOUNT output,
@TRANSACTIONAMOUNT output, @RECEIPTAMOUNT output, @SPLITS output, @SOURCECODE output, @APPEALID output,
@BENEFITS output, @BENEFITSWAIVED output, @MAILINGID output, @CHANNELCODEID output, @DONOTACKNOWLEDGE output,
@TSLONG output, @CATEGORYCODEID output
if exists(select ID from dbo.REVENUE where ID=@ID and FINDERNUMBER<>0)
begin
set @HASFINDERNUMBER = 1
end
else
begin
set @HASFINDERNUMBER = 0
end
return 0;