This commit is contained in:
Lizandro Guarnizo
2026-04-21 20:06:05 -05:00
parent c934125f2f
commit b5067eb9fa
2 changed files with 51 additions and 10 deletions
+17
View File
@@ -38,6 +38,23 @@ try {
$_trLinks[] = ['name' => 'Recepción', 'icon' => 'fas fa-concierge-bell', 'route' => '/erp.php?m=turnero&v=recepcion'];
}
// ── Links dinámicos: un enlace por estación de Muestras ──────
try {
$_trMuestras = $_trPdo->query(
"SELECT id, nombre FROM turnero_lugares
WHERE activo = 1 AND tipo = 'muestras'
ORDER BY sort_order ASC"
)->fetchAll(PDO::FETCH_ASSOC);
foreach ($_trMuestras as $_m) {
$_trLinks[] = [
'name' => $_m['nombre'],
'icon' => 'fas fa-flask',
'route' => '/erp.php?m=turnero&v=lugar&lugar_id=' . (int)$_m['id'],
];
}
} catch (\Throwable $_) {}
return [
'slug' => 'turnero',
'name' => 'Turnero',