Ing. Ximena
Se debe ingresar a la BD latino01, donde se realizó la siguiente consulta:
USE LATINO01
declare @gestion int
declare @nroop int
declare @nrocxp int
set @gestion=2023
set @nroop =2034 --Nro de orden de pago
select @nrocxp=cxpNroobliga from cxpOpDet where cxpgestion=@gestion and opNroObliga =@nroop
select 'VERIFICAR cxpctaspagcab original (fechacontrato y estado)',* from cxpctaspagcab where Gestion =@gestion and Nroobliga = @nrocxp
select 'VERIFICAR retenciones/pagos',* from cxppagodet where Gestion =@gestion and Nroobliga = @nrocxp
--update cxppagocab set fecha ='2023-08-15' where Gestion =@gestion AND nrodoc in (select nrodoc from cxppagodet where gestion= @gestion and Nroobliga = @nrocxp) and Transaccion='3' --en caso de haber retencion primero este
--update cxpctaspagcab set fechacontrato ='2023-07-29' where Gestion =@gestion and Nroobliga = @nrocxp --en caso de no haber retención solo este
select 'VERIFICAR fechacontrato en cxpctaspagcab',* from cxpctaspagcab where Gestion =@gestion and Nroobliga = @nrocxp
¿Le ha sido útil este artículo?
¡Qué bien!
Gracias por sus comentarios
¡Sentimos mucho no haber sido de ayuda!
Gracias por sus comentarios
Sus comentarios se han enviado
Agradecemos su esfuerzo e intentaremos corregir el artículo