fix(mi-dia,captura): exportar en escrituracion y avance real sin contar checkboxes en false
This commit is contained in:
@@ -192,7 +192,10 @@ export async function resumenAvance(desarrollo: string): Promise<ResumenDepartam
|
||||
desarrollo,
|
||||
departamento: dept,
|
||||
campo: { in: camposNombres },
|
||||
valor: { not: null },
|
||||
// Un valor nulo no está capturado, y un checkbox en "false" tampoco
|
||||
// (antes contaba como lleno e inflaba el avance, p. ej. Obra al 42%
|
||||
// cuando en realidad estaba casi vacía).
|
||||
AND: [{ valor: { not: null } }, { valor: { not: 'false' } }],
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@@ -1290,6 +1290,7 @@ export default function MiDiaPage({ accionesSesion }: { accionesSesion: Acciones
|
||||
if (tabCrm === 'leads') exportarLeads(leadsFiltrados)
|
||||
else if (tabCrm === 'oportunidades') exportarOportunidades(opsFiltradas)
|
||||
else if (tabCrm === 'apartados') exportarApartados(apartadosFiltrados)
|
||||
else if (tabCrm === 'escrituracion') exportarApartados(escrituracionFiltrados)
|
||||
}}
|
||||
className="shrink-0 rounded-lg border border-[#D1D5DB] bg-white px-3 py-2 text-xs font-medium text-[#374151] shadow-sm transition-all hover:bg-[#F9FAFB] dark:border-[#334155] dark:bg-[#0F172A] dark:text-[#CBD5E1] dark:hover:bg-[#1E293B]"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user