Autosave: 20260430-162110
BIN
assets/uploads/vouchers/69f0c5a80513e-Screenshot_264.png
Normal file
|
After Width: | Height: | Size: 366 KiB |
BIN
assets/uploads/vouchers/69f0c66de57be-879.png
Normal file
|
After Width: | Height: | Size: 394 KiB |
BIN
assets/uploads/vouchers/69f0c94584a0d-Screenshot_265.png
Normal file
|
After Width: | Height: | Size: 271 KiB |
BIN
assets/uploads/vouchers/69f0e1a953118-Screenshot_266.png
Normal file
|
After Width: | Height: | Size: 429 KiB |
BIN
assets/uploads/vouchers/69f0f75f5cbb5-86.png
Normal file
|
After Width: | Height: | Size: 718 KiB |
BIN
assets/uploads/vouchers/69f0f8dba1ff9-422.png
Normal file
|
After Width: | Height: | Size: 558 KiB |
BIN
assets/uploads/vouchers/69f0fc63e6b17-588.png
Normal file
|
After Width: | Height: | Size: 618 KiB |
BIN
assets/uploads/vouchers/69f0fd0c16f38-428.png
Normal file
|
After Width: | Height: | Size: 587 KiB |
BIN
assets/uploads/vouchers/69f0fde56ff83-003.png
Normal file
|
After Width: | Height: | Size: 480 KiB |
BIN
assets/uploads/vouchers/69f0fe5ee9622-79.png
Normal file
|
After Width: | Height: | Size: 502 KiB |
BIN
assets/uploads/vouchers/69f0febd412e8-414.png
Normal file
|
After Width: | Height: | Size: 451 KiB |
BIN
assets/uploads/vouchers/69f0ff51c0fa0-842.png
Normal file
|
After Width: | Height: | Size: 610 KiB |
BIN
assets/uploads/vouchers/69f0fff02abe2-16.png
Normal file
|
After Width: | Height: | Size: 539 KiB |
BIN
assets/uploads/vouchers/69f1043e5327b-7300.png
Normal file
|
After Width: | Height: | Size: 352 KiB |
BIN
assets/uploads/vouchers/69f104ba3e510-407.png
Normal file
|
After Width: | Height: | Size: 412 KiB |
BIN
assets/uploads/vouchers/69f105bb5ae1f-047.png
Normal file
|
After Width: | Height: | Size: 408 KiB |
BIN
assets/uploads/vouchers/69f106220e374-547.png
Normal file
|
After Width: | Height: | Size: 361 KiB |
BIN
assets/uploads/vouchers/69f10678da07d-465.png
Normal file
|
After Width: | Height: | Size: 437 KiB |
BIN
assets/uploads/vouchers/69f106d252439-236.png
Normal file
|
After Width: | Height: | Size: 511 KiB |
BIN
assets/uploads/vouchers/69f1077f4d73a-2520.png
Normal file
|
After Width: | Height: | Size: 343 KiB |
BIN
assets/uploads/vouchers/69f10d8b81986-391}.png
Normal file
|
After Width: | Height: | Size: 358 KiB |
BIN
assets/uploads/vouchers/69f110ac3c4f4-200.png
Normal file
|
After Width: | Height: | Size: 365 KiB |
BIN
assets/uploads/vouchers/69f13ed06d35a-Screenshot_267.png
Normal file
|
After Width: | Height: | Size: 277 KiB |
BIN
assets/uploads/vouchers/69f214f4e8833-Screenshot_268.png
Normal file
|
After Width: | Height: | Size: 325 KiB |
|
After Width: | Height: | Size: 36 KiB |
BIN
assets/uploads/vouchers/69f233c57e503-Screenshot_269.png
Normal file
|
After Width: | Height: | Size: 412 KiB |
BIN
assets/uploads/vouchers/69f25f1be43ad-Screenshot_270.png
Normal file
|
After Width: | Height: | Size: 307 KiB |
BIN
assets/uploads/vouchers/69f261711bb27-Screenshot_271.png
Normal file
|
After Width: | Height: | Size: 268 KiB |
BIN
assets/uploads/vouchers/69f27682194b8-Screenshot_49.png
Normal file
|
After Width: | Height: | Size: 208 KiB |
BIN
assets/uploads/vouchers/69f27a0162e9b-Screenshot_272.png
Normal file
|
After Width: | Height: | Size: 390 KiB |
BIN
assets/uploads/vouchers/69f27a83c0e6d-Screenshot_273.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
assets/uploads/vouchers/69f3658778061-92.png
Normal file
|
After Width: | Height: | Size: 422 KiB |
BIN
assets/uploads/vouchers/69f3675605874-663.png
Normal file
|
After Width: | Height: | Size: 289 KiB |
BIN
assets/uploads/vouchers/69f36ec36b1ca-Screenshot_274.png
Normal file
|
After Width: | Height: | Size: 251 KiB |
BIN
assets/uploads/vouchers/69f37265aa61e-Screenshot_275.png
Normal file
|
After Width: | Height: | Size: 248 KiB |
1
db/migrations/069_add_completado_to_tipo_paquete.sql
Normal file
@ -0,0 +1 @@
|
||||
ALTER TABLE pedidos MODIFY COLUMN tipo_paquete ENUM('RUTA', 'CONTRAENTREGA', 'NO CONTESTA, VOLVER A LLAMAR', 'PENDIENTE A RETORNO', 'COMPLETADO') DEFAULT NULL;
|
||||
@ -48,6 +48,7 @@ function getPaqueteStyle($paquete) {
|
||||
if ($paquete === 'CONTRAENTREGA') return 'background-color: #ffc107; color: black;'; // Warning yellow
|
||||
if ($paquete === 'NO CONTESTA, VOLVER A LLAMAR') return 'background-color: #fd7e14; color: white;'; // Orange
|
||||
if ($paquete === 'PENDIENTE A RETORNO') return 'background-color: #dc3545; color: white;'; // Red
|
||||
if ($paquete === 'COMPLETADO') return 'background-color: #198754; color: white;'; // Success green
|
||||
return 'background-color: #6c757d; color: white;'; // Secondary grey
|
||||
}
|
||||
|
||||
@ -295,6 +296,7 @@ function getPaqueteStyleJS(paquete) {
|
||||
if (paquete === 'CONTRAENTREGA') return 'background-color: #ffc107; color: black;';
|
||||
if (paquete === 'NO CONTESTA, VOLVER A LLAMAR') return 'background-color: #fd7e14; color: white;';
|
||||
if (paquete === 'PENDIENTE A RETORNO') return 'background-color: #dc3545; color: white;';
|
||||
if (paquete === 'COMPLETADO') return 'background-color: #198754; color: white;';
|
||||
return 'background-color: #6c757d; color: white;';
|
||||
}
|
||||
|
||||
@ -335,7 +337,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
{val: 'RUTA', text: 'RUTA'},
|
||||
{val: 'CONTRAENTREGA', text: 'CONTRAENTREGA'},
|
||||
{val: 'NO CONTESTA, VOLVER A LLAMAR', text: 'NO CONTESTA, VOLVER A LLAMAR'},
|
||||
{val: 'PENDIENTE A RETORNO', text: 'PENDIENTE A RETORNO'}
|
||||
{val: 'PENDIENTE A RETORNO', text: 'PENDIENTE A RETORNO'},
|
||||
{val: 'COMPLETADO', text: 'COMPLETADO'}
|
||||
];
|
||||
|
||||
options.forEach(opt => {
|
||||
|
||||
@ -26,7 +26,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$stmt = $pdo->prepare("UPDATE pedidos SET tipo_paquete = NULL WHERE id = ?");
|
||||
$result = $stmt->execute([$pedido_id]);
|
||||
} else {
|
||||
$valid_types = ['RUTA', 'CONTRAENTREGA', 'NO CONTESTA, VOLVER A LLAMAR', 'PENDIENTE A RETORNO'];
|
||||
$valid_types = ['RUTA', 'CONTRAENTREGA', 'NO CONTESTA, VOLVER A LLAMAR', 'PENDIENTE A RETORNO', 'COMPLETADO'];
|
||||
if (!in_array($tipo_paquete, $valid_types)) {
|
||||
echo json_encode(['success' => false, 'message' => 'Tipo inválido']);
|
||||
exit;
|
||||
|
||||