USP_DATAFORMTEMPLATE_EDITLOAD_PLEDGEGIFTFEEOVERRIDE
The load procedure used by the edit dataform template "Pledge Gift Fee Override Edit 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. |
@USECUSTOM | bit | INOUT | Use custom gift fees |
@CUSTOMFEE | numeric(5, 1) | INOUT | Gift fee % |
@WAIVEFEE | bit | INOUT | Waive gift fees |
@REASONCODEID | uniqueidentifier | INOUT | Reason code |
@COMMENTS | nvarchar(255) | INOUT | Details |
@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. |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_PLEDGEGIFTFEEOVERRIDE
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@USECUSTOM bit = null output,
@CUSTOMFEE numeric(5, 1) = null output,
@WAIVEFEE bit = null output,
@REASONCODEID uniqueidentifier = null output,
@COMMENTS nvarchar(255) = null output,
@TSLONG bigint = 0 output
)
as
begin
set nocount on;
--Set default values if row does not exist,check if the piece of revenue exists.
select @DATALOADED = 1, @TSLONG = 0 from dbo.FINANCIALTRANSACTION where @ID = ID;
select
@USECUSTOM = USECUSTOM,
@CUSTOMFEE = CUSTOMFEE,
@WAIVEFEE = WAIVEFEE,
@REASONCODEID = REASONCODEID,
@COMMENTS = COMMENTS,
@TSLONG = TSLONG
from
dbo.PLEDGEGIFTFEEOVERRIDE
where
ID = @ID;
return 0;
end