diff --git a/index2.html b/index2.html index 8cf4254..3c65d8d 100644 --- a/index2.html +++ b/index2.html @@ -1047,6 +1047,11 @@ compLogo = globalCompanyData.logo; } + // 🛑 FIX: Buscador inteligente de referencias (HomeServe, Multi, Manuales, etc.) + let numRef = raw["SERVICIO"] || raw["Expediente"] || raw["Referencia"] || raw["service_ref"]; + if (!numRef && srv.title && srv.title.includes('#')) numRef = srv.title.split('#')[1].trim(); + if (!numRef) numRef = srv.id; // Si falla todo, ponemos el ID interno + // Generación de la tarjeta Blanca let cardHtml = `