dbo.LN_contrapartes_datos

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

1
Name Data Type Length Description
@p_contraparte int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>

/*
Para buscar por Tax ID todas las contrapartes activas en los diferentes clientes
activos que tengan el servicio LED

*/

--[LN_contrapartes_datos]  95
-- =============================================
CREATE OR ALTER PROCEDURE dbo.LN_contrapartes_datos 
 @p_contraparte        int = null
AS
BEGIN
 
  SET NOCOUNT ON;

  SELECT LN_contrapartes.contraparte, padrones.nombre_persona, padrones.identificador,
    padrones.identificacion, padrones.numero, identificadores.abreviatura,
    identificadores.country_code, country.country_name,
    LN_contrapartes.id_padron, LN_contrapartes.cliente, 
    clientes.nombre_cliente, clientes.cli_codigo,
    LN_contrapartes.clave, LN_contrapartes.clave_temporal, LN_contrapartes.codigo_idioma,
    LN_contrapartes.datos_comerciales, LN_Contrapartes.nombre_contacto, 
    LN_contrapartes.email_contacto, LN_contrapartes.telefono_contacto, LN_contrapartes.pais_servicio, 
    LN_contrapartes.modalidad_pago

  FROM LN_contrapartes INNER JOIN clientes ON LN_contrapartes.cliente = clientes.cliente
  INNER JOIN padrones ON LN_contrapartes.id_padron = padrones.id_padron
  INNER JOIN identificadores ON padrones.identificador = identificadores.identificador
  INNER JOIN country ON identificadores.country_code = country.country_code
  
  WHERE LN_contrapartes.contraparte = @p_contraparte

END
GO

Used By

No items found