USP_SALESORDER_COMPLETEZEROBALANCEORDER

Executes the "Sales Order Complete Order Record Operation" record operation.

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN Input parameter indicating the ID of the record being updated.
@CHANGEAGENTID uniqueidentifier IN Input parameter indicating the ID of the change agent invoking the update.
@STOREMARKETINGINFORMATION bit IN
@CONSTITUENTPOSTCODE nvarchar(12) IN
@CONSTITUENTCOUNTRYID uniqueidentifier IN
@CURRENTAPPUSERID uniqueidentifier IN Input parameter indicating the ID of the current user.
@UPDATEORDERAPPUSER bit IN

Definition

Copy


CREATE procedure dbo.USP_SALESORDER_COMPLETEZEROBALANCEORDER
(
    @ID uniqueidentifier,
    @CHANGEAGENTID uniqueidentifier,
    @STOREMARKETINGINFORMATION bit = 0,
    @CONSTITUENTPOSTCODE nvarchar(12) = null,
    @CONSTITUENTCOUNTRYID uniqueidentifier = null,
    @CURRENTAPPUSERID uniqueidentifier = null,
    @UPDATEORDERAPPUSER bit = 0
)
as begin
    set nocount on;

    exec dbo.USP_SALESORDER_COMPLETE 
        @ID = @ID,
        @CHANGEAGENTID = @CHANGEAGENTID,
        @STOREMARKETINGINFORMATION = @STOREMARKETINGINFORMATION,
        @CONSTITUENTPOSTCODE = @CONSTITUENTPOSTCODE,
        @CONSTITUENTCOUNTRYID = @CONSTITUENTCOUNTRYID,
        @CURRENTAPPUSERID = @CURRENTAPPUSERID,
        @UPDATEORDERAPPUSER = @UPDATEORDERAPPUSER

    return 0;
end