diff --git a/modules/turnero/views/historial.php b/modules/turnero/views/historial.php index 000dd3c..1c7c63f 100644 --- a/modules/turnero/views/historial.php +++ b/modules/turnero/views/historial.php @@ -414,7 +414,9 @@ function renderTabla(turnos) { } tbody.innerHTML = turnos.map((t,i) => { - const nombre = esc(t.paciente_bd || t.paciente_nombre || '—'); + const nombreBd = esc(t.paciente_bd || ''); + const nombreKiosko = esc(t.paciente_nombre || ''); + const nombre = nombreBd || nombreKiosko || '—'; const lugar = esc(t.lugar_nombre || '—'); const fecha = t.fecha_sesion || '—'; const horaEnt = t.creado_at @@ -447,7 +449,12 @@ function renderTabla(turnos) { ${esc(t.prioridad_codigo)} - ${nombre} + + ${nombre} + ${nombreBd && nombreKiosko && nombreBd !== nombreKiosko + ? `
Kiosko: ${nombreKiosko}
` + : ''} +
${desk}
${recep}