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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user