@@ -179,6 +179,12 @@
document.getElementById('rutInput').addEventListener('input', function(e) {
let value = this.value.replace(/[^0-9kK]/g, '').toUpperCase();
+
+ // Bloquear el largo interno a 9 caracteres (8 cuerpo + 1 dv)
+ if (value.length > 9) {
+ value = value.slice(0, 9);
+ }
+
if (value.length > 1) {
let body = value.slice(0, -1);
let dv = value.slice(-1);
diff --git a/templates/macros/navbar.html b/templates/macros/navbar.html
index eeb7425..e93ba40 100644
--- a/templates/macros/navbar.html
+++ b/templates/macros/navbar.html
@@ -3,7 +3,7 @@
-
+
KSNE
@@ -70,4 +70,54 @@
{% endif %}