Update metodos.js
This commit is contained in:
parent
ecb41382dc
commit
bf74410c0e
11
metodos.js
11
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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user