diff --git a/assets/uploads/vouchers/69f628e5003ef-Screenshot_279.png b/assets/uploads/vouchers/69f628e5003ef-Screenshot_279.png new file mode 100644 index 00000000..2759d84e Binary files /dev/null and b/assets/uploads/vouchers/69f628e5003ef-Screenshot_279.png differ diff --git a/assets/uploads/vouchers/69f62c490eda7-Screenshot_280.png b/assets/uploads/vouchers/69f62c490eda7-Screenshot_280.png new file mode 100644 index 00000000..e5905a74 Binary files /dev/null and b/assets/uploads/vouchers/69f62c490eda7-Screenshot_280.png differ diff --git a/assets/uploads/vouchers/69f6849acc491-WhatsApp Image 2026-05-02 at 6.10.07 PM.jpeg b/assets/uploads/vouchers/69f6849acc491-WhatsApp Image 2026-05-02 at 6.10.07 PM.jpeg new file mode 100644 index 00000000..0e887309 Binary files /dev/null and b/assets/uploads/vouchers/69f6849acc491-WhatsApp Image 2026-05-02 at 6.10.07 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f68662a804e-WhatsApp Image 2026-05-02 at 6.18.38 PM.jpeg b/assets/uploads/vouchers/69f68662a804e-WhatsApp Image 2026-05-02 at 6.18.38 PM.jpeg new file mode 100644 index 00000000..c28b8b65 Binary files /dev/null and b/assets/uploads/vouchers/69f68662a804e-WhatsApp Image 2026-05-02 at 6.18.38 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f686dd4fe3e-WhatsApp Image 2026-05-02 at 6.20.51 PM.jpeg b/assets/uploads/vouchers/69f686dd4fe3e-WhatsApp Image 2026-05-02 at 6.20.51 PM.jpeg new file mode 100644 index 00000000..af692ffd Binary files /dev/null and b/assets/uploads/vouchers/69f686dd4fe3e-WhatsApp Image 2026-05-02 at 6.20.51 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f8af82967ba-Screenshot_281.png b/assets/uploads/vouchers/69f8af82967ba-Screenshot_281.png new file mode 100644 index 00000000..8877930b Binary files /dev/null and b/assets/uploads/vouchers/69f8af82967ba-Screenshot_281.png differ diff --git a/assets/uploads/vouchers/69f8afbe93f18-817.png b/assets/uploads/vouchers/69f8afbe93f18-817.png new file mode 100644 index 00000000..13fa57c5 Binary files /dev/null and b/assets/uploads/vouchers/69f8afbe93f18-817.png differ diff --git a/assets/uploads/vouchers/69f8afed2d55f-Screenshot_282.png b/assets/uploads/vouchers/69f8afed2d55f-Screenshot_282.png new file mode 100644 index 00000000..2a5e164d Binary files /dev/null and b/assets/uploads/vouchers/69f8afed2d55f-Screenshot_282.png differ diff --git a/assets/uploads/vouchers/69f8b0359ef5a-573.png b/assets/uploads/vouchers/69f8b0359ef5a-573.png new file mode 100644 index 00000000..360c814a Binary files /dev/null and b/assets/uploads/vouchers/69f8b0359ef5a-573.png differ diff --git a/assets/uploads/vouchers/69f8b32a16007-Screenshot_281.png b/assets/uploads/vouchers/69f8b32a16007-Screenshot_281.png new file mode 100644 index 00000000..8877930b Binary files /dev/null and b/assets/uploads/vouchers/69f8b32a16007-Screenshot_281.png differ diff --git a/assets/uploads/vouchers/69f8b72bb3d23-Screenshot_284.png b/assets/uploads/vouchers/69f8b72bb3d23-Screenshot_284.png new file mode 100644 index 00000000..46052498 Binary files /dev/null and b/assets/uploads/vouchers/69f8b72bb3d23-Screenshot_284.png differ diff --git a/assets/uploads/vouchers/69f8b8eb5f055-3945.png b/assets/uploads/vouchers/69f8b8eb5f055-3945.png new file mode 100644 index 00000000..0f332383 Binary files /dev/null and b/assets/uploads/vouchers/69f8b8eb5f055-3945.png differ diff --git a/assets/uploads/vouchers/69f8c40730a5a-383.png b/assets/uploads/vouchers/69f8c40730a5a-383.png new file mode 100644 index 00000000..819b7a35 Binary files /dev/null and b/assets/uploads/vouchers/69f8c40730a5a-383.png differ diff --git a/assets/uploads/vouchers/69f8c47e3da97-440.png b/assets/uploads/vouchers/69f8c47e3da97-440.png new file mode 100644 index 00000000..1650a973 Binary files /dev/null and b/assets/uploads/vouchers/69f8c47e3da97-440.png differ diff --git a/assets/uploads/vouchers/69f8c50043bb9-786.png b/assets/uploads/vouchers/69f8c50043bb9-786.png new file mode 100644 index 00000000..560ff254 Binary files /dev/null and b/assets/uploads/vouchers/69f8c50043bb9-786.png differ diff --git a/assets/uploads/vouchers/69f8c55a30c84-91.png b/assets/uploads/vouchers/69f8c55a30c84-91.png new file mode 100644 index 00000000..3e95d1b2 Binary files /dev/null and b/assets/uploads/vouchers/69f8c55a30c84-91.png differ diff --git a/assets/uploads/vouchers/69f8e71a76b9a-CamScanner 04-05-2026 13.29.pdf b/assets/uploads/vouchers/69f8e71a76b9a-CamScanner 04-05-2026 13.29.pdf new file mode 100644 index 00000000..7cc35500 Binary files /dev/null and b/assets/uploads/vouchers/69f8e71a76b9a-CamScanner 04-05-2026 13.29.pdf differ diff --git a/assets/uploads/vouchers/69f8ec16f11ec-Screenshot_285.png b/assets/uploads/vouchers/69f8ec16f11ec-Screenshot_285.png new file mode 100644 index 00000000..b64cbaed Binary files /dev/null and b/assets/uploads/vouchers/69f8ec16f11ec-Screenshot_285.png differ diff --git a/assets/uploads/vouchers/69f8efbfce35f-Screenshot_286.png b/assets/uploads/vouchers/69f8efbfce35f-Screenshot_286.png new file mode 100644 index 00000000..8b419fc8 Binary files /dev/null and b/assets/uploads/vouchers/69f8efbfce35f-Screenshot_286.png differ diff --git a/assets/uploads/vouchers/69f8f847ecbe7-Screenshot_287.png b/assets/uploads/vouchers/69f8f847ecbe7-Screenshot_287.png new file mode 100644 index 00000000..67ebb3c7 Binary files /dev/null and b/assets/uploads/vouchers/69f8f847ecbe7-Screenshot_287.png differ diff --git a/assets/uploads/vouchers/69f91193e8602-Screenshot_289.png b/assets/uploads/vouchers/69f91193e8602-Screenshot_289.png new file mode 100644 index 00000000..49a808e7 Binary files /dev/null and b/assets/uploads/vouchers/69f91193e8602-Screenshot_289.png differ diff --git a/assets/uploads/vouchers/69f912182d9e0-Screenshot_290.png b/assets/uploads/vouchers/69f912182d9e0-Screenshot_290.png new file mode 100644 index 00000000..443cdff8 Binary files /dev/null and b/assets/uploads/vouchers/69f912182d9e0-Screenshot_290.png differ diff --git a/assets/uploads/vouchers/69f913d770a08-WhatsApp Image 2026-05-04 at 4.46.50 PM.jpeg b/assets/uploads/vouchers/69f913d770a08-WhatsApp Image 2026-05-04 at 4.46.50 PM.jpeg new file mode 100644 index 00000000..1a18b085 Binary files /dev/null and b/assets/uploads/vouchers/69f913d770a08-WhatsApp Image 2026-05-04 at 4.46.50 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f9140f0494a-WhatsApp Image 2026-05-04 at 4.47.48 PM.jpeg b/assets/uploads/vouchers/69f9140f0494a-WhatsApp Image 2026-05-04 at 4.47.48 PM.jpeg new file mode 100644 index 00000000..b7686642 Binary files /dev/null and b/assets/uploads/vouchers/69f9140f0494a-WhatsApp Image 2026-05-04 at 4.47.48 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f9144e531ca-WhatsApp Image 2026-05-04 at 4.48.49 PM.jpeg b/assets/uploads/vouchers/69f9144e531ca-WhatsApp Image 2026-05-04 at 4.48.49 PM.jpeg new file mode 100644 index 00000000..2c7a56ad Binary files /dev/null and b/assets/uploads/vouchers/69f9144e531ca-WhatsApp Image 2026-05-04 at 4.48.49 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f914ba9b1c1-WhatsApp Image 2026-05-04 at 4.50.38 PM.jpeg b/assets/uploads/vouchers/69f914ba9b1c1-WhatsApp Image 2026-05-04 at 4.50.38 PM.jpeg new file mode 100644 index 00000000..f78724a3 Binary files /dev/null and b/assets/uploads/vouchers/69f914ba9b1c1-WhatsApp Image 2026-05-04 at 4.50.38 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f9151b7880b-WhatsApp Image 2026-05-04 at 4.52.13 PM.jpeg b/assets/uploads/vouchers/69f9151b7880b-WhatsApp Image 2026-05-04 at 4.52.13 PM.jpeg new file mode 100644 index 00000000..b99ba1ee Binary files /dev/null and b/assets/uploads/vouchers/69f9151b7880b-WhatsApp Image 2026-05-04 at 4.52.13 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f915d7ad47b-WhatsApp Image 2026-05-04 at 4.55.16 PM.jpeg b/assets/uploads/vouchers/69f915d7ad47b-WhatsApp Image 2026-05-04 at 4.55.16 PM.jpeg new file mode 100644 index 00000000..c5c51cf9 Binary files /dev/null and b/assets/uploads/vouchers/69f915d7ad47b-WhatsApp Image 2026-05-04 at 4.55.16 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f91615c7a38-WhatsApp Image 2026-05-04 at 4.56.25 PM.jpeg b/assets/uploads/vouchers/69f91615c7a38-WhatsApp Image 2026-05-04 at 4.56.25 PM.jpeg new file mode 100644 index 00000000..9fc601f2 Binary files /dev/null and b/assets/uploads/vouchers/69f91615c7a38-WhatsApp Image 2026-05-04 at 4.56.25 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f916b429358-WhatsApp Image 2026-05-04 at 4.58.18 PM (2).jpeg b/assets/uploads/vouchers/69f916b429358-WhatsApp Image 2026-05-04 at 4.58.18 PM (2).jpeg new file mode 100644 index 00000000..8cf262cb Binary files /dev/null and b/assets/uploads/vouchers/69f916b429358-WhatsApp Image 2026-05-04 at 4.58.18 PM (2).jpeg differ diff --git a/assets/uploads/vouchers/69f916ef38f32-WhatsApp Image 2026-05-04 at 5.00.05 PM.jpeg b/assets/uploads/vouchers/69f916ef38f32-WhatsApp Image 2026-05-04 at 5.00.05 PM.jpeg new file mode 100644 index 00000000..3e522304 Binary files /dev/null and b/assets/uploads/vouchers/69f916ef38f32-WhatsApp Image 2026-05-04 at 5.00.05 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f91721a672b-WhatsApp Image 2026-05-04 at 5.00.54 PM.jpeg b/assets/uploads/vouchers/69f91721a672b-WhatsApp Image 2026-05-04 at 5.00.54 PM.jpeg new file mode 100644 index 00000000..0fcb5387 Binary files /dev/null and b/assets/uploads/vouchers/69f91721a672b-WhatsApp Image 2026-05-04 at 5.00.54 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f917853fc11-WhatsApp Image 2026-05-04 at 5.02.34 PM.jpeg b/assets/uploads/vouchers/69f917853fc11-WhatsApp Image 2026-05-04 at 5.02.34 PM.jpeg new file mode 100644 index 00000000..163fc9cc Binary files /dev/null and b/assets/uploads/vouchers/69f917853fc11-WhatsApp Image 2026-05-04 at 5.02.34 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f917bca11bd-WhatsApp Image 2026-05-04 at 5.03.32 PM.jpeg b/assets/uploads/vouchers/69f917bca11bd-WhatsApp Image 2026-05-04 at 5.03.32 PM.jpeg new file mode 100644 index 00000000..792a17ab Binary files /dev/null and b/assets/uploads/vouchers/69f917bca11bd-WhatsApp Image 2026-05-04 at 5.03.32 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f917ed84c4b-WhatsApp Image 2026-05-04 at 5.04.17 PM.jpeg b/assets/uploads/vouchers/69f917ed84c4b-WhatsApp Image 2026-05-04 at 5.04.17 PM.jpeg new file mode 100644 index 00000000..fb9440fe Binary files /dev/null and b/assets/uploads/vouchers/69f917ed84c4b-WhatsApp Image 2026-05-04 at 5.04.17 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f9186cab17e-WhatsApp Image 2026-05-04 at 5.06.21 PM.jpeg b/assets/uploads/vouchers/69f9186cab17e-WhatsApp Image 2026-05-04 at 5.06.21 PM.jpeg new file mode 100644 index 00000000..c097d387 Binary files /dev/null and b/assets/uploads/vouchers/69f9186cab17e-WhatsApp Image 2026-05-04 at 5.06.21 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f918ae81935-WhatsApp Image 2026-05-04 at 5.07.31 PM.jpeg b/assets/uploads/vouchers/69f918ae81935-WhatsApp Image 2026-05-04 at 5.07.31 PM.jpeg new file mode 100644 index 00000000..61a5e4a8 Binary files /dev/null and b/assets/uploads/vouchers/69f918ae81935-WhatsApp Image 2026-05-04 at 5.07.31 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f919bb7ed6b-WhatsApp Image 2026-05-04 at 5.11.53 PM.jpeg b/assets/uploads/vouchers/69f919bb7ed6b-WhatsApp Image 2026-05-04 at 5.11.53 PM.jpeg new file mode 100644 index 00000000..acd99ac3 Binary files /dev/null and b/assets/uploads/vouchers/69f919bb7ed6b-WhatsApp Image 2026-05-04 at 5.11.53 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f91a30ec602-WhatsApp Image 2026-05-04 at 5.13.48 PM.jpeg b/assets/uploads/vouchers/69f91a30ec602-WhatsApp Image 2026-05-04 at 5.13.48 PM.jpeg new file mode 100644 index 00000000..ead44005 Binary files /dev/null and b/assets/uploads/vouchers/69f91a30ec602-WhatsApp Image 2026-05-04 at 5.13.48 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f91a6d4bf77-WhatsApp Image 2026-05-04 at 5.14.55 PM.jpeg b/assets/uploads/vouchers/69f91a6d4bf77-WhatsApp Image 2026-05-04 at 5.14.55 PM.jpeg new file mode 100644 index 00000000..996a045d Binary files /dev/null and b/assets/uploads/vouchers/69f91a6d4bf77-WhatsApp Image 2026-05-04 at 5.14.55 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f91ac66467d-WhatsApp Image 2026-05-04 at 5.16.22 PM.jpeg b/assets/uploads/vouchers/69f91ac66467d-WhatsApp Image 2026-05-04 at 5.16.22 PM.jpeg new file mode 100644 index 00000000..c208c937 Binary files /dev/null and b/assets/uploads/vouchers/69f91ac66467d-WhatsApp Image 2026-05-04 at 5.16.22 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f91b0f44001-WhatsApp Image 2026-05-04 at 5.17.41 PM.jpeg b/assets/uploads/vouchers/69f91b0f44001-WhatsApp Image 2026-05-04 at 5.17.41 PM.jpeg new file mode 100644 index 00000000..f02e415b Binary files /dev/null and b/assets/uploads/vouchers/69f91b0f44001-WhatsApp Image 2026-05-04 at 5.17.41 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f91b5997d68-WhatsApp Image 2026-05-04 at 5.18.53 PM.jpeg b/assets/uploads/vouchers/69f91b5997d68-WhatsApp Image 2026-05-04 at 5.18.53 PM.jpeg new file mode 100644 index 00000000..14940245 Binary files /dev/null and b/assets/uploads/vouchers/69f91b5997d68-WhatsApp Image 2026-05-04 at 5.18.53 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f91b917b540-WhatsApp Image 2026-05-04 at 5.19.51 PM.jpeg b/assets/uploads/vouchers/69f91b917b540-WhatsApp Image 2026-05-04 at 5.19.51 PM.jpeg new file mode 100644 index 00000000..17e2eb21 Binary files /dev/null and b/assets/uploads/vouchers/69f91b917b540-WhatsApp Image 2026-05-04 at 5.19.51 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f9289e23561-WhatsApp Image 2026-05-04 at 6.15.31 PM.jpeg b/assets/uploads/vouchers/69f9289e23561-WhatsApp Image 2026-05-04 at 6.15.31 PM.jpeg new file mode 100644 index 00000000..fdd06df1 Binary files /dev/null and b/assets/uploads/vouchers/69f9289e23561-WhatsApp Image 2026-05-04 at 6.15.31 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f928df1da56-WhatsApp Image 2026-05-04 at 6.16.12 PM.jpeg b/assets/uploads/vouchers/69f928df1da56-WhatsApp Image 2026-05-04 at 6.16.12 PM.jpeg new file mode 100644 index 00000000..b8b2a00e Binary files /dev/null and b/assets/uploads/vouchers/69f928df1da56-WhatsApp Image 2026-05-04 at 6.16.12 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f928e46f4fa-Screenshot_291.png b/assets/uploads/vouchers/69f928e46f4fa-Screenshot_291.png new file mode 100644 index 00000000..d557cec1 Binary files /dev/null and b/assets/uploads/vouchers/69f928e46f4fa-Screenshot_291.png differ diff --git a/assets/uploads/vouchers/69f9293341a3a-WhatsApp Image 2026-05-04 at 6.18.00 PM.jpeg b/assets/uploads/vouchers/69f9293341a3a-WhatsApp Image 2026-05-04 at 6.18.00 PM.jpeg new file mode 100644 index 00000000..2ee84cab Binary files /dev/null and b/assets/uploads/vouchers/69f9293341a3a-WhatsApp Image 2026-05-04 at 6.18.00 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f92989981ed-WhatsApp Image 2026-05-04 at 6.19.29 PM.jpeg b/assets/uploads/vouchers/69f92989981ed-WhatsApp Image 2026-05-04 at 6.19.29 PM.jpeg new file mode 100644 index 00000000..fdf3e15f Binary files /dev/null and b/assets/uploads/vouchers/69f92989981ed-WhatsApp Image 2026-05-04 at 6.19.29 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f929bee5578-WhatsApp Image 2026-05-04 at 6.20.22 PM.jpeg b/assets/uploads/vouchers/69f929bee5578-WhatsApp Image 2026-05-04 at 6.20.22 PM.jpeg new file mode 100644 index 00000000..43731991 Binary files /dev/null and b/assets/uploads/vouchers/69f929bee5578-WhatsApp Image 2026-05-04 at 6.20.22 PM.jpeg differ diff --git a/assets/uploads/vouchers/69f92a33cc919-WhatsApp Image 2026-05-04 at 6.22.16 PM.jpeg b/assets/uploads/vouchers/69f92a33cc919-WhatsApp Image 2026-05-04 at 6.22.16 PM.jpeg new file mode 100644 index 00000000..9622e192 Binary files /dev/null and b/assets/uploads/vouchers/69f92a33cc919-WhatsApp Image 2026-05-04 at 6.22.16 PM.jpeg differ diff --git a/db/migrations/070_add_descargo_to_pedidos.sql b/db/migrations/070_add_descargo_to_pedidos.sql new file mode 100644 index 00000000..ea2570b5 --- /dev/null +++ b/db/migrations/070_add_descargo_to_pedidos.sql @@ -0,0 +1,2 @@ +-- Migration: Add descargo column to pedidos table +ALTER TABLE pedidos ADD COLUMN descargo TEXT NULL; diff --git a/download_shalom.php b/download_shalom.php index a233c021..7ae5f2a9 100644 --- a/download_shalom.php +++ b/download_shalom.php @@ -10,11 +10,12 @@ try { $pdo = db(); $type = $_GET['type'] ?? 'all'; - // Filtramos solo los pedidos que están en estado 'ROTULADO 📦' + // Filtramos solo los pedidos que están en estado 'ROTULADO 📦' y son de la agencia 'SHALOM' $query = " SELECT p.dni_cliente, p.celular, p.sede_envio, p.agencia FROM pedidos p WHERE p.estado = 'ROTULADO 📦' + AND p.agencia LIKE '%SHALOM%' "; if ($type === 'terrestre') { @@ -61,10 +62,22 @@ try { foreach ($pedidos as $pedido) { // Limpiar el DNI: solo números $dni = preg_replace('/[^0-9]/', '', $pedido['dni_cliente'] ?? ''); - $celular = htmlspecialchars($pedido['celular'] ?? ''); + + // Limpiar el celular: solo números + $celular = preg_replace('/[^0-9]/', '', $pedido['celular'] ?? ''); + + // Eliminar prefijo '51' si existe al inicio y el número es largo (ej. 51987654321) + if (str_starts_with($celular, '51') && strlen($celular) > 9) { + $celular = substr($celular, 2); + } + + $celular = htmlspecialchars($celular); + $destino_raw = str_ireplace('shalom:', '', $pedido['sede_envio'] ?? ''); $parts = explode('/', $destino_raw); $destino = trim(end($parts)); + // Convertir a mayúsculas + $destino = mb_strtoupper($destino, 'UTF-8'); $destino = htmlspecialchars($destino); $output .= '
Aquí podrás subir y organizar logos, intros de video, música y otros materiales que la editora deba utilizar de forma recurrente.
+No hay pedidos de video registrados aún.
++ ... +
+