USP_DATAFORMTEMPLATE_LOAD_REVENUEBATCHCONSTITUENTNOTCOMMITTED
The load procedure used by the view dataform template "Revenue Batch Constituent Not Committed 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. |
@ISORGANIZATION | bit | INOUT | Is organization |
@ISGROUP | bit | INOUT | Is group |
@ISHOUSEHOLD | bit | INOUT | Is household |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_LOAD_REVENUEBATCHCONSTITUENTNOTCOMMITTED
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@ISORGANIZATION bit = null output,
@ISGROUP bit = null output,
@ISHOUSEHOLD bit = null output
)
as
set nocount on
select
@ISORGANIZATION = ISORGANIZATION,
@ISGROUP = ISGROUP,
@ISHOUSEHOLD = case when ISGROUP = 1 and GROUPTYPECODE = 0 then 1 else 0 end,
@DATALOADED = 1
from dbo.BATCHREVENUECONSTITUENT
where ID = @ID