dbo.LN_producto_tipo_doc_ponderacion

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

4
Name Data Type Length Description
@p_producto int 4
@p_tipo_doc int 4
@p_ponderacion tinyint 1
@p_user_id int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.LN_producto_tipo_doc_ponderacion
 -- Add the parameters for the stored procedure here

 @p_producto         int,
 @p_tipo_doc         int,
 @p_ponderacion        tinyint,
 @p_user_id         int
 
AS
BEGIN
 -- SET NOCOUNT ON added to prevent extra result sets from
 -- interfering with SELECT statements.
 SET NOCOUNT ON;

    -- Insert statements for procedure here

 if (@p_ponderacion >= 0 AND @p_producto > 0 AND @p_tipo_doc > 0) begin

  update LN_producto_tipo_doc SET ponderacion = @p_ponderacion,
   modified = GETDATE(), modified_by = @p_user_id 
  where producto = @p_producto AND tipo_doc = @p_tipo_doc

 end
  
END

GO

Used By

No items found