From b0cd569a9e9bd81a6dea1ee641e2a5337a49d483 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 6 Oct 2026 04:41:40 -0600 Subject: [PATCH] fix(admin): reemplazar robots por monogramas de iniciales en movimientos, preordenes y solicitudes SINPE --- public/js/app.js | 4 +++- public/js/pos.js | 8 ++++++-- server/server.js | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index 63dde88..0b617cd 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -4336,7 +4336,9 @@ function renderAdminMovimientos() {
- +
+ ${getStudentInitials(m.estudiante_nombre)} +
${m.estudiante_nombre} diff --git a/public/js/pos.js b/public/js/pos.js index 785afa4..04cf195 100644 --- a/public/js/pos.js +++ b/public/js/pos.js @@ -1256,7 +1256,9 @@ async function loadPreOrders() {
- Foto +
+ ${getStudentInitials(ord.estudiante_nombre)} +
${ord.estudiante_nombre} @@ -1711,7 +1713,9 @@ async function loadSinpeRequests() {
- Foto +
+ ${getStudentInitials(s.estudiante_nombre)} +
${s.estudiante_nombre}
diff --git a/server/server.js b/server/server.js index ad302f7..e4ab08a 100644 --- a/server/server.js +++ b/server/server.js @@ -1306,7 +1306,7 @@ app.post('/api/admin/estudiantes', (req, res) => { const saldo = parseInt(saldo_inicial, 10) || 0; const limite = parseInt(limite_diario_colones, 10) || 3000; const edadNum = parseInt(edad, 10) || 8; - const foto = `https://api.dicebear.com/7.x/bottts/svg?seed=${encodeURIComponent(primerNombre)}&backgroundColor=b6e3f4`; + const foto = null; const resEst = db.prepare(` INSERT INTO estudiantes