USP_DATAFORMTEMPLATE_ADD_DISCOUNTPROGRAM
The save procedure used by the add dataform template "Discount Program Add Data Form".
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | INOUT | The output parameter indicating the ID of the record added. |
@DISCOUNTID | uniqueidentifier | IN | Input parameter indicating the context ID for the record being added. |
@CHANGEAGENTID | uniqueidentifier | IN | Input parameter indicating the ID of the change agent invoking the procedure. |
@PROGRAMID | uniqueidentifier | IN | Program |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_ADD_DISCOUNTPROGRAM
(
@ID uniqueidentifier = null output,
@DISCOUNTID uniqueidentifier,
@CHANGEAGENTID uniqueidentifier = null,
@PROGRAMID uniqueidentifier
)
as
set nocount on;
if @ID is null
set @ID = newid()
exec dbo.USP_PROGRAMDISCOUNT_ADD @ID, @PROGRAMID, @CHANGEAGENTID, @DISCOUNTID;
return 0