dbo.Task_ChequesUpdateFechas

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.Task_ChequesUpdateFechas 
AS
BEGIN
 -- SET NOCOUNT ON added to prevent extra result sets from
 -- interfering with SELECT statements.
 SET NOCOUNT ON;

EXEC MisAportes2DeudaExigible


exec chequesBCRA_altas_parseo


exec ChequesBCRABajasDiarias

exec bajas_cheques_bcra


delete CHEQ_RECH_20180214

delete CHEQ_RECH_BAJAS_20180214



insert into fuentes_procesadas (fecha_informacion,fuente,visible,created )
select  getdate() as fecha_informacion,'CHEQUES' as fuente,1 as visible,getdate() as created 


update chequesBCRA
set fecha_levantamiento = null
where fecha_levantamiento = '1900-01-01 00:00:00' 
and fecha_rechazo >= getdate() - (365*5)

update chequesBCRA
set fecha_pago = null
where fecha_pago = '1900-01-01 00:00:00' 
and fecha_rechazo >= getdate() - (365*5)




END

GO

Used By

No items found