correción titulo

This commit is contained in:
2021-09-06 16:32:18 -07:00
parent 779d465ebf
commit 28c91c2d5f

View File

@@ -93,9 +93,9 @@
<table class="table table-striped Widthall">
<tr>
<th style=""></th>
<th style="width: 100px;"></th>
<th style="width: 100px;"></th>
<th style="width: 100px;"></th>
<th style="width: 80px;"></th>
<th style="width: 60px;"></th>
<th style="width: 80px;"></th>
<th style="width: 120px;"></th>
<th style="width: 120px;"></th>
<th style="width: 120px;"></th>
@@ -132,7 +132,7 @@
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="UM" ItemStyle-Width="60px">
<asp:TemplateField HeaderText="UM" ItemStyle-Width="50px">
<ItemTemplate>
<span><%# Eval("Abreviatura")%></span>
</ItemTemplate>
@@ -356,7 +356,7 @@
var cantidad = parseFloat(txtCantidad.val());
debugger;
if (!Math.round10) {
Math.round10 = function (value, exp) {
@@ -364,13 +364,14 @@
};
}
if (opcion == 2) {
if (opcion == 2) { //editar importe
if (txtimporte.val().toString().length > 0) {
var importe = parseFloat(txtimporte.val());
cantidad = parseFloat(importe / pu);
txtCantidad.val(cantidad);
txtPorcentaje.val(Math.round10(cantidad * 100 / max, -2));
}else{
cantidad = 0.0
@@ -379,12 +380,13 @@
}
}
if (opcion == 3) {
if (opcion == 3) { //editar porcentaje
if (txtPorcentaje.val().toString().length > 0) {
var porcentaje = parseFloat(txtPorcentaje.val());
cantidad = (porcentaje * max / 100);
txtCantidad.val(cantidad);
txtimporte.val((cantidad * pu).toFixed(2));
} else {
cantidad = 0;
txtCantidad.val('');
@@ -401,13 +403,13 @@
}
if (cantidad > 0) {
txtimporte.val(cantidad * pu);
txtPorcentaje.val(Math.round10(cantidad * 100 / max, -2));
} else {
txtimporte.val('');
txtPorcentaje.val('');
}
//if (cantidad > 0) {
// txtimporte.val((cantidad * pu).toFixed(2));
// txtPorcentaje.val(Math.round10(cantidad * 100 / max, -2));
//} else {
// txtimporte.val('');
// txtPorcentaje.val('');
//}
}