diff --git a/client/client/routes.json b/client/client/routes.json
index 896ab0cad..de6bcb562 100644
--- a/client/client/routes.json
+++ b/client/client/routes.json
@@ -121,8 +121,7 @@
"menu": {
"description": "Credit",
"icon": "credit_card"
- },
- "acl": ["manager", "salesAssistant", "teamBoss", "teamManager"]
+ }
}, {
"url": "/create",
"state": "clientCard.credit.create",
diff --git a/client/client/src/address-create/address-create.html b/client/client/src/address-create/address-create.html
index 8f2cf1542..c1b5d7a3f 100644
--- a/client/client/src/address-create/address-create.html
+++ b/client/client/src/address-create/address-create.html
@@ -18,7 +18,7 @@
-
+
-
+
{
const dniLetterAscii = parseInt(dniLetterCountry.charCodeAt(0));
let dniValue = false;
switch (true) {
+ case (dni.length === 9 && !isNaN(dni)): // dni Portugal (9 digitos)
+ dniValue = true;
+ break;
case (dniLetterAscii >= 88 && dniLetterAscii <= 90): // X-Z
dniValue = getDniForeign(dniNumeric, dniLetter);
break;
@@ -81,7 +84,7 @@ module.exports = fi => {
case (dniLetterAscii === 73): // I
dniValue = getDniItaly(dniLetterCountry);
break;
- case (dniLetterAscii >= 48 && dniLetterAscii <= 57): // 0- 9
+ case (dni.length === 9 && dniLetterAscii >= 48 && dniLetterAscii <= 57): // 0- 9
dniValue = getDniSpain(dniNumeric, dniLetter);
break;
default: