Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
7| Name | Data Type | Length | Description |
|---|---|---|---|
| @cuit | varchar | 20 | |
| @rango_minimo | decimal | 9 | |
| @rango_maximo | decimal | 9 | |
| @es_cliente | bit | 1 | |
| @facturacion | decimal | 9 | |
| @comex_importaciones | decimal | 9 | |
| @comex_exportaciones | decimal | 9 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.actualizar_nivel_socio_economico
@cuit varchar(20),
@rango_minimo decimal(18,4),
@rango_maximo decimal(18,4),
@es_cliente bit,
@facturacion decimal(18,4),
@comex_importaciones decimal(18,4),
@comex_exportaciones decimal(18,4)
AS
BEGIN
SET NOCOUNT ON;
declare @id_padron int = (select id_padron from padrones where identificacion = @cuit and habilitado = 1 and identificador = 'CUIT')
update procesos_nivel_socio_economico set id_padron = @id_padron, rango_desde=@rango_minimo,rango_hasta=@rango_maximo,
comex_importaciones=@comex_importaciones,comex_exportaciones = @comex_exportaciones,es_cliente=@es_cliente,facturacion=@facturacion,
modified=getdate(),
nombre_proceso='CAMPAÑA 1 MACRO' where cuit = @cuit
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.actualizar_nivel_socio_economico
@cuit varchar(20),
@rango_minimo decimal(18,4),
@rango_maximo decimal(18,4),
@es_cliente bit,
@facturacion decimal(18,4),
@comex_importaciones decimal(18,4),
@comex_exportaciones decimal(18,4)
AS
BEGIN
SET NOCOUNT ON;
declare @id_padron int = (select id_padron from padrones where identificacion = @cuit and habilitado = 1 and identificador = 'CUIT')
update procesos_nivel_socio_economico set id_padron = @id_padron, rango_desde=@rango_minimo,rango_hasta=@rango_maximo,
comex_importaciones=@comex_importaciones,comex_exportaciones = @comex_exportaciones,es_cliente=@es_cliente,facturacion=@facturacion,
modified=getdate(),
nombre_proceso='CAMPAÑA 1 MACRO' where cuit = @cuit
END
GO
Depends On
4Used By
No items found