From b9312fe0d9eee79697496d6924f8182a665b09b2 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 9 Jul 2026 13:31:14 -0500 Subject: [PATCH] feat: add bono to pago combinado in recepcion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New Bono field in the combined payment panel — included in the running total sum, reset, and pagos_detalle payload on submit. Co-Authored-By: Claude Sonnet 4.6 --- modules/turnero/views/recepcion.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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,