feat: rol manager, arreglos de reportes (cancelacion/afluencias), credito unico, cliente enkontrol, vendedor en bitacora y actualizar afluencia existente

This commit is contained in:
2026-09-18 15:25:34 +00:00
parent 9630893974
commit 4965a4488a
35 changed files with 303 additions and 90 deletions

View File

@@ -16,7 +16,7 @@ async function validarFechasBloqueadas(
registros: { unidad: string; campo: string; valor: string | null }[],
rol: string,
): Promise<void> {
if (rol === 'admin') return
if (rol === 'admin' || rol === 'manager') return
const bloqueados = CAMPOS_FECHA_BLOQUEADOS[departamento]
if (!bloqueados) return
const candidatos = registros.filter((r) => bloqueados.has(r.campo))