dbo.ln_cliente_cuits_buscar

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

1
Name Data Type Length Description
@cliente int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
/*
select * from ln_cliente_cuits
ln_cliente_cuits_buscar
*/

CREATE OR ALTER PROCEDURE dbo.ln_cliente_cuits_buscar  
@cliente int = 2046807993
AS
BEGIN
  SET NOCOUNT ON;
  --      declare @cliente int = 2046807993
    select distinct cuit, nombre_persona, isnull(id_padron, 0) as id_padron
      from ln_cliente_cuits 
     where cliente = @cliente
     and not exists (select * from LN_Fidecheck_ws 
                      where LN_Fidecheck_ws.cuit = ln_cliente_cuits.cuit 
          and created >=  getdate() -2 ) 
     --order by contraparte, id
      

END 

GO

Used By

No items found