From bf74410c0e75bc2f9de81ff5316fcc5807c87d36 Mon Sep 17 00:00:00 2001 From: Marcelo Sanchez Date: Mon, 19 Jan 2026 16:24:11 -0500 Subject: [PATCH] Update metodos.js --- metodos.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/metodos.js b/metodos.js index b8d1581..8b3014f 100644 --- a/metodos.js +++ b/metodos.js @@ -555,7 +555,7 @@ async function Fun_ConsultarTRB(agent, req, res, tipo) { Contx = ExistParamtContext(agent, 'data_predios'); } if (Contx != null && Contx != NaN && Contx != undefined) { - console.log("exostedd 2222") + console.log("exostedd 2222 "+Contx.parameters.cedula_otro) if (Contx.parameters.cedula_otro != null && Contx.parameters.cedula_otro != "") { return Func_MiTasaRecoleccionBasura(agent, req, res, 2, Contx.parameters.cedula_otro); } else { @@ -578,7 +578,7 @@ async function Fun_ConsultarTRB(agent, req, res, tipo) { if (Contx != null && Contx != NaN && Contx != undefined) { if (Contx.parameters.codigo != null && Contx.parameters.codigo != "") { console.log("no hay ca " + Contx.parameters.codigo) - return Func_MiTasaRecoleccionBasura(agent, req, res, 2, Contx.parameters.codigo); + return Func_MiTasaRecoleccionBasura(agent, req, res, 3, Contx.parameters.codigo); } else { return TasaRecoleccionBasura(agent, req, res); } @@ -673,7 +673,7 @@ async function Func_MiTasaRecoleccionBasura(agent, req, res, lery = 1, data = nu try { let data_context = await ValidateDataUserContext(agent); if (data_context) { - if (lery == 3) { + if (lery == 4) { return Fun_ConsultarCCAtras(agent, req, res); } if (data_context != null && data_context != "") { @@ -681,7 +681,8 @@ async function Func_MiTasaRecoleccionBasura(agent, req, res, lery = 1, data = nu if (lery == 1) { legion = await funcion.ConsultaTasaRecoleccion(data_context.cedula); } else if (lery == 2) { - console.log("consulte ser") + legion = await funcion.ConsultaTasaRecoleccion(data); + } else if (lery == 3) { legion = await funcion.ConsultaTasaRecoleccion(data, 1); } if (legion['ok'] == true) { @@ -699,8 +700,8 @@ async function Func_MiTasaRecoleccionBasura(agent, req, res, lery = 1, data = nu } }); msger = msger + '💵 Total a pagar: *$' + suma.toFixed(2) + '*\n'; - msger = msger + '\nPara ver mas detalles revise: https://portalciudadano.manta.gob.ec/consulta_trb'; }); + msger = msger + '\nPara ver mas detalles revise: https://portalciudadano.manta.gob.ec/consulta_trb'; } else { msger = msger + "No se encontrarón valores pendientes de pago";