This commit is contained in:
Lizandro Guarnizo
2026-06-16 14:51:46 -05:00
parent 56489a1557
commit eaa8a23af6
3 changed files with 141 additions and 101 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ foreach ($lugares as $lugar) {
FROM turnero_turnos t
JOIN turnero_prioridades p ON p.id = t.prioridad_id
WHERE t.sesion_id = ?
AND t.estado IN ('en_espera_lugar', 'en_servicio')
AND t.estado = 'en_servicio'
AND t.lugar_destino_id = ?
ORDER BY t.llamado_lugar_at DESC
LIMIT 1"