From f1366e5fd526cfc98472b217623a3b2a522ba5eb Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 4 Oct 2026 23:21:21 -0600 Subject: [PATCH] fix(ui): acomodar vista responsive en movimientos y reversiones con tarjeta estructurada --- public/index.html | 16 ++++----- public/js/app.js | 88 +++++++++++++++++++++++++++-------------------- 2 files changed, 58 insertions(+), 46 deletions(-) diff --git a/public/index.html b/public/index.html index 7d3334e..138e1ce 100644 --- a/public/index.html +++ b/public/index.html @@ -347,18 +347,18 @@
-
- - -
- +
@@ -1244,8 +1244,8 @@ - + - + diff --git a/public/js/app.js b/public/js/app.js index dccf1ea..5243272 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -3308,17 +3308,17 @@ function renderAdminMovimientos() { // Determinar badge de tipo let tipoBadge = ''; if (m.tipo === 'recarga_manual') { - tipoBadge = `💵 RECARGA EFECTIVO`; + tipoBadge = `💵 Recarga Efectivo`; } else if (m.tipo === 'recarga_sinpe') { - tipoBadge = `📲 RECARGA SINPE`; + tipoBadge = `📲 Recarga SINPE`; } else if (m.tipo === 'compra_mostrador' || m.tipo === 'preorden') { - tipoBadge = `🥪 COBRO SODA`; + tipoBadge = `🥪 Cobro Soda`; } else if (m.tipo === 'reversion_recarga') { - tipoBadge = `↩️ REVERSIÓN RECARGA`; + tipoBadge = `↩️ Reversión Recarga`; } else if (m.tipo === 'reembolso') { - tipoBadge = `↩️ REEMBOLSO COMPRA`; + tipoBadge = `↩️ Reembolso Compra`; } else { - tipoBadge = `${m.tipo.toUpperCase()}`; + tipoBadge = `${m.tipo.toUpperCase()}`; } // Formato de hora @@ -3341,71 +3341,83 @@ function renderAdminMovimientos() { let actionHtml = ''; if (isRevertida) { actionHtml = ` -
- +
+ ⛔ REVERTIDO -
- ${m.revertido_por_nombre ? `Por ${m.revertido_por_nombre}` : ''} -
+ ${m.revertido_por_nombre ? `(${m.revertido_por_nombre})` : ''}
`; } else if (isReversionOrRefund) { actionHtml = ` - + Ajuste `; } else if (!canRevertTime) { actionHtml = ` - `; } else { const cleanName = (m.estudiante_nombre || '').replace(/'/g, "\\'"); actionHtml = ` - `; } return ` -
- -
- -
-
- ${tipoBadge} - #${m.id} • ${fechaHoraStr} -
- +
+ + +
+
+ ${tipoBadge} + #${m.id} +
+ + 🕒 ${fechaHoraStr} + +
+ + +
+ +
+ ${m.estudiante_nombre} -
- ${m.codigo_estudiante} • ${m.grado || ''} ${m.seccion ? '- ' + m.seccion : ''} - ${m.codigo_orden ? `• Ticket: ${m.codigo_orden}` : ''} - ${m.descripcion ? `• ${m.descripcion}` : ''} +
+ ${m.codigo_estudiante} + ${(m.grado || m.seccion) ? `• ${m.grado || ''} ${m.seccion ? 'Sec. ' + m.seccion : ''}` : ''} + ${m.codigo_orden ? `Ticket: ${m.codigo_orden}` : ''}
+ ${m.descripcion ? ` +
+ 📝 ${m.descripcion} +
+ ` : ''}
- -
-
-
+ +
+
+ ${montoDisplay} -
-
- Saldo: ₡${(m.saldo_posterior || 0).toLocaleString('es-CR')} -
+ + + Saldo posterior: ₡${(m.saldo_posterior || 0).toLocaleString('es-CR')} +
-
+
${actionHtml}
+
`; }).join('');