From 08ac9fe3e34de5d2136bedc0578150d071d1c55b Mon Sep 17 00:00:00 2001 From: marsalva Date: Wed, 18 Mar 2026 22:18:11 +0000 Subject: [PATCH] Actualizar servicios.html --- servicios.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/servicios.html b/servicios.html index fba02d4..7e71e3f 100644 --- a/servicios.html +++ b/servicios.html @@ -625,7 +625,19 @@ const name = (raw["Nombre Cliente"] || raw["CLIENTE"] || "").toLowerCase(); const ref = (s.service_ref || "").toLowerCase(); - const matchesSearch = searchTerm === "" || name.includes(searchTerm) || ref.includes(searchTerm); + const addr = (raw["Dirección"] || raw["DOMICILIO"] || "").toLowerCase(); + const pop = (raw["Población"] || raw["POBLACION-PROVINCIA"] || "").toLowerCase(); + const phone = (raw["Teléfono"] || raw["TELEFONO"] || raw["TELEFONOS"] || "").toLowerCase(); + const comp = (raw["Compañía"] || raw["COMPAÑIA"] || raw["Procedencia"] || "").toLowerCase(); + + // Ahora sí busca en absolutamente todos los campos + const matchesSearch = searchTerm === "" || + name.includes(searchTerm) || + ref.includes(searchTerm) || + addr.includes(searchTerm) || + pop.includes(searchTerm) || + phone.includes(searchTerm) || + comp.includes(searchTerm); const matchesOp = selectedOp === "ALL" || s.assigned_name === selectedOp; let matchesWeek = true;