fix: nombre y cédula del profesional en cada toma de muestras prolongada

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-29 21:24:32 -05:00
co-authored by Claude Sonnet 4.6
parent 2455417bb4
commit 309c1c93c6
+11 -1
View File
@@ -2328,7 +2328,17 @@ function _guardarFirmaMP(widget, svg, msgEl, entry, campoId) {
var box = document.createElement('div');
box.className = 'firma-box'; box.style.borderColor = '#198754';
box.appendChild(img);
widget.replaceWith(box);
var wrap = document.createElement('div');
wrap.appendChild(box);
if (window._profNombre || window._profDocumento) {
var ident = document.createElement('div');
ident.className = 'firma-pro-ident';
ident.style.cssText = 'font-size:13px;line-height:1.5;margin-top:4px';
if (window._profNombre) { var s = document.createElement('strong'); s.textContent = window._profNombre; ident.appendChild(s); ident.appendChild(document.createElement('br')); }
if (window._profDocumento) { var sp = document.createElement('span'); sp.style.cssText = 'color:#6c757d;font-size:12px'; sp.textContent = 'C.C. ' + window._profDocumento; ident.appendChild(sp); }
wrap.appendChild(ident);
}
widget.replaceWith(wrap);
// Actualizar tarjetas
_mpRefreshCards(campoId, data.completado ? null : entry.next_firma_id);