Update 004 ACTUALIZAR ESTADOS CONVENIOS.sql
This commit is contained in:
parent
65c9326083
commit
5fbba05733
@ -2,14 +2,37 @@ use telus;
|
||||
|
||||
/*verificar convenios antes del 2024*/
|
||||
|
||||
--exec telus_avaluo_emision_consulta 32946
|
||||
--exec telus_avaluo_emision_consulta 17848
|
||||
|
||||
--select * from agcm_2022_tram_liquidaciones_convenio where lote_id = 34950
|
||||
--select * from avaluo_emision_anual_cabecera where lote_id = 34950
|
||||
select * from rentas_estado WHERE registro_lote_id = 17848;
|
||||
select * from rentas_estado WHERE registro_lote_id = 34950;
|
||||
|
||||
/*
|
||||
exec agcm_2022_tram_liquidaciones_convenio_ingreso 470535,'desactivar',634,56987,268.72,'sdfsdfsdf','ACTIVO','127','',2016,2022
|
||||
ALTER PROCEDURE [dbo].[agcm_2022_tram_liquidaciones_convenio_ingreso]
|
||||
@id_liquidacion int,
|
||||
@codigo_liquidacion varchar(200),
|
||||
@id_convenio int,
|
||||
@lote_id int,
|
||||
@valor numeric(18,2),
|
||||
@observacion text,
|
||||
@estado varchar(100),
|
||||
@ip text,
|
||||
@host text,
|
||||
@desde int,
|
||||
@hasta int,
|
||||
@tipo varchar(100)='AUTO'
|
||||
*/
|
||||
--exec agcm_2022_tram_liquidaciones_convenio_ingreso 630568, "IP-1305719963", id_convenio, lote_id, valor, "observacion", "ACTIVO", ip, host, desde, hasta
|
||||
|
||||
if OBJECT_ID('tempdb.dbo.#convenios_revisar') is not null
|
||||
drop table #convenios_revisar
|
||||
|
||||
select id
|
||||
into #convenios_revisar
|
||||
from db_olympo_web.dbo.convenios_cabecera where code in('001219');
|
||||
from db_olympo_web.dbo.convenios_cabecera where code in('002191');
|
||||
|
||||
select b.ClaveCatastral, a.* from agcm_2022_tram_liquidaciones_convenio a
|
||||
inner join telus_procesos.dbo.agcm_datos_claves_avaluos b on a.lote_id = b.lote_id
|
||||
@ -29,7 +52,7 @@ select b.* from avaluo_emision_anual_cabecera b
|
||||
order by b.lote_id
|
||||
|
||||
|
||||
--update avaluo_emision_anual_cabecera set esta_convenio = 0 where emision_id in(1947170,1947170)and esta_convenio = 1
|
||||
--update avaluo_emision_anual_cabecera set esta_convenio = 0 where emision_id in(2011279)and esta_convenio = 1
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user