feat: saldo flotante en preordenes, bloqueo de QR por limite diario, cierre de caja y terminos sin canje en efectivo
This commit is contained in:
+119
-11
@@ -728,9 +728,32 @@ function updateStudentUI() {
|
||||
applyCardTheme(getSavedCardTheme());
|
||||
}
|
||||
|
||||
// Saldo en colones
|
||||
document.getElementById('walletBalance').textContent = `₡${currentStudent.saldo_colones.toLocaleString('es-CR')}`;
|
||||
document.getElementById('balanceLabel').textContent = 'SALDO DISPONIBLE';
|
||||
// Saldo total, retenido y disponible para gastar
|
||||
const saldoTotal = (typeof currentStudent.saldo_total === 'number')
|
||||
? currentStudent.saldo_total
|
||||
: (currentStudent.saldo_colones || 0);
|
||||
const saldoRetenido = currentStudent.saldo_retenido || 0;
|
||||
const saldoDisponible = (typeof currentStudent.saldo_disponible === 'number')
|
||||
? currentStudent.saldo_disponible
|
||||
: Math.max(0, saldoTotal - saldoRetenido);
|
||||
|
||||
document.getElementById('walletBalance').textContent = `₡${saldoDisponible.toLocaleString('es-CR')}`;
|
||||
document.getElementById('balanceLabel').textContent = saldoRetenido > 0 ? 'DISPONIBLE PARA GASTAR' : 'SALDO DISPONIBLE';
|
||||
|
||||
// Desglose transparente cuando hay monto retenido en pre-órdenes
|
||||
const breakdownBox = document.getElementById('breakdownSaldoBox');
|
||||
if (breakdownBox) {
|
||||
if (saldoRetenido > 0) {
|
||||
breakdownBox.style.display = 'block';
|
||||
const lblTot = document.getElementById('lblSaldoTotalBreakdown');
|
||||
if (lblTot) lblTot.textContent = `₡${saldoTotal.toLocaleString('es-CR')}`;
|
||||
const lblRet = document.getElementById('lblSaldoRetenidoBreakdown');
|
||||
if (lblRet) lblRet.textContent = `₡${saldoRetenido.toLocaleString('es-CR')}`;
|
||||
} else {
|
||||
breakdownBox.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
const coin = document.getElementById('kidsCoinIcon');
|
||||
if (coin) coin.style.display = 'none';
|
||||
const qrBtn = document.getElementById('qrBtnText');
|
||||
@@ -743,11 +766,30 @@ function updateStudentUI() {
|
||||
const gastadoHoy = currentStudent.gastado_hoy || 0;
|
||||
const disponibleHoy = (typeof currentStudent.disponible_hoy === 'number')
|
||||
? currentStudent.disponible_hoy
|
||||
: Math.max(0, limiteDiario - gastadoHoy);
|
||||
: Math.max(0, limiteDiario - gastadoHoy - saldoRetenido);
|
||||
|
||||
document.getElementById('dailyLimitText').textContent = `₡${limiteDiario.toLocaleString('es-CR')}`;
|
||||
document.getElementById('dailyAvailableText').textContent = `Disponible hoy: ₡${disponibleHoy.toLocaleString('es-CR')}`;
|
||||
|
||||
const tienePreordenes = Boolean(currentStudent.tiene_preordenes_pendientes || (currentStudent.preordenes_pendientes_count > 0));
|
||||
const qrBloqueadoPorLimite = disponibleHoy <= 0 && !tienePreordenes;
|
||||
|
||||
// Banner informativo si alcanzó su límite diario
|
||||
const bannerLimitBlocked = document.getElementById('bannerQrDailyLimitBlocked');
|
||||
if (bannerLimitBlocked) {
|
||||
if (disponibleHoy <= 0) {
|
||||
bannerLimitBlocked.style.display = 'flex';
|
||||
const msgEl = document.getElementById('bannerQrDailyLimitMsg');
|
||||
if (msgEl) {
|
||||
msgEl.textContent = tienePreordenes
|
||||
? 'Has alcanzado tu límite diario de consumo. Tu código QR solo podrá ser escaneado en la soda para retirar tu Pre-Orden.'
|
||||
: `Has alcanzado tu límite diario de ₡${limiteDiario.toLocaleString('es-CR')} asignado por tus padres. La generación del código QR para compras está bloqueada hasta mañana.`;
|
||||
}
|
||||
} else {
|
||||
bannerLimitBlocked.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
// Alerta de Tarjeta Bloqueada
|
||||
const bannerBlocked = document.getElementById('bannerCardBlocked');
|
||||
if (bannerBlocked) {
|
||||
@@ -757,12 +799,29 @@ function updateStudentUI() {
|
||||
if (currentStudent.tarjeta_bloqueada) {
|
||||
btn.style.opacity = '0.45';
|
||||
btn.style.pointerEvents = 'none';
|
||||
} else if (qrBloqueadoPorLimite) {
|
||||
btn.style.opacity = '0.55';
|
||||
btn.style.filter = 'grayscale(0.85)';
|
||||
btn.title = 'Límite diario alcanzado: no puedes generar QR para compras';
|
||||
btn.style.pointerEvents = 'auto'; // Permitir clic para mostrar el mensaje explicativo
|
||||
} else {
|
||||
btn.style.opacity = '1';
|
||||
btn.style.filter = 'none';
|
||||
btn.style.pointerEvents = 'auto';
|
||||
}
|
||||
});
|
||||
|
||||
const pwaNavQr = document.getElementById('pwaNavQr');
|
||||
if (pwaNavQr) {
|
||||
if (qrBloqueadoPorLimite) {
|
||||
pwaNavQr.style.opacity = '0.55';
|
||||
pwaNavQr.title = 'Límite diario alcanzado';
|
||||
} else {
|
||||
pwaNavQr.style.opacity = '1';
|
||||
pwaNavQr.title = '';
|
||||
}
|
||||
}
|
||||
|
||||
// Gray-out del botón Transferir cuando los padres lo desactivan
|
||||
const btnCardTransfer = document.getElementById('btnCardTransfer');
|
||||
const pwaNavTransfer = document.getElementById('pwaNavTransfer');
|
||||
@@ -1362,7 +1421,7 @@ async function submitPreOrder() {
|
||||
|
||||
if (window.sounds) window.sounds.playSuccess();
|
||||
|
||||
alert(`¡Pre-Orden confirmada con éxito!\n\n📋 Código de retiro: ${data.codigo_orden}\n⏰ Horario: ${momentoBadge.full}\n💰 Total rebajado: ₡${data.total_colones.toLocaleString('es-CR')}\n\nPodrás retirarla en la soda durante el recreo programado presentando tu carné QR.`);
|
||||
alert(`¡Pre-Orden confirmada con éxito!\n\n📋 Código de retiro: ${data.codigo_orden}\n⏰ Horario: ${momentoBadge.full}\n🔒 Monto reservado (flotante): ₡${data.total_colones.toLocaleString('es-CR')}\n\nNota: Este saldo queda retenido y se rebajará formalmente en la soda al retirar tu pedido presentando tu carné QR.`);
|
||||
|
||||
// Limpiar carrito y recargar datos del estudiante o padre
|
||||
cart = [];
|
||||
@@ -1383,7 +1442,7 @@ async function submitPreOrder() {
|
||||
alert(`No se pudo procesar: ${err.message}`);
|
||||
} finally {
|
||||
btn.disabled = false;
|
||||
btn.innerHTML = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg> <span>Confirmar y Pagar Pre-Orden</span>';
|
||||
btn.innerHTML = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg> <span>Confirmar Pre-Orden (Monto Flotante)</span>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1392,6 +1451,31 @@ async function submitPreOrder() {
|
||||
// ==========================================
|
||||
|
||||
function openQrModal() {
|
||||
if (currentStudent) {
|
||||
const limiteDiario = currentStudent.limite_diario_colones || 0;
|
||||
const gastadoHoy = currentStudent.gastado_hoy || 0;
|
||||
const saldoRetenido = currentStudent.saldo_retenido || 0;
|
||||
const disponibleHoy = (typeof currentStudent.disponible_hoy === 'number')
|
||||
? currentStudent.disponible_hoy
|
||||
: Math.max(0, limiteDiario - gastadoHoy - saldoRetenido);
|
||||
|
||||
const tienePreordenes = Boolean(currentStudent.tiene_preordenes_pendientes || (currentStudent.preordenes_pendientes_count > 0));
|
||||
|
||||
// Si superó su límite diario y NO tiene pre-órdenes pendientes, bloquear apertura
|
||||
if (disponibleHoy <= 0 && !tienePreordenes) {
|
||||
if (window.sounds) window.sounds.playError();
|
||||
alert(`⛔ Límite Diario Alcanzado\n\nHas consumido tu límite máximo diario de ₡${limiteDiario.toLocaleString('es-CR')} establecido por tus padres.\n\nNo es posible generar códigos QR para nuevas compras hasta la siguiente jornada escolar.`);
|
||||
resetPwaNavActive();
|
||||
return;
|
||||
}
|
||||
|
||||
// Si tiene pre-órdenes pendientes pero agotó el límite diario de mostrador, mostrar aviso informativo
|
||||
const preBanner = document.getElementById('qrPreorderOnlyBanner');
|
||||
if (preBanner) {
|
||||
preBanner.style.display = (disponibleHoy <= 0 && tienePreordenes) ? 'block' : 'none';
|
||||
}
|
||||
}
|
||||
|
||||
if (window.sounds) window.sounds.playScanChirp();
|
||||
document.getElementById('modalQr').style.display = 'flex';
|
||||
}
|
||||
@@ -2717,10 +2801,13 @@ function renderParentDashboardView() {
|
||||
</div>
|
||||
${isBlocked ? '<span style="font-size: 0.65rem; background: #fee2e2; color: #dc2626; padding: 2px 6px; border-radius: 4px; font-weight: 800; flex-shrink: 0;">BLOQUEADO</span>' : ''}
|
||||
</div>
|
||||
<div style="display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 2px; width: 100%;">
|
||||
<span style="font-size: 0.74rem; color: var(--text-muted); font-weight: 700;">Saldo:</span>
|
||||
<div style="display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 2px; width: 100%;">
|
||||
<div>
|
||||
<span style="font-size: 0.72rem; color: var(--text-muted); font-weight: 700; display: block;">Disponible:</span>
|
||||
${(h.saldo_retenido || 0) > 0 ? `<span style="font-size: 0.65rem; color: #b45309; font-weight: 800;">(₡${h.saldo_retenido.toLocaleString('es-CR')} retenido)</span>` : ''}
|
||||
</div>
|
||||
<strong style="font-size: 1.05rem; color: #0284c7; font-weight: 900; letter-spacing: -0.3px;">
|
||||
₡${(h.saldo_colones || 0).toLocaleString('es-CR')}
|
||||
₡${((typeof h.saldo_disponible === 'number') ? h.saldo_disponible : (h.saldo_colones - (h.saldo_retenido || 0))).toLocaleString('es-CR')}
|
||||
</strong>
|
||||
</div>
|
||||
</div>
|
||||
@@ -2991,7 +3078,21 @@ function renderActiveChildDetails(child) {
|
||||
}
|
||||
if (name) name.textContent = child.nombre_completo;
|
||||
if (meta) meta.textContent = `${child.grado} - Sección ${child.seccion} • Cód: ${child.codigo_estudiante}`;
|
||||
if (balance) balance.textContent = `₡${(child.saldo_colones || 0).toLocaleString('es-CR')}`;
|
||||
const saldoTotal = (typeof child.saldo_total === 'number') ? child.saldo_total : (child.saldo_colones || 0);
|
||||
const saldoRetenido = child.saldo_retenido || 0;
|
||||
const saldoDisponible = (typeof child.saldo_disponible === 'number') ? child.saldo_disponible : Math.max(0, saldoTotal - saldoRetenido);
|
||||
|
||||
if (balance) balance.textContent = `₡${saldoDisponible.toLocaleString('es-CR')}`;
|
||||
|
||||
const retenidoNote = document.getElementById('parentActiveChildRetenidoNote');
|
||||
if (retenidoNote) {
|
||||
if (saldoRetenido > 0) {
|
||||
retenidoNote.style.display = 'block';
|
||||
retenidoNote.innerHTML = `🔒 Saldo total: <strong>₡${saldoTotal.toLocaleString('es-CR')}</strong> | Retenido en pre-órdenes: <strong style="color: #92400e;">₡${saldoRetenido.toLocaleString('es-CR')}</strong>`;
|
||||
} else {
|
||||
retenidoNote.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
const currentLimit = child.limite_diario_colones || 3000;
|
||||
if (lblLimit) lblLimit.textContent = `₡${currentLimit.toLocaleString('es-CR')} / día`;
|
||||
@@ -3011,7 +3112,14 @@ function renderActiveChildDetails(child) {
|
||||
const summaryName = document.getElementById('parentSummaryChildName');
|
||||
const summaryAllergies = document.getElementById('parentSummaryAllergyStatus');
|
||||
|
||||
if (summaryBalance) summaryBalance.textContent = `₡${(child.saldo_colones || 0).toLocaleString('es-CR')}`;
|
||||
if (summaryBalance) summaryBalance.textContent = `₡${saldoDisponible.toLocaleString('es-CR')}`;
|
||||
const summarySub = document.getElementById('parentSummaryRetenidoSubtitle');
|
||||
if (summarySub) {
|
||||
summarySub.textContent = saldoRetenido > 0
|
||||
? `● ₡${saldoRetenido.toLocaleString('es-CR')} retenido en pre-órdenes`
|
||||
: '● Disponible para compras';
|
||||
summarySub.style.color = saldoRetenido > 0 ? '#b45309' : '#10b981';
|
||||
}
|
||||
if (summaryLimit) summaryLimit.textContent = `₡${currentLimit.toLocaleString('es-CR')}`;
|
||||
if (summaryName) summaryName.textContent = child.nombre_completo || 'Estudiante';
|
||||
|
||||
|
||||
+153
-8
@@ -1523,18 +1523,23 @@ function renderPreOrdersList() {
|
||||
|
||||
<div class="pos-preorder-footer">
|
||||
<div class="pos-preorder-total">
|
||||
<span class="pos-preorder-total-label">Total Cobrado:</span>
|
||||
<span class="pos-preorder-total-label">${ord.estado === 'entregado' ? 'Total Cobrado:' : 'Total a Cobrar (Monto Flotante):'}</span>
|
||||
<strong class="pos-preorder-total-val">₡${ord.total_colones.toLocaleString('es-CR')}</strong>
|
||||
</div>
|
||||
<div>
|
||||
${ord.estado !== 'entregado' ? `
|
||||
<button onclick="updateOrderStatus(${ord.id}, 'entregado')" class="btn-saas pos-btn-entregar" title="Marcar como entregado 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>
|
||||
<span>Entregar Pedido</span>
|
||||
</button>
|
||||
<div style="display: flex; gap: 6px; align-items: center;">
|
||||
<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>
|
||||
<span>Cobrar y Entregar</span>
|
||||
</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">
|
||||
✕ Cancelar
|
||||
</button>
|
||||
</div>
|
||||
` : `
|
||||
<span class="saas-status-badge saas-status-active" style="padding: 6px 12px; font-size: 0.8rem;">
|
||||
<span class="saas-dot"></span>Despachado en Soda
|
||||
<span class="saas-dot"></span>Cobrado y Entregado
|
||||
</span>
|
||||
`}
|
||||
</div>
|
||||
@@ -1563,19 +1568,113 @@ async function loadPreOrders() {
|
||||
|
||||
async function updateOrderStatus(orderId, nuevoEstado) {
|
||||
try {
|
||||
let cajeroId = 6;
|
||||
const storedUser = localStorage.getItem('sibopay_user') || localStorage.getItem('recreopay_user');
|
||||
if (storedUser) {
|
||||
try {
|
||||
const u = JSON.parse(storedUser);
|
||||
if (u && u.id) cajeroId = u.id;
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
const res = await fetch(`/api/ordenes/${orderId}/estado`, {
|
||||
method: 'PUT',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ estado: nuevoEstado })
|
||||
body: JSON.stringify({ estado: nuevoEstado, cajero_id: cajeroId })
|
||||
});
|
||||
if (!res.ok) throw new Error('Error actualizando orden');
|
||||
const data = await res.json();
|
||||
if (!res.ok) {
|
||||
throw new Error(data.error || 'Error actualizando orden');
|
||||
}
|
||||
if (window.sounds) window.sounds.playCoin();
|
||||
loadPreOrders();
|
||||
loadCatalog();
|
||||
} catch (e) {
|
||||
alert(e.message);
|
||||
}
|
||||
}
|
||||
|
||||
// Cancelación manual de pre-orden desde mostrador (libera fondos y retorna inventario)
|
||||
async function cancelarPreordenManual(orderId) {
|
||||
const razon = prompt(
|
||||
"¿Deseas cancelar esta pre-orden?\n\nEl monto retenido se liberará de inmediato al disponible del estudiante y el producto volverá al inventario.\n\nMotivo de cancelación (opcional):",
|
||||
"Cancelada a solicitud de la soda / estudiante"
|
||||
);
|
||||
if (razon === null) return;
|
||||
|
||||
try {
|
||||
const res = await fetch(`/api/ordenes/${orderId}/estado`, {
|
||||
method: 'PUT',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ estado: 'cancelado', motivo: razon })
|
||||
});
|
||||
const data = await res.json();
|
||||
if (!res.ok) throw new Error(data.error || 'Error cancelando orden');
|
||||
if (window.sounds) window.sounds.playSuccess();
|
||||
await loadPreOrders();
|
||||
await loadCatalog();
|
||||
alert('✅ Pre-orden cancelada. El saldo flotante ha sido liberado al estudiante.');
|
||||
} catch (err) {
|
||||
alert('❌ ' + err.message);
|
||||
}
|
||||
}
|
||||
window.cancelarPreordenManual = cancelarPreordenManual;
|
||||
|
||||
// Cierre de Caja del Día: finaliza jornada y expira pre-órdenes no retiradas
|
||||
async function ejecutarCierreDeCaja() {
|
||||
const confirma = confirm(
|
||||
"¿Deseas realizar el Cierre de Caja del turno?\n\n" +
|
||||
"Esta acción:\n" +
|
||||
"• Finalizará la jornada de ventas de la soda.\n" +
|
||||
"• Cancelará todas las pre-órdenes pendientes no retiradas.\n" +
|
||||
"• Liberará de inmediato el saldo retenido devolviéndolo al disponible de los estudiantes.\n" +
|
||||
"• Restituirá el inventario de los productos reservados."
|
||||
);
|
||||
|
||||
if (!confirma) return;
|
||||
|
||||
try {
|
||||
let escuelaId = 1;
|
||||
const storedUser = localStorage.getItem('sibopay_user') || localStorage.getItem('recreopay_user');
|
||||
if (storedUser) {
|
||||
try {
|
||||
const u = JSON.parse(storedUser);
|
||||
if (u && u.escuela_id) escuelaId = u.escuela_id;
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
const res = await fetch('/api/pos/cierre-caja', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ escuela_id: escuelaId })
|
||||
});
|
||||
|
||||
const data = await res.json();
|
||||
if (!res.ok) {
|
||||
if (window.sounds) window.sounds.playError();
|
||||
throw new Error(data.error || 'Error al ejecutar el cierre de caja');
|
||||
}
|
||||
|
||||
if (window.sounds) window.sounds.playSuccess();
|
||||
await loadPreOrders();
|
||||
await loadCatalog();
|
||||
|
||||
const cantExp = data.ordenes_expiradas || 0;
|
||||
const montoLib = (data.monto_liberado_colones || 0).toLocaleString('es-CR');
|
||||
|
||||
alert(
|
||||
`🌙 CIERRE DE CAJA COMPLETADO CON ÉXITO\n\n` +
|
||||
`• Pre-órdenes no retiradas canceladas: ${cantExp}\n` +
|
||||
`• Monto liberado al disponible de alumnos: ₡${montoLib}\n\n` +
|
||||
`El turno ha sido liquidado correctamente.`
|
||||
);
|
||||
} catch (err) {
|
||||
console.error('Error en cierre de caja:', err);
|
||||
alert('❌ ' + err.message);
|
||||
}
|
||||
}
|
||||
window.ejecutarCierreDeCaja = ejecutarCierreDeCaja;
|
||||
|
||||
// Despacho Express en 3 segundos mediante escaneo de QR
|
||||
async function dispatchPreOrderExpress(qrToken) {
|
||||
try {
|
||||
@@ -1663,6 +1762,52 @@ function initSSE() {
|
||||
loadPreOrders();
|
||||
});
|
||||
|
||||
sseSource.addEventListener('preordenes_actualizadas', () => {
|
||||
loadPreOrders();
|
||||
});
|
||||
|
||||
sseSource.addEventListener('recargar_catalogo', () => {
|
||||
loadCatalog();
|
||||
});
|
||||
|
||||
sseSource.addEventListener('cierre_caja_realizado', (e) => {
|
||||
try {
|
||||
const res = JSON.parse(e.data);
|
||||
console.log('🌙 [POS] SSE cierre_caja_realizado:', res);
|
||||
loadPreOrders();
|
||||
loadCatalog();
|
||||
const count = res.count || 0;
|
||||
const monto = (res.liberadoColones || 0).toLocaleString('es-CR');
|
||||
showInAppNotification({
|
||||
title: '🌙 Cierre de Caja Realizado',
|
||||
message: count > 0
|
||||
? `Se cancelaron ${count} pre-orden(es) no retiradas y se liberaron ₡${monto} al disponible de los estudiantes.`
|
||||
: `Turno cerrado sin pre-órdenes pendientes por liberar.`,
|
||||
buttonText: 'Ver Pre-Órdenes'
|
||||
});
|
||||
} catch (err) {
|
||||
console.warn('Error en SSE cierre_caja_realizado:', err);
|
||||
}
|
||||
});
|
||||
|
||||
sseSource.addEventListener('preordenes_expiradas', (e) => {
|
||||
try {
|
||||
const res = JSON.parse(e.data);
|
||||
console.log('⏳ [POS] SSE preordenes_expiradas:', res);
|
||||
loadPreOrders();
|
||||
loadCatalog();
|
||||
if (res && res.count > 0) {
|
||||
showInAppNotification({
|
||||
title: '⏳ Pre-órdenes Expiradas',
|
||||
message: `Se expiraron ${res.count} pre-orden(es) pendientes por límite de horario y se liberaron ₡${(res.liberadoColones || 0).toLocaleString('es-CR')}.`,
|
||||
buttonText: 'Ver Pre-Órdenes'
|
||||
});
|
||||
}
|
||||
} catch (err) {
|
||||
console.warn('Error en SSE preordenes_expiradas:', err);
|
||||
}
|
||||
});
|
||||
|
||||
// Disparo recibido desde pistola remota (teléfono celular)
|
||||
sseSource.addEventListener('pistola_scan', async (e) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user