Auditoría Excel
This commit is contained in:
@@ -71,6 +71,7 @@ try {
|
||||
'periodo_id'
|
||||
));
|
||||
|
||||
|
||||
$DaysWeek = implode(',', array_values(array_unique(array_map(
|
||||
fn(DateTime $date) => (int) $date->format('w'),
|
||||
iterator_to_array(new DatePeriod(
|
||||
@@ -80,7 +81,7 @@ try {
|
||||
))
|
||||
))));
|
||||
|
||||
$HorariosID = implode(',', array_column($db->query(
|
||||
$_SESSION['horarios'] = $HorariosID = implode(',', array_column($db->query(
|
||||
"SELECT horario_id FROM horario
|
||||
WHERE horario_dia IN ($DaysWeek)
|
||||
AND periodo_id IN ($PeriodosHorarios)
|
||||
@@ -105,8 +106,8 @@ try {
|
||||
SELECT
|
||||
$RelevantColumns,
|
||||
CASE
|
||||
WHEN registro.registro_retardo THEN 'warning'::text
|
||||
ELSE 'primary'::text
|
||||
WHEN registro.registro_retardo THEN 'warning'
|
||||
ELSE 'primary'
|
||||
END AS color
|
||||
FROM horario
|
||||
NATURAL JOIN fechas
|
||||
@@ -115,7 +116,8 @@ try {
|
||||
NATURAL JOIN salon
|
||||
LEFT JOIN REGISTRO USING (profesor_id, registro_fecha_ideal, horario_id)
|
||||
LEFT JOIN usuario ON usuario.usuario_id = REGISTRO.supervisor_id
|
||||
JOIN estado_supervisor ON estado_supervisor.estado_supervisor_id = COALESCE(REGISTRO.estado_supervisor_id, 0)",
|
||||
JOIN estado_supervisor ON estado_supervisor.estado_supervisor_id = COALESCE(REGISTRO.estado_supervisor_id, 0)
|
||||
ORDER BY fechas.registro_fecha_ideal, horario_hora",
|
||||
$fechas
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user