fix: hide médico tratante when solo entrega de muestras is checked

Toggling the checkbox hides the doctor field and clears any selection.
Unchecking or resetting the form restores the field to visible.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-09 13:41:46 -05:00
co-authored by Claude Sonnet 4.6
parent fd991103b9
commit bffa38e9c0
+3
View File
@@ -2028,12 +2028,15 @@ function toggleSoloMuestras() {
const wrap = document.getElementById('wrap-examenes');
if (examTS) { examTS.clear(); solo ? examTS.disable() : examTS.enable(); }
wrap.classList.toggle('disabled', solo);
document.getElementById('bloque-medico').style.display = solo ? 'none' : '';
if (solo) quitarMedico();
}
function resetCheckboxes() {
document.getElementById('chk-solo-muestras').checked = false;
if (examTS) { examTS.clear(); examTS.enable(); }
document.getElementById('wrap-examenes').classList.remove('disabled');
document.getElementById('bloque-medico').style.display = '';
document.getElementById('sel-pago').value = '';
document.getElementById('inp-total').value = '';
document.getElementById('inp-obs').value = '';