Error en conversion en solicitud de anticipos, se cambia repalce por Expresion a /,/g para que elimine todas las comas

This commit is contained in:
rakcsle
2021-08-09 11:07:41 -07:00
parent 593b11dd7b
commit 412f717bdc

View File

@@ -2816,12 +2816,12 @@
$(document).ready(function () { $(document).ready(function () {
$('#<%= TxtSAImPorcentaje.ClientID%>').keyup(function () { $('#<%= TxtSAImPorcentaje.ClientID%>').keyup(function () {
console.log($(this).val()); console.log($(this).val());
var importe = (ToDouble($(this).val()) / 100) * ToDouble($get("LblTotal").value.replace(",", "")); var importe = (ToDouble($(this).val()) / 100) * ToDouble($get("LblTotal").value.replace(/,/g, ''));
$('#<%= TxtSAImporte.ClientID%>').val(FormatoNumero(importe, 2).replace(",", "")); $('#<%= TxtSAImporte.ClientID%>').val(FormatoNumero(importe, 2).replace(/,/g, ""));
}); });
$('#<%= TxtSAImporte.ClientID%>').keyup(function () { $('#<%= TxtSAImporte.ClientID%>').keyup(function () {
var importe = (100 * ToDouble($(this).val())) / ToDouble($get("LblTotal").value.replace(",", "")); var importe = (100 * ToDouble($(this).val())) / ToDouble($get("LblTotal").value.replace(/,/g, ""));
$('#<%= TxtSAImPorcentaje.ClientID%>').val(FormatoNumero(importe, 2).replace(",", "")); $('#<%= TxtSAImPorcentaje.ClientID%>').val(FormatoNumero(importe, 2).replace(/,/g, ""));
}); });
$get('HdnWidth').value = $("#DivConceptosContenido").width(); $get('HdnWidth').value = $("#DivConceptosContenido").width();