feat(tiempos): agregar tiempo total puerta a puerta en historial y dashboard
- APIs: total_min = creado_at → fin_lugar_at (solo finalizados) - Dashboard: KPI card 'Total prom. puerta a puerta' + columna Total en tabla - Historial: columna Total en tabla Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
c357f18b61
commit
44b737c253
@@ -116,7 +116,9 @@ $sqlTurnos = "
|
||||
AS espera_min,
|
||||
ROUND(TIMESTAMPDIFF(SECOND, t.inicio_lugar_at,
|
||||
COALESCE(t.fin_lugar_at, NOW())) / 60.0, 1)
|
||||
AS servicio_min
|
||||
AS servicio_min,
|
||||
ROUND(TIMESTAMPDIFF(SECOND, t.creado_at, t.fin_lugar_at) / 60.0, 1)
|
||||
AS total_min
|
||||
FROM turnero_turnos t
|
||||
JOIN turnero_sesiones s ON s.id = t.sesion_id
|
||||
JOIN turnero_prioridades p ON p.id = t.prioridad_id
|
||||
|
||||
Reference in New Issue
Block a user