Compras creditos, ret iva ret isr al actualizar ps, tipo de cambio al actualizar compra
This commit is contained in:
@@ -3598,25 +3598,24 @@
|
||||
<div class="col-md-2" style="text-align: left;">
|
||||
<asp:CheckBox ID="ChkIEPS" runat="server" Text="IEPS" Visible="false" />
|
||||
</div>
|
||||
<div class="col-md-3" style="text-align: center; margin-top: 5px">
|
||||
<div class="col-md-2" style="text-align: center; margin-top: 5px">
|
||||
<asp:Label runat="server" ID="LbImporte" />
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-7">
|
||||
<asp:DropDownList ID="DdlConceptoIEPS" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="PS" DataValueField="CvePS" Width="100px" ValidationGroup="GrpAgregar" Visible="false"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVConceptoIEPS" runat="server" ControlToValidate="DdlConceptoIEPS" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />Es necesario <b>seleccionar un concepto, </b>por favor ingréselo." InitialValue="-1" ValidationGroup="GrpAgregar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEConceptoIEPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVConceptoIEPS" Width="300px" BehaviorID="VCEConceptoIEPS"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
<div class="col-md-5"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-1"></div>
|
||||
<div class="col-md-2" style="text-align: left; width: 140px">
|
||||
<asp:CheckBox ID="ChkOtrosI" runat="server" Text="Otros Impuestos" Visible="false" />
|
||||
</div>
|
||||
<div class="col-md-3" style="text-align: center; margin-top: 5px">
|
||||
<div class="col-md-2" style="text-align: center; margin-top: 5px">
|
||||
<asp:Label runat="server" ID="LbImporte2" />
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-7">
|
||||
<asp:DropDownList ID="DdlConceptoOI" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" DataTextField="PS" DataValueField="CvePS" Width="100px" ValidationGroup="GrpAgregar" Visible="false"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVConcepto" runat="server" ControlToValidate="DdlConceptoOI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />Es necesario <b>seleccionar un concepto, </b>por favor ingréselo." InitialValue="-1" ValidationGroup="GrpAgregar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEConcepto" runat="server" HighlightCssClass="vco" TargetControlID="RFVConcepto" Width="300px" BehaviorID="VCEConcepto"></ajax:ValidatorCalloutExtender>
|
||||
@@ -6631,15 +6630,13 @@
|
||||
TotalCompra = parseFloat($('#<%= TxtTotal.ClientID %>').val().replace(/,/g, '')).toFixed(2);
|
||||
ImporteAmortizado = $(`.CsSelAmbos${CveCreditoDetalle}`).val().replace(/,/g, '').length == 0 ? 0 : parseFloat($(`.CsSelAmbos${CveCreditoDetalle}`).val().replace(/,/g, ''));
|
||||
ImporteComision = $(`.CsSelComision${CveCreditoDetalle}`).val().replace(/,/g, '').length == 0 ? 0 : parseFloat($(`.CsSelComision${CveCreditoDetalle}`).val().replace(/,/g, ''));
|
||||
ImporteComision = isNaN(ImporteComision) ? 0 : ImporteComision;
|
||||
ImporteDocPorPagar = (ImporteIE - ImporteAmortizado - ImporteComision).toFixed(2);
|
||||
|
||||
$(`.CsSelAmbos${CveCreditoDetalle}`).each(function () {
|
||||
FormatoMoneda3($(this));
|
||||
});
|
||||
|
||||
$(`.CsSelComision${CveCreditoDetalle}`).each(function () {
|
||||
FormatoMoneda3($(this));
|
||||
});
|
||||
|
||||
|
||||
$(`.CsCreGlobal`).each(function () {
|
||||
let stringTemp = $(this).val().replace(/,/g, '');
|
||||
@@ -6660,15 +6657,18 @@
|
||||
});
|
||||
|
||||
|
||||
if (((TotalAmortizaciones + TotalComisiones) > TotalCompra) || ((ImporteAmortizado + ImporteComision) > ImporteIE)) {
|
||||
if ((TotalAmortizaciones > TotalCompra) || ((ImporteAmortizado + ImporteComision) > ImporteIE)) {
|
||||
|
||||
TotalAmortizaciones = 0;
|
||||
TotalComisiones = 0;
|
||||
//TotalComisiones = 0;
|
||||
|
||||
if (Tipo == 1) {
|
||||
if (Tipo == 1) {
|
||||
$(`.CsSelAmbos${CveCreditoDetalle}`).val(``);
|
||||
|
||||
} else if (Tipo == 2) {
|
||||
$(`.CsSelComision${CveCreditoDetalle}`).val(``);
|
||||
if (!isNaN(ImporteComision) && ImporteComision != 0) {
|
||||
$(`.CsSelComision${CveCreditoDetalle}`).val(``);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6679,11 +6679,8 @@
|
||||
|
||||
$(`.CsSelAmbos${CveCreditoDetalle}`).each(function () {
|
||||
FormatoMoneda3($(this));
|
||||
});
|
||||
|
||||
$(`.CsSelComision${CveCreditoDetalle}`).each(function () {
|
||||
FormatoMoneda3($(this));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$(`.CsCreGlobal`).each(function () {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user