Correcciones

This commit is contained in:
AlexLara
2025-07-22 10:56:20 -06:00
parent 058fd8ba4d
commit db5ee9fc20
4 changed files with 38 additions and 8 deletions

View File

@@ -102,7 +102,11 @@ try {
CASE
WHEN registro.registro_retardo THEN 'warning'
ELSE 'primary'
END AS color
END AS color,
case
when horario_fecha_fin is null then true
else false
end as horario_activo
FROM horario
JOIN horario_profesor USING (horario_id)
JOIN fechas ON EXTRACT(DOW FROM fechas.fecha) = horario.horario_dia
@@ -116,7 +120,7 @@ try {
JOIN estado_supervisor ON estado_supervisor.estado_supervisor_id = COALESCE(REGISTRO.estado_supervisor_id, 0)
WHERE horario.horario_id IN ($HorariosID)
AND (FECHAS.fecha + horario.horario_hora) < COALESCE(horario.horario_fecha_fin, NOW())
ORDER BY fechas.fecha, horario_hora, REGISTRO.estado_supervisor_id",
ORDER BY fechas.fecha, horario_hora, horario_fin, REGISTRO.estado_supervisor_id",
$fechas
);