Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
1| Name | Data Type | Length | Description |
|---|---|---|---|
| @pTaxID | varchar | 50 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
/*
exec LN_BULK_PDF_IC_ASSIGN '213670310012%'
*/
CREATE OR ALTER PROCEDURE dbo.LN_BULK_PDF_IC_ASSIGN
@pTaxID varchar(50)
AS
BEGIN
SET NOCOUNT ON;
SELECT padrones.nombre_persona,padrones.identificacion,padrones.identificador,
LN_gestiones.gestion,ln_gestiones.contraparte
/*FROM LN_CONTRAPARTES inner join LN_gestiones on LN_gestiones.contraparte=LN_contrapartes.contraparte*/
FROM LN_CONTRAPARTES inner join LN_gestiones on (LN_gestiones.contraparte=LN_contrapartes.contraparte and LN_gestiones.vigente=1 and LN_gestiones.desde> '2022-03-09')
inner join padrones on ln_contrapartes.id_padron=padrones.id_padron
WHERE LN_CONTRAPARTES.CLIENTE = 5546348 and country_code='PY' and vigente = 1
and padrones.identificacion like @pTaxID
END
GO
GO
/*
exec LN_BULK_PDF_IC_ASSIGN '213670310012%'
*/
CREATE OR ALTER PROCEDURE dbo.LN_BULK_PDF_IC_ASSIGN
@pTaxID varchar(50)
AS
BEGIN
SET NOCOUNT ON;
SELECT padrones.nombre_persona,padrones.identificacion,padrones.identificador,
LN_gestiones.gestion,ln_gestiones.contraparte
/*FROM LN_CONTRAPARTES inner join LN_gestiones on LN_gestiones.contraparte=LN_contrapartes.contraparte*/
FROM LN_CONTRAPARTES inner join LN_gestiones on (LN_gestiones.contraparte=LN_contrapartes.contraparte and LN_gestiones.vigente=1 and LN_gestiones.desde> '2022-03-09')
inner join padrones on ln_contrapartes.id_padron=padrones.id_padron
WHERE LN_CONTRAPARTES.CLIENTE = 5546348 and country_code='PY' and vigente = 1
and padrones.identificacion like @pTaxID
END
GO
Depends On
3Used By
No items found