Actualizar proveedores.html
This commit is contained in:
@@ -702,7 +702,16 @@
|
||||
|
||||
document.getElementById('modalCompanyLogo').innerHTML = `<img src="${getLogoUrl(companyName)}" class="max-w-full max-h-full object-contain">`;
|
||||
document.getElementById('displayRef').innerText = `REF: ${svc.service_ref}`;
|
||||
|
||||
// 🛑 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} <span class="ml-2 pl-2 border-l border-blue-200 text-blue-500 font-bold">${estadoOriginal}</span>`;
|
||||
} else {
|
||||
document.getElementById('displayCompany').innerText = companyName;
|
||||
}
|
||||
|
||||
if (isArchived) {
|
||||
document.getElementById('modalStatusBadge').innerHTML = `<span class="inline-flex items-center gap-1.5 text-[9px] bg-slate-200 text-slate-600 px-2.5 py-1 rounded-lg font-black uppercase tracking-widest border border-slate-300 shadow-sm whitespace-nowrap shrink-0"><i data-lucide="archive" class="w-3 h-3"></i> ARCHIVADO</span>`;
|
||||
|
||||
Reference in New Issue
Block a user