diff --git a/calendario.html b/calendario.html index 0c46c7a..5230160 100644 --- a/calendario.html +++ b/calendario.html @@ -145,9 +145,12 @@
-
-

Compañía

- +
+
+

Compañía

+

--

+
+

Nombre Cliente

@@ -790,6 +793,11 @@ document.getElementById('modTime').innerText = raw.scheduled_time || "--:--"; document.getElementById('detRef').innerText = `#${s.service_ref || "---"}`; document.getElementById('detCompany').innerText = raw["Compañía"] || "Particular"; + + // Rellenar el nuevo campo de estado + const estadoCia = raw['ACTUALMENTE EN'] || raw['Estado'] || raw['ESTADO'] || raw['Situación'] || "SIN ESTADO"; + document.getElementById('detStatusCia').innerText = estadoCia; + document.getElementById('detName').innerText = raw["Nombre Cliente"] || "Asegurado"; const fullAddress = `${raw["Dirección"] || ""}, ${raw["Código Postal"] || ""} ${raw["Población"] || ""}`; document.getElementById('detAddress').innerText = fullAddress;