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()