diff --git a/proveedores.html b/proveedores.html index 415b092..5f93d62 100644 --- a/proveedores.html +++ b/proveedores.html @@ -399,6 +399,7 @@ const addr = raw['Dirección'] || raw['DOMICILIO'] || ""; const pop = raw['Población'] || raw['POBLACION-PROVINCIA'] || ""; const fullAddr = `${addr} ${pop}`.trim(); + const cp = raw['Código Postal'] || raw['C.P.'] || ""; const phone = (raw['Teléfono'] || raw['TELEFONOS'] || raw['TELEFONO'] || "").match(/[6789]\d{8}/)?.[0] || ""; let guildName = null; @@ -415,6 +416,7 @@ let bgClass = 'bg-white'; let isLocked = false; let lockedMsg = ''; + let showQuickQueueBtn = false; // Variable para saber si mostrar el botón rápido const autoStatus = (svc.automation_status || '').toLowerCase(); const sysStatus = (svc.status || '').toLowerCase(); @@ -441,6 +443,8 @@ } else if (autoStatus === 'failed') { bgClass = 'bg-red-50/40 border-red-200 hover:border-red-400'; isLocked = false; + // Si ha fallado, pero tiene gremio detectado, le damos la opción de reenviar a la bolsa rápidamente + if (rawGuildId) showQuickQueueBtn = true; badgeEstado = `
${fullAddr}
-