Reembolsos, rep compras AF
This commit is contained in:
@@ -398,7 +398,7 @@
|
||||
<asp:TemplateField Visible="false">
|
||||
<HeaderTemplate>Ot. Ing.</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtComision" Width="80px" runat="server" Style="text-align: right;"></asp:TextBox>
|
||||
<asp:TextBox ID="TxtComision" Width="80px" runat="server" Style="text-align: right;" CssClass="CsTxtComision"></asp:TextBox>
|
||||
<asp:RangeValidator ID="RVComision" runat="server" Enabled="false" ErrorMessage="*" ControlToValidate="TxtComision" Display="Dynamic" Type="Double"></asp:RangeValidator>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
@@ -459,6 +459,21 @@
|
||||
txt.value = "";
|
||||
}
|
||||
|
||||
//let chequeSeleccionado = parseInt($('#C_DDlCheques option:selected').val());
|
||||
|
||||
//if (chequeSeleccionado > 0) {
|
||||
|
||||
|
||||
// let TotalOtrosEgresos = 0.0;
|
||||
// $('.CsTxtComision').each(function () {
|
||||
// TotalOtrosEgresos = parseFloat($(this).val());
|
||||
// });
|
||||
|
||||
// alert("Excedente " + Excedente + " TotalOtrosEgresos " + TotalOtrosEgresos);
|
||||
|
||||
//}
|
||||
|
||||
|
||||
Excedente = SumaValores();
|
||||
|
||||
if (Excedente > 0) {
|
||||
@@ -666,9 +681,28 @@
|
||||
$get('TxtTotal').value = FormatoNumero(Suma + (ToDouble($get('TxtOtrosImportes').value * -1)), 2);
|
||||
}
|
||||
|
||||
|
||||
let chequeSeleccionado = parseInt($('#C_DDlCheques option:selected').val());
|
||||
let TotalOtrosEgresos = 0.0;
|
||||
|
||||
if (chequeSeleccionado > 0) {
|
||||
|
||||
|
||||
|
||||
$('.CsTxtComision').each(function () {
|
||||
TotalOtrosEgresos = parseFloat($(this).val());
|
||||
});
|
||||
|
||||
//alert("Excedente " + Excedente + " TotalOtrosEgresos " + TotalOtrosEgresos); EEEEEEEEEEEEEEEEEEEEEEEEE
|
||||
|
||||
Excedente = Excedente + TotalOtrosEgresos;
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (Excedente > 0) {
|
||||
txt.value = FormatoNumero(ToDouble(txt.value) - Excedente, 2);
|
||||
alert("El Importe no debe de exceder a el saldo del cheque");
|
||||
alert("Excedente " + Excedente + " TotalOtrosEgresos " + TotalOtrosEgresos);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user