USP_DATAFORMTEMPLATE_VIEW_CONSTITUENT_REVENUEHISTORY
The load procedure used by the view dataform template "Constituent Revenue History View"
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. |
@TOTALNUMBERTRANSACTIONS | int | INOUT | Total transactions |
@TOTALREVENUE | money | INOUT | Total revenue |
@TOTALREVENUEWITHGIFTAID | money | INOUT | Total revenue with Gift Aid |
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@ISORGANIZATION | bit | INOUT | Constituent is organization |
@TOTALPAID | money | INOUT | Total received |
@TOTALPAYMENTS | int | INOUT | Total payments |
@TOTALEXPECTED | money | INOUT | Total expected |
@TOTALOPENCOMMITMENTS | int | INOUT | Total open commitments |
@APPBASECURRENCY | uniqueidentifier | INOUT | App User Currency |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_CONSTITUENT_REVENUEHISTORY
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TOTALNUMBERTRANSACTIONS int = null output,
@TOTALREVENUE money = null output,
@TOTALREVENUEWITHGIFTAID money = null output,
@CURRENTAPPUSERID uniqueidentifier = null,
@ISORGANIZATION bit = null output,
@TOTALPAID money = null output,
@TOTALPAYMENTS int = null output,
@TOTALEXPECTED money = null output,
@TOTALOPENCOMMITMENTS int = null output,
@APPBASECURRENCY uniqueidentifier = null output
)
as
set nocount on;
exec dbo.USP_CONSTITUENT_REVENUEHISTORY_SUMMARY
@ID,
@CURRENTAPPUSERID,
'a3e1097e-84bf-4a88-9bd4-a596fe3349f4',
0,
@DATALOADED output,
@TOTALREVENUE output,
@TOTALNUMBERTRANSACTIONS output,
@TOTALREVENUEWITHGIFTAID output,
@TOTALPAID output,
@TOTALPAYMENTS output,
@TOTALEXPECTED output,
@TOTALOPENCOMMITMENTS output,
@ISORGANIZATION output,
@APPBASECURRENCY output
return 0;