diff --git a/layout_header.php b/layout_header.php index 06c7cd35..f0b6890d 100644 --- a/layout_header.php +++ b/layout_header.php @@ -105,7 +105,7 @@ $navItems = [ 'pedidos_rotulados_list' => [ 'url' => 'pedidos.php', 'icon' => 'fa-clipboard-list', - 'text' => 'Ver Pedidos Rotulados', + 'text' => 'Pedidos Rotulados', 'roles' => ['Administrador', 'admin', 'Asesor', 'Control Logistico', 'Logistica'] ], 'agregar_pedido' => [ @@ -117,17 +117,24 @@ $navItems = [ ] ], - 'agregar_pedidos_contraentrega' => [ - 'url' => 'pedidos_contraentrega.php', - 'icon' => 'fa-hand-holding-usd', - 'text' => 'Agregar Pedidos Contraentrega', - 'roles' => ['Administrador', 'admin', 'Asesor', 'Control Logistico', 'Soporte Logistico'] - ], 'ruta_contraentrega' => [ - 'url' => 'ruta_contraentrega.php', 'icon' => 'fa-route', 'text' => 'Ruta Contraentrega', - 'roles' => ['Administrador', 'admin', 'Asesor', 'Control Logistico', 'Logistica', 'Soporte Logistico'] + 'roles' => ['Administrador', 'admin', 'Asesor', 'Control Logistico', 'Logistica', 'Soporte Logistico'], + 'submenu' => [ + 'ruta_contraentrega_list' => [ + 'url' => 'ruta_contraentrega.php', + 'icon' => 'fa-route', + 'text' => 'Ruta Contraentrega', + 'roles' => ['Administrador', 'admin', 'Asesor', 'Control Logistico', 'Logistica', 'Soporte Logistico'] + ], + 'agregar_pedidos_contraentrega' => [ + 'url' => 'pedidos_contraentrega.php', + 'icon' => 'fa-plus-circle', + 'text' => 'Agregar Pedidos Contraentrega', + 'roles' => ['Administrador', 'admin'] + ] + ] ], 'inventario_group' => [ 'icon' => 'fa-warehouse', diff --git a/pedidos_contraentrega.php b/pedidos_contraentrega.php index 1cfe2b0b..dd94b8dd 100644 --- a/pedidos_contraentrega.php +++ b/pedidos_contraentrega.php @@ -52,7 +52,7 @@ if (isset($_GET['id'])) { } } else { // Security check: Only Administradors and asesores can create new pedidos - if ($user_role !== 'Administrador' && $user_role !== 'Asesor') { + if ($user_role !== 'Administrador' && $user_role !== 'admin' && $user_role !== 'Asesor') { die('Acceso denegado. No tienes permiso para crear nuevos pedidos.'); } } @@ -116,6 +116,14 @@ $pageTitle = 'Agregar Pedidos Contraentrega'; include 'layout_header.php'; ?> + + + + @@ -129,6 +137,7 @@ include 'layout_header.php';
+ @@ -226,7 +235,8 @@ include 'layout_header.php';
- + +
Formato esperado: -12.082029, -77.069024. Solo números, coma, signo negativo y al menos 6 decimales por cada coordenada.
@@ -343,6 +353,63 @@ include 'layout_header.php'; + + +