feat: escalabilidad de codigos a 5 digitos y soporte de prefijos multi-negocio

This commit is contained in:
unknown
2026-10-05 01:26:59 -06:00
parent 0840bf0217
commit cfc81a7e2d
3 changed files with 36 additions and 12 deletions
+6 -2
View File
@@ -2716,9 +2716,12 @@ async function submitNewStudent(event) {
const padre = document.getElementById('newEstPadre').value.trim();
const tel = document.getElementById('newEstTel').value.trim();
const tipoEl = document.getElementById('newEstTipo');
const prefijo = tipoEl ? tipoEl.value : 'EST';
const btn = document.getElementById('btnSubmitNewStudent');
btn.disabled = true;
btn.textContent = 'Creando alumno y carné...';
btn.textContent = 'Creando usuario y carné...';
try {
const res = await fetch('/api/admin/estudiantes', {
@@ -2733,7 +2736,8 @@ async function submitNewStudent(event) {
limite_diario_colones: limite,
alergias,
padre_nombre: padre,
padre_telefono: tel
padre_telefono: tel,
prefijo
})
});