From 729f1b4164ff3211f16bcd3a241bbf52fb1469a2 Mon Sep 17 00:00:00 2001 From: Soporte ZH Consultores Date: Fri, 5 Jun 2026 00:36:02 +0000 Subject: [PATCH] fix(tramites): dropdown de Horas Incurridas filtra solo a involucrados MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit En la ficha detalle de cada trámite (los 4 departamentos), la sección "Horas Incurridas" listaba TODOS los abogados del sistema. Cambia a listar solo los involucrados del trámite — que son quienes pueden realmente trabajar el caso. Si no hay involucrados aún, dropdown queda deshabilitado con texto "— Sin involucrados —" y los inputs + botón "+" también disabled, para que el usuario primero agregue involucrados desde el modal de edición antes de registrar horas. --- views/tramites.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/views/tramites.html b/views/tramites.html index 51eebbe..f562ce1 100644 --- a/views/tramites.html +++ b/views/tramites.html @@ -530,10 +530,12 @@ function buildDetail(dept,r){ ${hrs?``:'

Sin horas registradas.

'}
Total: ${totalH} h
- - - - + ${(r.involucrados&&r.involucrados.length) + ? `` + : ``} + + +