From a34c4de99a2aa8a4e883c310a1ee801691dd126d Mon Sep 17 00:00:00 2001 From: Marcelo Sanchez Date: Thu, 29 Jan 2026 16:30:28 -0500 Subject: [PATCH] basura --- funtions.js | 9 --------- metodos.js | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/funtions.js b/funtions.js index 4b648a2..52e0553 100644 --- a/funtions.js +++ b/funtions.js @@ -163,7 +163,6 @@ async function ConsultaClaves(cedula, chang = null) { var _ur = 'consulta_predios_detalle/1/' + cedula + '?boot=true'; } AxiosPOST(_ur, {}, API_TOKEN_PORTAL).then(function (result) { - console.log(result); if (result['ok']) { array['ok'] = true; array['data'] = result['data_bot']; @@ -171,14 +170,6 @@ async function ConsultaClaves(cedula, chang = null) { } else { array['msg'] = result['message']; } - // if(result['ok'] && result['data_bot']['data'].length > 0){ - // array['ok'] = true; array['data'] = result['data_bot']['data']; array['msg'] = 'Consulta exitosa'; - // }else{ - // array['msg'] = 'el número de cédula '+cedula+' no posee predios catastrales registrados en el GAD MANTA'; - // if(chang != null){ - // array['msg'] = 'la clave catastral '+cedula+' no existe en los registros del GAD MANTA'; - // } - // } resolve(array); }).catch(function (error) { array['msg'] = error; diff --git a/metodos.js b/metodos.js index 8b3014f..68d7a18 100644 --- a/metodos.js +++ b/metodos.js @@ -693,6 +693,14 @@ async function Func_MiTasaRecoleccionBasura(agent, req, res, lery = 1, data = nu let suma = 0; msger = msger + '\n🏠 Contrato *' + elem_legio.numero_contrato + '* (' + funcion.conver_capitalice(elem_legio.direccion) + ') \n'; + msger = msger + '\nValores emitidos - 2025 \n'; + elem_legio.facturas_usadas_para_promedio.forEach(elem_omega => { + if (elem_omega.estado_proceso == 'GENERADA POR CNEL') { + suma += Number(elem_omega.monto_total); + msger = msger + '🚛 ' + elem_omega.mes + ' : *$' + elem_omega.monto_total + '*\n'; + } + }); + msger = msger + '\n\nPromedio a cancelar - 2026 \n'; elem_legio.facturas_usadas_para_promedio.forEach(elem_omega => { if (elem_omega.estado_proceso != 'GENERADA POR CNEL') { suma += Number(elem_omega.monto_total);