dbo.obtener_sujeto_obligado

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

1
Name Data Type Length Description
@cuit varchar 20

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.obtener_sujeto_obligado
@cuit varchar(20)

AS


BEGIN
    SET NOCOUNT ON;
 declare @sujeto_obligado bit

 if((select count(*) from clae where cuit = @cuit  and visible =1 and cod_clae in(select cod_clae from clae_provincia_seguros))> 0 )
 begin
  set @sujeto_obligado = 1
 end
 else
 begin
  set @sujeto_obligado = 0
 end
 select @sujeto_obligado as sujeto_obligado

END 

GO

Used By

No items found