diff --git a/assets/uploads/info_images/info_6993de122e596.webp b/assets/uploads/info_images/info_6993de122e596.webp new file mode 100644 index 0000000..c94a54b Binary files /dev/null and b/assets/uploads/info_images/info_6993de122e596.webp differ diff --git a/kanban.php b/kanban.php index f0d3171..fc6e90d 100644 --- a/kanban.php +++ b/kanban.php @@ -47,21 +47,13 @@ if ($items) { } } -$pageTitle = "Kanban de Productos"; -$pageDescription = "Tablero Kanban para visualizar la información de los productos."; +$pageTitle = "PANEL DE PRODUCTOS"; +$pageDescription = "Panel para visualizar la información de los productos."; include 'layout_header.php'; ?>
-
-
-
-

-
-

-
-
diff --git a/layout_header.php b/layout_header.php index 8aec238..cd93323 100644 --- a/layout_header.php +++ b/layout_header.php @@ -23,7 +23,7 @@ $navItems = [ 'kanban' => [ 'url' => 'kanban.php', 'icon' => 'fa-columns', - 'text' => 'Kanban', + 'text' => 'Panel', 'roles' => ['Administrador', 'admin', 'Asesor', 'Control Logistico'] ], 'cobertura' => [ diff --git a/listos_para_recojo.php b/listos_para_recojo.php index fcf69a8..581d369 100644 --- a/listos_para_recojo.php +++ b/listos_para_recojo.php @@ -156,6 +156,7 @@ include 'layout_header.php'; Celular Producto Sede de Envío + Cantidad Monto Total Monto Debe Nro. Operación @@ -182,6 +183,7 @@ include 'layout_header.php'; + diff --git a/pedidos_en_transito.php b/pedidos_en_transito.php index b876c47..7b85331 100644 --- a/pedidos_en_transito.php +++ b/pedidos_en_transito.php @@ -152,6 +152,7 @@ include 'layout_header.php'; Celular Producto Sede de Envío + Cantidad Monto Total Monto Debe Nº De Orden @@ -173,6 +174,7 @@ include 'layout_header.php'; + diff --git a/test_pedidos.php b/test_pedidos.php new file mode 100644 index 0000000..57c4863 --- /dev/null +++ b/test_pedidos.php @@ -0,0 +1,326 @@ +prepare($years_query); + $years_stmt->execute([$user_id]); +} else { + $years_stmt = $pdo->query($years_query); +} +$years = $years_stmt->fetchAll(PDO::FETCH_COLUMN); + + +// Filter logic +$selected_month = $_GET['mes'] ?? ''; +$selected_year = $_GET['año'] ?? ''; +$search_query = $_GET['q'] ?? ''; + +$sql = "SELECT p.*, u.nombre_asesor as asesor_nombre FROM pedidos p LEFT JOIN users u ON p.asesor_id = u.id WHERE p.estado = 'EN TRANSITO 🚛'"; +$params = []; + +if ($user_role === 'Asesor') { + $sql .= " AND p.asesor_id = ?"; + $params[] = $user_id; +} + +if (!empty($search_query)) { + $sql .= " AND (p.nombre_completo LIKE ? OR p.dni_cliente LIKE ? OR p.celular LIKE ?)"; + $params[] = "%$search_query%"; + $params[] = "%$search_query%"; + $params[] = "%$search_query%"; +} + +if (!empty($selected_month)) { + $sql .= " AND MONTH(p.created_at) = ?"; + $params[] = $selected_month; +} +if (!empty($selected_year)) { + $sql .= " AND YEAR(p.created_at) = ?"; + $params[] = $selected_year; +} + +$sql .= " ORDER BY p.created_at DESC"; +$stmt = $pdo->prepare($sql); +$stmt->execute($params); +$pedidos = $stmt->fetchAll(); + +$months = [ + 1 => 'Enero', 2 => 'Febrero', 3 => 'Marzo', 4 => 'Abril', 5 => 'Mayo', 6 => 'Junio', + 7 => 'Julio', 8 => 'Agosto', 9 => 'Septiembre', 10 => 'Octubre', 11 => 'Noviembre', 12 => 'Diciembre' +]; + +?> + + + + + + + + + + + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + Limpiar +
+
+
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
IDClienteDNICelularProductoSede de EnvíoCantidadMonto TotalMonto DebeNº De OrdenCodigo De OrdenCLAVEEstadoAsesorFecha CreaciónVoucher RestanteAcciones
+ + + + Ver + + N/A + + + Editar + + Eliminar + +
+ +

No hay pedidos que coincidan con el filtro.

+ + +
+
+
+ + + + + +