This commit is contained in:
Marcelo Sanchez 2026-01-29 16:30:28 -05:00
parent 92b907401f
commit a34c4de99a
2 changed files with 8 additions and 9 deletions

View File

@ -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;

View File

@ -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);