diff --git a/modules/turnero/api/get_bandeja.php b/modules/turnero/api/get_bandeja.php index 7d8e9f1..66c5756 100644 --- a/modules/turnero/api/get_bandeja.php +++ b/modules/turnero/api/get_bandeja.php @@ -99,7 +99,8 @@ $stmt = $pdo->prepare(" GROUP_CONCAT(DISTINCT et.codigo ORDER BY et.codigo SEPARATOR ' ') AS examenes_txt, SUM(tc.tipo = 'recepcion') AS com_recepcion, SUM(tc.tipo = 'muestras') AS com_muestras, - SUM(tc.tipo = 'general') AS com_general + SUM(tc.tipo = 'general') AS com_general, + (SELECT COUNT(*) FROM turnero_muestras tm2 WHERE tm2.solicitud_id = ts.id AND tm2.estado = 'pendiente') AS muestras_pendientes FROM turnero_turnos t JOIN turnero_solicitudes ts ON ts.turno_id = t.id JOIN turnero_lugares l ON l.id = t.lugar_destino_id diff --git a/modules/turnero/views/bandeja.php b/modules/turnero/views/bandeja.php index a3a1a90..eec0bc6 100644 --- a/modules/turnero/views/bandeja.php +++ b/modules/turnero/views/bandeja.php @@ -364,6 +364,7 @@ Layout::open('Bandeja del día', 'fas fa-layer-group'); +