USP_DATAFORMTEMPLATE_ADDLOAD_JOURNALENTRIES
The load procedure used by the edit dataform template "Financial Transaction Journal Entry Add Data Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@CONTEXTID | uniqueidentifier | IN | Input parameter indicating the context ID for the record being added. |
@BATCHJOURNALENTRIES | xml | INOUT | Journal entries |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_ADDLOAD_JOURNALENTRIES(
@CONTEXTID uniqueidentifier,
@BATCHJOURNALENTRIES xml = null output
)
as
set nocount on;
-- be sure to set these, in case the select returns no rows
-- populate the output parameters, which correspond to fields on the form. Note that
-- we set @DATALOADED = 1 to indicate that the load was successful. Otherwise, the system
-- will display a "no data loaded" message. Also note that we fetch the TSLONG so that concurrency
-- can be considered.
select
@BATCHJOURNALENTRIES = dbo.UFN_BATCHJOURNALENTRIES_TOITEMLISTXML(@CONTEXTID, 1)
from
dbo.FINANCIALTRANSACTIONLINEITEM LI
where LI.ID = @CONTEXTID;
return 0;