From 4bc4e9cc86ba45a9e0e6b2c352117149215b5e38 Mon Sep 17 00:00:00 2001 From: marsalva Date: Thu, 19 Mar 2026 20:16:21 +0000 Subject: [PATCH] Actualizar proveedores.html --- proveedores.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/proveedores.html b/proveedores.html index c8de6db..cd920eb 100644 --- a/proveedores.html +++ b/proveedores.html @@ -702,7 +702,16 @@ document.getElementById('modalCompanyLogo').innerHTML = ``; document.getElementById('displayRef').innerText = `REF: ${svc.service_ref}`; - document.getElementById('displayCompany').innerText = companyName; + + // 🛑 NUEVO: Sacamos el estado original de la compañía (buscando varias palabras clave posibles) + const estadoOriginal = raw['ACTUALMENTE EN'] || raw['Estado'] || raw['ESTADO'] || raw['Situación'] || ""; + + // Lo inyectamos en la pastilla azul junto al nombre de la compañía + if (estadoOriginal) { + document.getElementById('displayCompany').innerHTML = `${companyName} ${estadoOriginal}`; + } else { + document.getElementById('displayCompany').innerText = companyName; + } if (isArchived) { document.getElementById('modalStatusBadge').innerHTML = ` ARCHIVADO`;