diff --git a/modules/turnero/views/recepcion.php b/modules/turnero/views/recepcion.php
index 013e63a..00db209 100644
--- a/modules/turnero/views/recepcion.php
+++ b/modules/turnero/views/recepcion.php
@@ -686,17 +686,6 @@ document.addEventListener('DOMContentLoaded', function() {
-
-
@@ -887,15 +876,33 @@ document.addEventListener('DOMContentLoaded', function() {
Consentimientos informados
-
+
+
+
+
+
+
+
Lugar destino
+
+
+
@@ -2170,6 +2177,9 @@ async function pasarALugar() {
const btn = document.getElementById('btn-pasar-lugar');
if (btn) btn.disabled = true;
+ // Leer lugar del select (tiene prioridad sobre lo guardado en BD)
+ const lugarSeleccionado = parseInt(document.getElementById('sel-lugar').value) || solicitudActiva.lugar_id;
+
try {
const res = await fetch(API + 'cambiar_estado.php', {
method: 'POST',
@@ -2177,7 +2187,7 @@ async function pasarALugar() {
body: JSON.stringify({
turno_id: turnoActivo.id,
nuevo_estado: 'en_espera_lugar',
- lugar_id: solicitudActiva.lugar_id,
+ lugar_id: lugarSeleccionado,
}),
});
const json = await res.json();
@@ -2308,7 +2318,8 @@ function resetCheckboxes() {
document.getElementById('wrap-examenes').classList.remove('disabled');
document.getElementById('bloque-medico').style.display = '';
descartarRips();
- document.getElementById('sel-pago').value = '';
+ document.getElementById('sel-lugar').value = '';
+ document.getElementById('sel-pago').value = '';
document.getElementById('inp-total').value = '';
document.getElementById('inp-recibo').value = '';
document.getElementById('panel-recibo').classList.add('d-none');