Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
6| Name | Data Type | Length | Description |
|---|---|---|---|
| @p_cuit_firmante | varchar | 11 | |
| @p_cuit_relacionado | varchar | 11 | |
| @p_nro_cheque | int | 4 | |
| @p_fecha_rechazo | datetime | 8 | |
| @p_importe | money | 8 | |
| @p_nombre_file | varchar | 200 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Samuel Gonzalez>
-- Create date: <17 Ene 2018>
-- Description: <obtener chequesBCRA_procesamiento_altas por numero de cheque, cuit_firmante, cuit_relacionado, nombre_file para ser procesados>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.cheques_obtener_altas_con_filtro
@p_cuit_firmante varchar(11),
@p_cuit_relacionado varchar(11),
@p_nro_cheque int,
@p_fecha_rechazo datetime,
@p_importe money,
@p_nombre_file varchar(200)
AS
BEGIN
SET NOCOUNT ON;
SELECT
/* #0 */ c.id_cheque,
/* #1 */ c.cuit_firmante,
/* #2 */ c.cuit_relacionado,
/* #3 */ c.nro_cheque,
/* #4 */ c.fecha_rechazo,
/* #5 */ c.importe,
/* #6 */ c.id_causa,
/* #7 */ c.fecha_levantamiento,
/* #8 */ c.fecha_pago,
/* #9 */ c.nombre_file
from chequesBCRA_procesamiento_altas c
where (c.cuit_firmante = @p_cuit_firmante)
and (isnull(c.cuit_relacionado, '') = isnull(@p_cuit_relacionado, ''))
and (c.nro_cheque = @p_nro_cheque)
and (c.fecha_rechazo = @p_fecha_rechazo)
and (c.importe = @p_importe)
and (isnull(c.nombre_file, '') = isnull(@p_nombre_file, ''))
END
GO
GO
-- =============================================
-- Author: <Samuel Gonzalez>
-- Create date: <17 Ene 2018>
-- Description: <obtener chequesBCRA_procesamiento_altas por numero de cheque, cuit_firmante, cuit_relacionado, nombre_file para ser procesados>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.cheques_obtener_altas_con_filtro
@p_cuit_firmante varchar(11),
@p_cuit_relacionado varchar(11),
@p_nro_cheque int,
@p_fecha_rechazo datetime,
@p_importe money,
@p_nombre_file varchar(200)
AS
BEGIN
SET NOCOUNT ON;
SELECT
/* #0 */ c.id_cheque,
/* #1 */ c.cuit_firmante,
/* #2 */ c.cuit_relacionado,
/* #3 */ c.nro_cheque,
/* #4 */ c.fecha_rechazo,
/* #5 */ c.importe,
/* #6 */ c.id_causa,
/* #7 */ c.fecha_levantamiento,
/* #8 */ c.fecha_pago,
/* #9 */ c.nombre_file
from chequesBCRA_procesamiento_altas c
where (c.cuit_firmante = @p_cuit_firmante)
and (isnull(c.cuit_relacionado, '') = isnull(@p_cuit_relacionado, ''))
and (c.nro_cheque = @p_nro_cheque)
and (c.fecha_rechazo = @p_fecha_rechazo)
and (c.importe = @p_importe)
and (isnull(c.nombre_file, '') = isnull(@p_nombre_file, ''))
END
GO
Depends On
1Used By
No items found