USP_DATAFORMTEMPLATE_PRELOAD_ADD_ITINERARYITEMCUSTOMITEM

The load procedure used by the edit dataform template "Itinerary Item Custom Item Add Data Form"

Parameters

Parameter Parameter Type Mode Description
@ITINERARYID uniqueidentifier IN Input parameter indicating the context ID for the record being added.
@ITINERARYCAPACITY int INOUT Itinerary capacity

Definition

Copy

                CREATE procedure dbo.USP_DATAFORMTEMPLATE_PRELOAD_ADD_ITINERARYITEMCUSTOMITEM
                (
                    @ITINERARYID uniqueidentifier,
                    @ITINERARYCAPACITY int = null output
                )
                as
                    set nocount on;

                    select @ITINERARYCAPACITY = sum(ITINERARYATTENDEE.QUANTITY)
                    from dbo.ITINERARYATTENDEE
                    where ITINERARYATTENDEE.ITINERARYID = @ITINERARYID

                    return 0;