--- TRANSACCION 213027 delete from tcompaniatransacciones where csubsistema='21' and ctransaccion='3027'; delete from tsubsistematransacciones where csubsistema='21' and ctransaccion='3027'; delete from tsubsistematransaccionesid where csubsistema='21' and ctransaccion='3027'; insert into TSUBSISTEMATRANSACCIONESID (CSUBSISTEMA, CTRANSACCION, VERSIONTRANSACCION, ORDENMENU, PRESENTARENMENU, INTERNA, FORMULARIOBASE, AFECTAINMOVILIZACION, CGRUPOTRANSACCION, PRESENTARENREVERSO, CNIVELMENU, LISTAVALOR, USACACHE, SUMACOMPONENTES, PROVISION, COMPLETARRUBROS, LOTEGENERICO, VERIFICANIVELSEGURIDAD, CUSUARIO_INGRESO, FINGRESO, ACUMULACONTADOR, PAGINA, ORIGENDESTINO, CONTROLAEFECTIVO, REQUIEREAUTORIZACION, EJECUTAENAUTORIZACION) values ('21', '3027', '01', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); insert into TSUBSISTEMATRANSACCIONES (CIDIOMA, CSUBSISTEMA, CTRANSACCION, VERSIONTRANSACCION, FHASTA, FDESDE, DESCRIPCION, SIGLAS, VERSIONCONTROL) values ('ES', '21', '3027', '01', TIMESTAMP '2999-12-31 00:00:00', FNCSYSDATE, 'MANT. GASTOS DEDUCIBLES', null, 0); insert into TCOMPANIATRANSACCIONES (CPERSONA_COMPANIA, CSUBSISTEMA, CTRANSACCION, VERSIONTRANSACCION, VERSIONCONTROL) values (2, '21', '3027', '01', 0); --- PARAMETRIZACION PASO DE DATOS DE GASTOS DEDUCIBES DE LA TABLA tnominadatosfijos A tnominagastosdeducibles delete tnominagastosdeducibles; insert into tnominagastosdeducibles (cpersona, ccodigoparametro, cpersona_compania, fhasta, versioncontrol, fdesde, valor, periodo) select cpersona, ccodigoparametro, cpersona_compania, fhasta, versioncontrol, fdesde, valor, '2013' from tnominadatosfijos f where f.ccodigoparametro in ('0300','0301','0302','0303','0304') and f.valor<>0 and f.fhasta=fncfhasta order by cpersona, ccodigoparametro; delete tnominadatosfijos f where f.ccodigoparametro in ('0300','0301','0302','0303','0304') ;