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