From 87a1617cb89e6278cf4a0200947e27140396c49e Mon Sep 17 00:00:00 2001 From: rrene Date: Tue, 2 Aug 2022 18:03:49 -0700 Subject: [PATCH] =?UTF-8?q?--=20redondeo=20en=20liquidaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ventas/ClientesAbonar.aspx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Ventas/ClientesAbonar.aspx b/Ventas/ClientesAbonar.aspx index 84e10111e..0258b17f2 100644 --- a/Ventas/ClientesAbonar.aspx +++ b/Ventas/ClientesAbonar.aspx @@ -693,7 +693,7 @@ if (textBoxes[i].value != '') { idd = textBoxes[i].id.replace('C_GvCxC_TxtAbonar_', ''); Ventas = Ventas + (Importe == 0 ? '' : ', ') + $get("C_GvCxC_HplF_" + idd).innerText; - abono = parseFloat(textBoxes[i].value.split(',').join('')); + abono = ToDouble(textBoxes[i].value); moneda = $get("C_GvCxC_LtlMoneda_" + idd).innerText; if (monedaPago == 1 && moneda == 'USD') { @@ -708,7 +708,7 @@ } if (textBoxes[i].id.indexOf('C_GvCxC_TxtComision') >= 0) { if (textBoxes[i].value != '') { - abonoComision = parseFloat(textBoxes[i].value.split(',').join('')); + abonoComision = ToDouble(textBoxes[i].value); moneda = $get("C_GvCxC_LtlMoneda_" + idd).innerText; if (monedaPago == 1 && moneda == 'USD') { facDolares = true @@ -954,6 +954,7 @@ let Total = 0.0; let Anticipos = 0.0; + debugger; $( ClsSelLiqVenta).each(function () { @@ -966,11 +967,10 @@ }); - Total = Total + Anticipos; - + Total = Total + Anticipos; $(ClsSelLiqVentaTotal).each(function () { - $(this).val(Total); + $(this).val(Total.toFixed(2)); FormatoMoneda2($(this)); }); @@ -979,6 +979,7 @@ var Suma = SumaValores(pagoMultiple, monedaPago); $get('TxtImporte').value = FormatoNumero(Suma, 2); + } function disablekeys()