diff --git a/modules/turnero/views/recepcion.php b/modules/turnero/views/recepcion.php index cb9059c..a3e9dc4 100644 --- a/modules/turnero/views/recepcion.php +++ b/modules/turnero/views/recepcion.php @@ -765,10 +765,14 @@ document.addEventListener('DOMContentLoaded', function() {
-
+
+
+
+
+
@@ -1450,11 +1454,11 @@ function togglePagoCombinado() { } function sumarCombinado() { const v = id => parseFloat(document.getElementById(id).value) || 0; - const total = v('comb-efectivo') + v('comb-transferencia') + v('comb-tarjeta'); + const total = v('comb-efectivo') + v('comb-transferencia') + v('comb-tarjeta') + v('comb-bono'); document.getElementById('inp-total').value = total || ''; } function resetPagoCombinado() { - ['comb-efectivo','comb-transferencia','comb-tarjeta'].forEach(id => document.getElementById(id).value = ''); + ['comb-efectivo','comb-transferencia','comb-tarjeta','comb-bono'].forEach(id => document.getElementById(id).value = ''); document.getElementById('panel-combinado').classList.add('d-none'); const inp = document.getElementById('inp-total'); inp.readOnly = false; @@ -1615,6 +1619,7 @@ async function guardarSolicitud() { efectivo: parseFloat(document.getElementById('comb-efectivo').value) || 0, transferencia: parseFloat(document.getElementById('comb-transferencia').value) || 0, tarjeta: parseFloat(document.getElementById('comb-tarjeta').value) || 0, + bono: parseFloat(document.getElementById('comb-bono').value) || 0, } : null, observaciones: document.getElementById('inp-obs').value.trim() || null, embarazada: document.getElementById('chk-embarazada').checked ? 1 : 0,