Update 004 ACTUALIZAR ESTADOS CONVENIOS.sql
This commit is contained in:
parent
5fbba05733
commit
a0afde6baf
@ -2,37 +2,24 @@ use telus;
|
|||||||
|
|
||||||
/*verificar convenios antes del 2024*/
|
/*verificar convenios antes del 2024*/
|
||||||
|
|
||||||
--exec telus_avaluo_emision_consulta 17848
|
--exec telus_avaluo_emision_consulta 10634
|
||||||
|
|
||||||
--select * from agcm_2022_tram_liquidaciones_convenio where lote_id = 34950
|
--select * from agcm_2022_tram_liquidaciones_convenio where lote_id = 53642
|
||||||
--select * from avaluo_emision_anual_cabecera where lote_id = 34950
|
--select * from avaluo_emision_anual_cabecera where lote_id = 53642
|
||||||
select * from rentas_estado WHERE registro_lote_id = 17848;
|
--select * from rentas_estado WHERE registro_lote_id = 53642;
|
||||||
select * from rentas_estado WHERE registro_lote_id = 34950;
|
--update rentas_estado set estado = 1 where registro_id = 17868 and registro_lote_id = 53642;
|
||||||
|
--update avaluo_emision_anual_cabecera set esta_convenio = 1 where emision_id IN (1993121, 2081207) and lote_id = 53642
|
||||||
|
|
||||||
/*
|
|
||||||
exec agcm_2022_tram_liquidaciones_convenio_ingreso 470535,'desactivar',634,56987,268.72,'sdfsdfsdf','ACTIVO','127','',2016,2022
|
--@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
|
||||||
ALTER PROCEDURE [dbo].[agcm_2022_tram_liquidaciones_convenio_ingreso]
|
--exec agcm_2022_tram_liquidaciones_convenio_ingreso 861638, "IP-1390000991001-29169-2023", 3344, 29169, 0.51, "Facilidad de Pago, Impuesto Predial, CEM y otras tasas, clave catastral 2-09-10-12-000 año(s) 2023", "ACTIVO", "201.234.204.18", "portalciudadano.manta.gob.ec", 2023, 2023
|
||||||
@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
|
if OBJECT_ID('tempdb.dbo.#convenios_revisar') is not null
|
||||||
drop table #convenios_revisar
|
drop table #convenios_revisar
|
||||||
|
|
||||||
select id
|
select id
|
||||||
into #convenios_revisar
|
into #convenios_revisar
|
||||||
from db_olympo_web.dbo.convenios_cabecera where code in('002191');
|
from db_olympo_web.dbo.convenios_cabecera where code in('003011');
|
||||||
|
|
||||||
select b.ClaveCatastral, a.* from agcm_2022_tram_liquidaciones_convenio a
|
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
|
inner join telus_procesos.dbo.agcm_datos_claves_avaluos b on a.lote_id = b.lote_id
|
||||||
@ -52,7 +39,7 @@ select b.* from avaluo_emision_anual_cabecera b
|
|||||||
order by b.lote_id
|
order by b.lote_id
|
||||||
|
|
||||||
|
|
||||||
--update avaluo_emision_anual_cabecera set esta_convenio = 0 where emision_id in(2011279)and esta_convenio = 1
|
--update avaluo_emision_anual_cabecera set esta_convenio = 0 where emision_id in(1583631,1481495,1587582,1529789)and esta_convenio = 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -63,7 +50,7 @@ select b.* from avaluo_emision_anual_cabecera b
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
GOTO SALIR
|
--GOTO SALIR
|
||||||
|
|
||||||
DECLARE
|
DECLARE
|
||||||
@id_tram_liq INT,
|
@id_tram_liq INT,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user