style(pos): redimensionar filtros de preordenes y compactar tarjetas de ordenes en un 28%
This commit is contained in:
+119
-58
@@ -1548,46 +1548,58 @@ body.dark-mode .floating-cart-bar {
|
|||||||
cursor: not-allowed !important;
|
cursor: not-allowed !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tarjetas de Pre-órdenes */
|
/* Tarjetas de Pre-órdenes (Diseño compacto: ~28% reducción) */
|
||||||
.pos-preorder-card {
|
.pos-preorder-card {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border: 1px solid #e2e8f0;
|
border: 1px solid #e2e8f0;
|
||||||
border-radius: 14px;
|
border-radius: 11px;
|
||||||
padding: 14px 16px;
|
padding: 8px 12px;
|
||||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 5px;
|
||||||
transition: all 0.15s ease;
|
transition: all 0.15s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-preorder-card:hover {
|
.pos-preorder-card:hover {
|
||||||
border-color: #cbd5e1;
|
border-color: #cbd5e1;
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
|
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pos-preorder-badge-banner {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 6px;
|
||||||
|
padding: 4px 8px;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 0.78rem;
|
||||||
|
font-weight: 800;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-preorder-header {
|
.pos-preorder-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-preorder-student {
|
.pos-preorder-student {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 8px;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-preorder-avatar {
|
.pos-preorder-avatar {
|
||||||
width: 42px;
|
width: 32px;
|
||||||
height: 42px;
|
height: 32px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 2px solid #0284c7;
|
border: 1.5px solid #0284c7;
|
||||||
background: #f1f5f9;
|
background: #f1f5f9;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
font-size: 0.76rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-preorder-name-row {
|
.pos-preorder-name-row {
|
||||||
@@ -1595,64 +1607,67 @@ body.dark-mode .floating-cart-bar {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
line-height: 1.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-preorder-name {
|
.pos-preorder-name {
|
||||||
color: #0f172a;
|
color: #0f172a;
|
||||||
font-size: 0.95rem;
|
font-size: 0.85rem;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-preorder-grade {
|
.pos-preorder-grade {
|
||||||
font-size: 0.76rem;
|
font-size: 0.70rem;
|
||||||
color: #64748b;
|
color: #64748b;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-preorder-ticket-info {
|
.pos-preorder-ticket-info {
|
||||||
font-size: 0.74rem;
|
font-size: 0.68rem;
|
||||||
color: #94a3b8;
|
color: #94a3b8;
|
||||||
margin-top: 2px;
|
margin-top: 1px;
|
||||||
|
line-height: 1.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-preorder-items-box {
|
.pos-preorder-items-box {
|
||||||
background: #f8fafc;
|
background: #f8fafc;
|
||||||
border: 1px solid #f1f5f9;
|
border: 1px solid #f1f5f9;
|
||||||
border-radius: 8px;
|
border-radius: 7px;
|
||||||
padding: 8px 12px;
|
padding: 4px 8px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 6px;
|
||||||
font-size: 0.84rem;
|
font-size: 0.76rem;
|
||||||
color: #0369a1;
|
color: #0369a1;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
line-height: 1.25;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-preorder-footer {
|
.pos-preorder-footer {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 8px;
|
||||||
border-top: 1px dashed #e2e8f0;
|
border-top: 1px dashed #e2e8f0;
|
||||||
padding-top: 8px;
|
padding-top: 5px;
|
||||||
margin-top: 2px;
|
margin-top: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-preorder-total {
|
.pos-preorder-total {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
gap: 6px;
|
gap: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-preorder-total-label {
|
.pos-preorder-total-label {
|
||||||
font-size: 0.78rem;
|
font-size: 0.70rem;
|
||||||
color: #64748b;
|
color: #64748b;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-preorder-total-val {
|
.pos-preorder-total-val {
|
||||||
font-size: 1.05rem;
|
font-size: 0.90rem;
|
||||||
font-weight: 900;
|
font-weight: 800;
|
||||||
color: #0f172a;
|
color: #0f172a;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1661,8 +1676,10 @@ body.dark-mode .floating-cart-bar {
|
|||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
border-color: #16a34a !important;
|
border-color: #16a34a !important;
|
||||||
font-weight: 800 !important;
|
font-weight: 800 !important;
|
||||||
height: 34px !important;
|
height: 28px !important;
|
||||||
padding: 0 16px !important;
|
padding: 0 11px !important;
|
||||||
|
font-size: 0.74rem !important;
|
||||||
|
border-radius: 7px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-btn-entregar:hover {
|
.pos-btn-entregar:hover {
|
||||||
@@ -1672,52 +1689,59 @@ body.dark-mode .floating-cart-bar {
|
|||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
.pos-preorder-footer {
|
.pos-preorder-footer {
|
||||||
flex-direction: column;
|
flex-direction: row;
|
||||||
align-items: stretch;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 6px;
|
||||||
}
|
}
|
||||||
.pos-btn-entregar {
|
.pos-btn-entregar {
|
||||||
width: 100% !important;
|
height: 30px !important;
|
||||||
height: 38px !important;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Filtros de Pre-órdenes por Horario / Recreo */
|
/* Filtros de Pre-órdenes por Horario / Recreo (Segmented Toolbar) */
|
||||||
.pos-preorder-filter-bar {
|
.pos-preorder-filter-bar {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 8px;
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
background: #f1f5f9;
|
||||||
|
border: 1px solid #e2e8f0;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 4px 6px;
|
||||||
|
margin-bottom: 10px;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
padding-bottom: 8px;
|
|
||||||
margin-bottom: 12px;
|
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
.pos-preorder-filter-bar::-webkit-scrollbar {
|
.pos-preorder-filter-bar::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.pos-filter-pill {
|
.pos-filter-pill {
|
||||||
padding: 8px 14px;
|
padding: 5px 11px;
|
||||||
border-radius: 10px;
|
border-radius: 8px;
|
||||||
border: 1.5px solid #cbd5e1;
|
border: 1px solid transparent;
|
||||||
background: #ffffff;
|
background: transparent;
|
||||||
color: #334155;
|
color: #475569;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 0.82rem;
|
font-size: 0.76rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6px;
|
gap: 5px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
flex-shrink: 0;
|
||||||
transition: all 0.15s ease;
|
transition: all 0.15s ease;
|
||||||
|
line-height: 1.2;
|
||||||
}
|
}
|
||||||
.pos-filter-pill:hover {
|
.pos-filter-pill:hover {
|
||||||
background: #f8fafc;
|
background: #ffffff;
|
||||||
border-color: #94a3b8;
|
color: #0f172a;
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
||||||
}
|
}
|
||||||
.pos-filter-pill.active {
|
.pos-filter-pill.active {
|
||||||
background: #0284c7;
|
background: #0284c7;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border-color: #0284c7;
|
border-color: #0284c7;
|
||||||
box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
|
box-shadow: 0 1px 4px rgba(2, 132, 199, 0.28);
|
||||||
}
|
}
|
||||||
.pos-filter-pill.active .pos-pill-count {
|
.pos-filter-pill.active .pos-pill-count {
|
||||||
background: rgba(255, 255, 255, 0.25);
|
background: rgba(255, 255, 255, 0.25);
|
||||||
@@ -1726,20 +1750,57 @@ body.dark-mode .floating-cart-bar {
|
|||||||
.pos-pill-count {
|
.pos-pill-count {
|
||||||
background: #e2e8f0;
|
background: #e2e8f0;
|
||||||
color: #475569;
|
color: #475569;
|
||||||
padding: 2px 7px;
|
padding: 1px 6px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
font-size: 0.74rem;
|
font-size: 0.68rem;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
}
|
display: inline-flex;
|
||||||
.pos-preorder-badge-banner {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: center;
|
||||||
gap: 8px;
|
min-width: 17px;
|
||||||
padding: 8px 12px;
|
line-height: 1.2;
|
||||||
border-radius: 10px;
|
}
|
||||||
font-size: 0.84rem;
|
.pos-filter-pill-canceladas {
|
||||||
font-weight: 800;
|
color: #b91c1c;
|
||||||
|
}
|
||||||
|
.pos-filter-pill-canceladas:hover {
|
||||||
|
background: #fef2f2;
|
||||||
|
color: #991b1b;
|
||||||
|
}
|
||||||
|
.pos-filter-pill-canceladas .pos-pill-count {
|
||||||
|
background: #fee2e2;
|
||||||
|
color: #991b1b;
|
||||||
|
}
|
||||||
|
.pos-filter-pill-canceladas.active {
|
||||||
|
background: #dc2626;
|
||||||
|
color: #ffffff;
|
||||||
|
border-color: #dc2626;
|
||||||
|
box-shadow: 0 1px 4px rgba(220, 38, 38, 0.3);
|
||||||
|
}
|
||||||
|
.pos-filter-pill-canceladas.active .pos-pill-count {
|
||||||
|
background: rgba(255, 255, 255, 0.3);
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.pos-preorder-filter-bar {
|
||||||
|
padding: 3px 4px;
|
||||||
|
gap: 4px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
border-radius: 10px;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
.pos-filter-pill {
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 0.72rem;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
.pos-pill-count {
|
||||||
|
padding: 1px 5px;
|
||||||
|
font-size: 0.65rem;
|
||||||
|
min-width: 15px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.pos-incoming-preorder-toast {
|
.pos-incoming-preorder-toast {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|||||||
+35
-35
@@ -1497,10 +1497,10 @@ function renderPreOrdersList() {
|
|||||||
if (filtered.length === 0) {
|
if (filtered.length === 0) {
|
||||||
if (currentPreOrderFilter === 'canceladas') {
|
if (currentPreOrderFilter === 'canceladas') {
|
||||||
list.innerHTML = `
|
list.innerHTML = `
|
||||||
<div style="text-align: center; color: #64748b; padding: 40px 20px; background: white; border-radius: 14px; border: 1.5px dashed #cbd5e1; margin-top: 4px;">
|
<div style="text-align: center; color: #64748b; padding: 24px 16px; background: white; border-radius: 11px; border: 1.5px dashed #cbd5e1; margin-top: 2px;">
|
||||||
<span style="font-size: 2.2rem; display: block; margin-bottom: 8px;">✅</span>
|
<span style="font-size: 1.6rem; display: block; margin-bottom: 6px;">✅</span>
|
||||||
<strong style="color: #334155; font-size: 0.95rem; display: block;">No hay pre-órdenes canceladas</strong>
|
<strong style="color: #334155; font-size: 0.88rem; display: block;">No hay pre-órdenes canceladas</strong>
|
||||||
<p style="font-size: 0.8rem; margin: 4px 0 0 0; color: #94a3b8;">Las órdenes no retiradas que se cancelen por Cierre de Caja o a las 5:00 PM aparecerán aquí con su monto liberado.</p>
|
<p style="font-size: 0.75rem; margin: 3px 0 0 0; color: #94a3b8;">Las órdenes no retiradas que se cancelen por Cierre de Caja o a las 5:00 PM aparecerán aquí con su monto liberado.</p>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
return;
|
return;
|
||||||
@@ -1508,15 +1508,15 @@ function renderPreOrdersList() {
|
|||||||
|
|
||||||
const filterNames = {
|
const filterNames = {
|
||||||
'todos': 'pendientes por entregar',
|
'todos': 'pendientes por entregar',
|
||||||
'recreo_1': 'para el 1er Recreo (9:30 AM)',
|
'recreo_1': 'para el 1er Recreo',
|
||||||
'almuerzo': 'para el Almuerzo (11:45 AM)',
|
'almuerzo': 'para el Almuerzo',
|
||||||
'recreo_2': 'para el 2do Recreo (1:45 PM)'
|
'recreo_2': 'para el 2do Recreo'
|
||||||
};
|
};
|
||||||
list.innerHTML = `
|
list.innerHTML = `
|
||||||
<div style="text-align: center; color: #64748b; padding: 40px 20px; background: white; border-radius: 14px; border: 1.5px dashed #cbd5e1; margin-top: 4px;">
|
<div style="text-align: center; color: #64748b; padding: 24px 16px; background: white; border-radius: 11px; border: 1.5px dashed #cbd5e1; margin-top: 2px;">
|
||||||
<span style="font-size: 2.2rem; display: block; margin-bottom: 8px;">🥪</span>
|
<span style="font-size: 1.6rem; display: block; margin-bottom: 6px;">🥪</span>
|
||||||
<strong style="color: #334155; font-size: 0.95rem; display: block;">No hay pre-órdenes ${filterNames[currentPreOrderFilter] || 'pendientes'}</strong>
|
<strong style="color: #334155; font-size: 0.88rem; display: block;">No hay pre-órdenes ${filterNames[currentPreOrderFilter] || 'pendientes'}</strong>
|
||||||
<p style="font-size: 0.8rem; margin: 4px 0 0 0; color: #94a3b8;">Las órdenes programadas para este horario aparecerán aquí automáticamente.</p>
|
<p style="font-size: 0.75rem; margin: 3px 0 0 0; color: #94a3b8;">Las órdenes programadas para este horario aparecerán aquí automáticamente.</p>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
return;
|
return;
|
||||||
@@ -1531,29 +1531,29 @@ function renderPreOrdersList() {
|
|||||||
const isDelivered = ord.estado === 'entregado';
|
const isDelivered = ord.estado === 'entregado';
|
||||||
|
|
||||||
return `
|
return `
|
||||||
<div class="pos-preorder-card" style="border-left: 6px solid ${isCanceled ? '#ef4444' : badge.border}; ${isCanceled ? 'opacity: 0.94; background: #fffbfa;' : ''}">
|
<div class="pos-preorder-card" style="border-left: 4px solid ${isCanceled ? '#ef4444' : badge.border}; ${isCanceled ? 'opacity: 0.94; background: #fffbfa;' : ''}">
|
||||||
<!-- Banner Superior de Horario Programado o Estado -->
|
<!-- Banner Superior de Horario Programado o Estado -->
|
||||||
<div class="pos-preorder-badge-banner" style="background: ${isCanceled ? '#fef2f2' : badge.bg}; border: 1.5px solid ${isCanceled ? '#fecaca' : badge.badgeBorder}; color: ${isCanceled ? '#991b1b' : badge.text};">
|
<div class="pos-preorder-badge-banner" style="background: ${isCanceled ? '#fef2f2' : badge.bg}; border: 1px solid ${isCanceled ? '#fca5a5' : badge.badgeBorder}; color: ${isCanceled ? '#991b1b' : badge.text};">
|
||||||
<div style="display: flex; align-items: center; gap: 8px;">
|
<div style="display: flex; align-items: center; gap: 6px;">
|
||||||
<span style="font-size: 1.3rem;">${isCanceled ? '🚫' : badge.icon}</span>
|
<span style="font-size: 1.05rem;">${isCanceled ? '🚫' : badge.icon}</span>
|
||||||
<div>
|
<div>
|
||||||
<span style="font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.85; display: block; font-weight: 800;">${isCanceled ? 'ESTADO:' : 'ALISTAR PARA:'}</span>
|
<span style="font-size: 0.60rem; text-transform: uppercase; letter-spacing: 0.4px; opacity: 0.85; display: block; font-weight: 800; line-height: 1;">${isCanceled ? 'ESTADO:' : 'ALISTAR PARA:'}</span>
|
||||||
<strong style="font-size: 0.96rem; letter-spacing: -0.2px;">${isCanceled ? 'Pre-orden Cancelada (No Retirada)' : badge.full}</strong>
|
<strong style="font-size: 0.80rem; letter-spacing: -0.1px; line-height: 1.2;">${isCanceled ? 'Pre-orden Cancelada (No Retirada)' : badge.full}</strong>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex; align-items: center; gap: 6px;">
|
<div style="display: flex; align-items: center; gap: 5px;">
|
||||||
${isCanceled
|
${isCanceled
|
||||||
? '<span class="saas-status-badge" style="padding: 4px 10px; background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; font-weight: 800;"><span class="saas-dot" style="background: #ef4444;"></span>Cancelada</span>'
|
? '<span class="saas-status-badge" style="padding: 2px 7px; font-size: 0.68rem; background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; font-weight: 800;"><span class="saas-dot" style="background: #ef4444; width: 5px; height: 5px;"></span>Cancelada</span>'
|
||||||
: isDelivered
|
: isDelivered
|
||||||
? '<span class="saas-status-badge saas-status-active" style="padding: 4px 10px; font-weight: 800;"><span class="saas-dot"></span>Entregado</span>'
|
? '<span class="saas-status-badge saas-status-active" style="padding: 2px 7px; font-size: 0.68rem; font-weight: 800;"><span class="saas-dot" style="width: 5px; height: 5px;"></span>Entregado</span>'
|
||||||
: '<span class="saas-status-badge saas-status-pending" style="padding: 4px 10px; background: #fef08a; color: #854d0e; border: 1px solid #fde047; font-weight: 800;"><span class="saas-dot" style="background: #eab308;"></span>Pendiente Alistar</span>'
|
: '<span class="saas-status-badge saas-status-pending" style="padding: 2px 7px; font-size: 0.68rem; background: #fef08a; color: #854d0e; border: 1px solid #fde047; font-weight: 800;"><span class="saas-dot" style="background: #eab308; width: 5px; height: 5px;"></span>Pendiente</span>'
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pos-preorder-header" style="margin-top: 2px;">
|
<div class="pos-preorder-header">
|
||||||
<div class="pos-preorder-student">
|
<div class="pos-preorder-student">
|
||||||
<div class="pos-preorder-avatar" style="display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.9rem; background: ${isCanceled ? '#94a3b8' : 'linear-gradient(135deg, #0284c7, #0369a1)'}; color: #ffffff;">
|
<div class="pos-preorder-avatar" style="display: flex; align-items: center; justify-content: center; font-weight: 900; background: ${isCanceled ? '#94a3b8' : 'linear-gradient(135deg, #0284c7, #0369a1)'}; color: #ffffff;">
|
||||||
${getStudentInitials(ord.estudiante_nombre)}
|
${getStudentInitials(ord.estudiante_nombre)}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -1561,7 +1561,7 @@ function renderPreOrdersList() {
|
|||||||
<strong class="pos-preorder-name" style="${isCanceled ? 'color: #475569;' : ''}">${ord.estudiante_nombre}</strong>
|
<strong class="pos-preorder-name" style="${isCanceled ? 'color: #475569;' : ''}">${ord.estudiante_nombre}</strong>
|
||||||
<span class="pos-preorder-grade">${ord.grado} • ${ord.seccion}</span>
|
<span class="pos-preorder-grade">${ord.grado} • ${ord.seccion}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="pos-preorder-ticket-info" style="display: flex; align-items: center; gap: 6px; flex-wrap: wrap;">
|
<div class="pos-preorder-ticket-info" style="display: flex; align-items: center; gap: 5px; flex-wrap: wrap;">
|
||||||
<span>Ticket: <strong>${ord.codigo_orden}</strong></span>
|
<span>Ticket: <strong>${ord.codigo_orden}</strong></span>
|
||||||
<span>•</span>
|
<span>•</span>
|
||||||
<span>Pedido: ${hora}</span>
|
<span>Pedido: ${hora}</span>
|
||||||
@@ -1573,41 +1573,41 @@ function renderPreOrdersList() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
${ord.observaciones ? `
|
${ord.observaciones ? `
|
||||||
<div style="background: ${isCanceled ? '#fee2e2' : '#f8fafc'}; border: 1px solid ${isCanceled ? '#fca5a5' : '#e2e8f0'}; color: ${isCanceled ? '#991b1b' : '#475569'}; padding: 6px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 700;">
|
<div style="background: ${isCanceled ? '#fee2e2' : '#f8fafc'}; border: 1px solid ${isCanceled ? '#fca5a5' : '#e2e8f0'}; color: ${isCanceled ? '#991b1b' : '#475569'}; padding: 4px 8px; border-radius: 6px; font-size: 0.70rem; font-weight: 700; line-height: 1.25;">
|
||||||
ℹ️ ${ord.observaciones}
|
ℹ️ ${ord.observaciones}
|
||||||
</div>
|
</div>
|
||||||
` : (ord.notas ? `
|
` : (ord.notas ? `
|
||||||
<div style="background: #fef3c7; border: 1px solid #fde68a; color: #92400e; padding: 6px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 700;">
|
<div style="background: #fef3c7; border: 1px solid #fde68a; color: #92400e; padding: 4px 8px; border-radius: 6px; font-size: 0.70rem; font-weight: 700; line-height: 1.25;">
|
||||||
📝 Nota del pedido: ${ord.notas}
|
📝 Nota del pedido: ${ord.notas}
|
||||||
</div>
|
</div>
|
||||||
` : '')}
|
` : '')}
|
||||||
|
|
||||||
<div class="pos-preorder-items-box" style="display: flex; align-items: center; gap: 8px;">
|
<div class="pos-preorder-items-box">
|
||||||
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="${isCanceled ? '#94a3b8' : '#0284c7'}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="flex-shrink: 0;"><path d="m7.5 4.27 9 5.15"/><path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"/><path d="m3.3 7 8.7 5 8.7-5"/><path d="M12 22V12"/></svg>
|
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="${isCanceled ? '#94a3b8' : '#0284c7'}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="flex-shrink: 0;"><path d="m7.5 4.27 9 5.15"/><path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"/><path d="m3.3 7 8.7 5 8.7-5"/><path d="M12 22V12"/></svg>
|
||||||
<span style="flex: 1; word-break: break-word; ${isCanceled ? 'color: #64748b; text-decoration: line-through;' : ''}">${itemsList}</span>
|
<span style="flex: 1; word-break: break-word; ${isCanceled ? 'color: #64748b; text-decoration: line-through;' : ''}">${itemsList}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pos-preorder-footer">
|
<div class="pos-preorder-footer">
|
||||||
<div class="pos-preorder-total">
|
<div class="pos-preorder-total">
|
||||||
<span class="pos-preorder-total-label">${isCanceled ? 'Monto Liberado al Alumno:' : (isDelivered ? 'Total Cobrado:' : 'Total a Cobrar (Monto Flotante):')}</span>
|
<span class="pos-preorder-total-label">${isCanceled ? 'Monto Liberado:' : (isDelivered ? 'Total Cobrado:' : 'Total a Cobrar (Flotante):')}</span>
|
||||||
<strong class="pos-preorder-total-val" style="${isCanceled ? 'color: #10b981;' : ''}">₡${ord.total_colones.toLocaleString('es-CR')}</strong>
|
<strong class="pos-preorder-total-val" style="${isCanceled ? 'color: #10b981;' : ''}">₡${ord.total_colones.toLocaleString('es-CR')}</strong>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
${isCanceled ? `
|
${isCanceled ? `
|
||||||
<span class="saas-status-badge" style="padding: 6px 12px; font-size: 0.8rem; background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; font-weight: 800;">
|
<span class="saas-status-badge" style="padding: 2px 8px; font-size: 0.70rem; background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; font-weight: 800; border-radius: 6px;">
|
||||||
Saldo devuelto al disponible
|
Saldo devuelto al disponible
|
||||||
</span>
|
</span>
|
||||||
` : (isDelivered ? `
|
` : (isDelivered ? `
|
||||||
<span class="saas-status-badge saas-status-active" style="padding: 6px 12px; font-size: 0.8rem;">
|
<span class="saas-status-badge saas-status-active" style="padding: 2px 8px; font-size: 0.70rem; border-radius: 6px;">
|
||||||
<span class="saas-dot"></span>Cobrado y Entregado
|
<span class="saas-dot" style="width: 5px; height: 5px;"></span>Cobrado y Entregado
|
||||||
</span>
|
</span>
|
||||||
` : `
|
` : `
|
||||||
<div style="display: flex; gap: 6px; align-items: center;">
|
<div style="display: flex; gap: 5px; align-items: center;">
|
||||||
<button onclick="updateOrderStatus(${ord.id}, 'entregado')" class="btn-saas pos-btn-entregar" title="Cobrar y entregar pedido al estudiante">
|
<button onclick="updateOrderStatus(${ord.id}, 'entregado')" class="btn-saas pos-btn-entregar" title="Cobrar y entregar pedido al estudiante">
|
||||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
|
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
|
||||||
<span>Cobrar y Entregar</span>
|
<span>Cobrar y Entregar</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" onclick="cancelarPreordenManual(${ord.id})" class="btn-saas" style="padding: 6px 10px; font-size: 0.76rem; font-weight: 700; color: #dc2626; background: #fef2f2; border: 1.5px solid #fecaca; border-radius: 8px; cursor: pointer;" title="Cancelar pre-orden y liberar saldo flotante al estudiante">
|
<button type="button" onclick="cancelarPreordenManual(${ord.id})" class="btn-saas" style="padding: 4px 8px; font-size: 0.70rem; font-weight: 700; color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; cursor: pointer;" title="Cancelar pre-orden y liberar saldo flotante al estudiante">
|
||||||
✕ Cancelar
|
✕ Cancelar
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+13
-13
@@ -5,7 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>SiboPay POS - Terminal de Mostrador y Despacho</title>
|
<title>SiboPay POS - Terminal de Mostrador y Despacho</title>
|
||||||
<link rel="icon" type="image/png" href="/img/sibopay-emblem.png">
|
<link rel="icon" type="image/png" href="/img/sibopay-emblem.png">
|
||||||
<link rel="stylesheet" href="/css/styles.css?v=10.7">
|
<link rel="stylesheet" href="/css/styles.css?v=13.3">
|
||||||
<style>
|
<style>
|
||||||
/* Estilos específicos de terminal de alta velocidad */
|
/* Estilos específicos de terminal de alta velocidad */
|
||||||
.student-badge-scanned {
|
.student-badge-scanned {
|
||||||
@@ -233,21 +233,21 @@
|
|||||||
</div>
|
</div>
|
||||||
<p style="font-size: 0.78rem; color: #64748b; margin: 3px 0 0 0;">Los estudiantes con pre-orden retiran en segundos escaneando su carné aquí.</p>
|
<p style="font-size: 0.78rem; color: #64748b; margin: 3px 0 0 0;">Los estudiantes con pre-orden retiran en segundos escaneando su carné aquí.</p>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex; gap: 8px; align-items: center; flex-wrap: wrap;">
|
<div style="display: flex; gap: 6px; align-items: center; flex-wrap: wrap;">
|
||||||
<button onclick="openPreOrderScanModal()" class="btn-saas btn-saas-primary" style="height: 36px; padding: 0 14px;">
|
<button onclick="openPreOrderScanModal()" class="btn-saas btn-saas-primary" style="height: 32px; padding: 0 12px; font-size: 0.76rem; border-radius: 8px;">
|
||||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>
|
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>
|
||||||
<span>Escanear QR para Entregar</span>
|
<span>Escanear QR</span>
|
||||||
</button>
|
</button>
|
||||||
<button onclick="loadPreOrders()" class="btn-saas btn-saas-outline" style="height: 36px; padding: 0 12px;">
|
<button onclick="loadPreOrders()" class="btn-saas btn-saas-outline" style="height: 32px; padding: 0 10px; font-size: 0.76rem; border-radius: 8px;">
|
||||||
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M3 21v-5h5"/></svg>
|
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M3 21v-5h5"/></svg>
|
||||||
<span>Refrescar</span>
|
<span>Refrescar</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pos-preorder-filter-bar" style="display: flex; gap: 8px; flex-wrap: wrap; align-items: center;">
|
<div class="pos-preorder-filter-bar">
|
||||||
<button type="button" class="pos-filter-pill active" id="filterPillTodos" onclick="filterPreOrdersByMomento('todos')">
|
<button type="button" class="pos-filter-pill active" id="filterPillTodos" onclick="filterPreOrdersByMomento('todos')">
|
||||||
<span>📋 Pendientes Activas</span>
|
<span>📋 Activas</span>
|
||||||
<span class="pos-pill-count" id="countFilterTodos">0</span>
|
<span class="pos-pill-count" id="countFilterTodos">0</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="pos-filter-pill" id="filterPillRecreo_1" onclick="filterPreOrdersByMomento('recreo_1')">
|
<button type="button" class="pos-filter-pill" id="filterPillRecreo_1" onclick="filterPreOrdersByMomento('recreo_1')">
|
||||||
@@ -262,13 +262,13 @@
|
|||||||
<span>⏰ 2do Recreo (1:45 PM)</span>
|
<span>⏰ 2do Recreo (1:45 PM)</span>
|
||||||
<span class="pos-pill-count" id="countFilterRecreo2">0</span>
|
<span class="pos-pill-count" id="countFilterRecreo2">0</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="pos-filter-pill" id="filterPillCanceladas" onclick="filterPreOrdersByMomento('canceladas')" style="margin-left: auto; border: 1.5px solid #fecaca; color: #991b1b; background: #fff1f2;" title="Ver pre-órdenes no retiradas que fueron canceladas y su dinero liberado">
|
<button type="button" class="pos-filter-pill pos-filter-pill-canceladas" id="filterPillCanceladas" onclick="filterPreOrdersByMomento('canceladas')" title="Ver pre-órdenes no retiradas que fueron canceladas y su dinero liberado">
|
||||||
<span>🚫 Canceladas</span>
|
<span>🚫 Canceladas</span>
|
||||||
<span class="pos-pill-count" id="countFilterCanceladas" style="background: #fee2e2; color: #991b1b; font-weight: 800;">0</span>
|
<span class="pos-pill-count" id="countFilterCanceladas">0</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="preOrdersList" style="display: flex; flex-direction: column; gap: 12px;">
|
<div id="preOrdersList" style="display: flex; flex-direction: column; gap: 8px;">
|
||||||
<!-- Lista de pre-órdenes -->
|
<!-- Lista de pre-órdenes -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -585,6 +585,6 @@
|
|||||||
<script src="/js/sounds.js?v=8.6"></script>
|
<script src="/js/sounds.js?v=8.6"></script>
|
||||||
<script src="/js/jsQR.js"></script>
|
<script src="/js/jsQR.js"></script>
|
||||||
<script src="/js/food-icons.js?v=1.1"></script>
|
<script src="/js/food-icons.js?v=1.1"></script>
|
||||||
<script src="/js/pos.js?v=13.2"></script>
|
<script src="/js/pos.js?v=13.3"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
// SiboPay PWA Service Worker v13.2 - Alta Velocidad & Despacho
|
// SiboPay PWA Service Worker v13.3 - Alta Velocidad & Despacho
|
||||||
const CACHE_NAME = 'sibopay-v13.2';
|
const CACHE_NAME = 'sibopay-v13.3';
|
||||||
const STATIC_ASSETS = [
|
const STATIC_ASSETS = [
|
||||||
'/',
|
'/',
|
||||||
'/index.html',
|
'/index.html',
|
||||||
|
|||||||
Reference in New Issue
Block a user