USP_DATAFORMTEMPLATE_VIEW_MATCHINGGIFTPLEDGELIST
The load procedure used by the view dataform template "Matching Gift Claim List 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. |
@MATCHINGORGANIZATION | nvarchar(255) | INOUT | Matching organization |
@AMOUNT | money | INOUT | Amount |
@BALANCE | money | INOUT | Balance |
@DATE | datetime | INOUT | Date |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_MATCHINGGIFTPLEDGELIST
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@MATCHINGORGANIZATION nvarchar(255) = null output,
@AMOUNT money = null output,
@BALANCE money = null output,
@DATE datetime = null output
)
as
set nocount on;
set @DATALOADED = 0;
select
@DATALOADED = 1,
@DATE = REVENUE.DATE,
@MATCHINGORGANIZATION = CONSTITUENT.NAME,
@AMOUNT = REVENUE.AMOUNT,
@BALANCE = dbo.UFN_PLEDGE_GETBALANCE(REVENUE.ID)
from dbo.REVENUE
inner join dbo.CONSTITUENT on CONSTITUENT.ID = REVENUE.CONSTITUENTID
where REVENUE.ID = @ID
return 0;