Stored Procedures [dbo].[MssWebCreateOrderAdditionalCharge]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@chargeAmountmoney8
@chargeTypeIdint4
@orderIdint4
@jobIdint4
@billToIdint4
@poNovarchar(20)20
@authorizedByvarchar(50)50
@authorizedViaIdint4
@billTransportationvarchar1
Permissions
TypeActionOwning Principal
GrantExecuteMssExec
SQL Script
CREATE PROCEDURE [dbo].[MssWebCreateOrderAdditionalCharge]
    @chargeAmount MONEY,
    @chargeTypeId INT,
    @orderId INT,
    @jobId INT,
    @billToId INT,
    @poNo VARCHAR(20),
    @authorizedBy VARCHAR(50),
    @authorizedViaId INT,
    @billTransportation varchar(1)
AS
BEGIN
    DECLARE @id int ;
    INSERT INTO AddlCharges
    (
        ChargeAmount,
        ChargeTypeID,
        OrdPriKey,
        JobsID,
        BillToID,
        PoNo,
        AuthorizedBy,
        AuthViaID,
        BillTrans
    )
    select
        ChargeAmount=@chargeAmount,
        ChargeTypeID=@chargeTypeId,
        OrdPriKey=@orderId,
        JobsID=@jobId,
        BillToID=@billToId,
        PoNo=@poNo,
        AuthorizedBy=@authorizedBy,
        AuthViaID=@authorizedViaId,
        BillTrans=@billTransportation
    Set @id=SCOPE_IDENTITY()
    Select @id
END
GO
GRANT EXECUTE ON  [dbo].[MssWebCreateOrderAdditionalCharge] TO [MssExec]
GO
Uses