Descuentos por RNC
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
<div style="">
|
||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False"
|
||||
DataKeyNames="CveSubProyecto,SubProyecto,IdSegNeg,Estatus,Serie,IVA,Calle,NoExt,NoInt,Colonia,Localidad,Municipio,Estado,Pais,CP,CveProyecto,TipoSucursal,EsSucursal,
|
||||
CvePais,CveEstado,CveMunicipio,CveColonia,AplicaComercioExterior,CvePrecioLista,Correo,Telefono,HorarioVerano,HorarioInvierno"
|
||||
CvePais,CveEstado,CveMunicipio,CveColonia,AplicaComercioExterior,CvePrecioLista,Correo,Telefono,UTCOffsetVerano,UTCOffsetInvierno"
|
||||
EmptyDataText="No se encontraron SubProyectos" ShowHeader="true" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" GridLines="None">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="SubProyecto" HeaderText="Centro de costo" />
|
||||
|
||||
@@ -284,8 +284,8 @@ Partial Class CatSubProyectos
|
||||
DdlPrecioLista.SelectedValueExist(GvRow.DataKey("CvePrecioLista"))
|
||||
TxtCorreo.Text = (GvRow.DataKey("Correo"))
|
||||
TxtTelefono.Text = (GvRow.DataKey("Telefono"))
|
||||
TxtHorarioVerano.Text = (GvRow.DataKey("HorarioVerano"))
|
||||
TxtHorarioInvierno.Text = (GvRow.DataKey("HorarioInvierno"))
|
||||
TxtHorarioVerano.Text = (GvRow.DataKey("UTCOffsetVerano"))
|
||||
TxtHorarioInvierno.Text = (GvRow.DataKey("UTCOffsetInvierno"))
|
||||
'COMERCIO EXTERIOR
|
||||
ChkAplicaComercioExterior.Checked = If(GvRow.DataKey("AplicaComercioExterior").ToString = "True", True, False)
|
||||
DdlPais.SelectedValueExist(GvRow.DataKey("CvePais"))
|
||||
|
||||
@@ -1279,81 +1279,99 @@
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 ">
|
||||
<table border="0" rules="none" class="well TextTab" style="float: right;">
|
||||
<tr align="right">
|
||||
<td style="width: 150px;"><b>SubTotal:</b></td>
|
||||
<td width="82px">
|
||||
<asp:TextBox ID="TxtSubTotal" Enabled="false" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
||||
<td align="right">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table id="TbDescuentosRNC" border="0" rules="none" class="well TextTab" style="float: right;" runat="server" visible="false">
|
||||
<tr align="right">
|
||||
<td style="border: 1px none white"><b>Descuentos. RNC.:</b></td>
|
||||
<td>
|
||||
<asp:Label ID="LblDescuentosRNC" ClientIDMode="Static" runat="server" Style="text-align: right;" Text="0.00" Width="78px"></asp:Label></td>
|
||||
<td align="right"> <asp:LinkButton ID="LnkDescuentosRNC" runat="server" OnClick="LnkDescuentosRNC_Click" Text="<i class='fa fa-tag fa-lg font-green'></i>" AlternateText="Aplicacion de RNC" Style="cursor: pointer;" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="right">
|
||||
<td style="border: 1px none white"><b>Total NC.:</b></td>
|
||||
<td>
|
||||
<asp:Label ID="LblTotalNC" ClientIDMode="Static" runat="server" Style="text-align: right;" Text="0.00" Width="78px"></asp:Label></td>
|
||||
<td align="right">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table border="0" rules="none" class="well TextTab" style="float: right;">
|
||||
<tr align="right">
|
||||
<td style="width: 150px;"><b>SubTotal:</b></td>
|
||||
<td width="82px">
|
||||
<asp:TextBox ID="TxtSubTotal" Enabled="false" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
||||
<td align="right">
|
||||
<asp:LinkButton ID="ImgOtrosConceptos" Enabled="false" Visible="false" CssClass="btn btn-circle btn-xs blue" ToolTip="Desglose de Conceptos" Text="<i class='fa fa-list'></i>" runat="server"></asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr align="right">
|
||||
<td><b>
|
||||
<asp:Literal ID="LtlTitDescuentos" runat="server" Text="Descuentos:"></asp:Literal></b></td>
|
||||
<td>
|
||||
<asp:Label ID="LblDescuentos" ClientIDMode="Static" runat="server" Style="text-align: right;" Text="0.00" Width="78px"></asp:Label></td>
|
||||
<td align="right">
|
||||
<tr align="right">
|
||||
<td><b>
|
||||
<asp:Literal ID="LtlTitDescuentos" runat="server" Text="Descuentos:"></asp:Literal></b></td>
|
||||
<td>
|
||||
<asp:Label ID="LblDescuentos" ClientIDMode="Static" runat="server" Style="text-align: right;" Text="0.00" Width="78px"></asp:Label></td>
|
||||
<td align="right">
|
||||
<a runat="server" id="ImgDescTotal" href="#"><i class='fa fa-comment-o'></i></a>
|
||||
<%--<asp:LinkButton ID="ImgDescTotal" runat="server" ToolTip="Agregar Descuento" Text="<i class='fa fa-comment-o'></i>" Style="cursor: pointer;" />--%></td>
|
||||
</tr>
|
||||
<%--<asp:LinkButton ID="ImgDescTotal" runat="server" ToolTip="Agregar Descuento" Text="<i class='fa fa-comment-o'></i>" Style="cursor: pointer;" />--%></td>
|
||||
</tr>
|
||||
|
||||
<tr align="right">
|
||||
<td style="border: 1px none white"><b>Amort. Ant.:</b></td>
|
||||
<td>
|
||||
<asp:Label ID="LblAmortizacion" ClientIDMode="Static" runat="server" Style="text-align: right;" Text="0.00" Width="78px"></asp:Label></td>
|
||||
<td align="right"> <asp:LinkButton ID="ImgAntiPend" runat="server" Text=" <i class='fa fa-money font-green'></i> " AlternateText="Cancelación de Anticipos" Style="cursor: pointer;" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="right">
|
||||
<td style="border: 1px none white"><b>Amort. Ant.:</b></td>
|
||||
<td>
|
||||
<asp:Label ID="LblAmortizacion" ClientIDMode="Static" runat="server" Style="text-align: right;" Text="0.00" Width="78px"></asp:Label></td>
|
||||
<td align="right"> <asp:LinkButton ID="ImgAntiPend" runat="server" Text=" <i class='fa fa-money font-green'></i> " AlternateText="Cancelación de Anticipos" Style="cursor: pointer;" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr align="right">
|
||||
<td style="border: 1px none white"><b>SubTotal 2:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtSubTotal2" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
||||
<td>
|
||||
<asp:LinkButton ID="LkbAgregarComplementos" runat="server" CssClass="btn btn-circle btn-xs gray" Text="<i class='fa fa-bell '></i>"></asp:LinkButton></td>
|
||||
</tr>
|
||||
<tr align="right">
|
||||
<td style="border: 1px none white"><b>SubTotal 2:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtSubTotal2" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
||||
<td>
|
||||
<asp:LinkButton ID="LkbAgregarComplementos" runat="server" CssClass="btn btn-circle btn-xs gray" Text="<i class='fa fa-bell '></i>"></asp:LinkButton></td>
|
||||
</tr>
|
||||
|
||||
<tr align="right">
|
||||
<td style="border: 1px none white"><b>IVA:</b>
|
||||
<asp:DropDownList ID="DdlIVA" CssClass="form-control select2me" Style="width: 35px; display: inline-block;" runat="server" Visible="false" AutoPostBack="true" OnSelectedIndexChanged="DdlIVA_SelectedIndexChanged">
|
||||
<asp:ListItem Selected="True" Value="1.08">8%</asp:ListItem>
|
||||
<asp:ListItem Value="1.16">16%</asp:ListItem>
|
||||
<asp:ListItem Value="1">0%</asp:ListItem>
|
||||
</asp:DropDownList></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtIVA" ClientIDMode="Static" Enabled="false" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
||||
<asp:HiddenField ID="HdnIVAOriginal" runat="server" ClientIDMode="Static" Value="0" />
|
||||
<asp:HiddenField ID="HdnIVACalculado" runat="server" ClientIDMode="Static" Value="0" />
|
||||
<td></td>
|
||||
<tr align="right">
|
||||
<td style="border: 1px none white"><b>IVA:</b>
|
||||
<asp:DropDownList ID="DdlIVA" CssClass="form-control select2me" Style="width: 35px; display: inline-block;" runat="server" Visible="false" AutoPostBack="true" OnSelectedIndexChanged="DdlIVA_SelectedIndexChanged">
|
||||
<asp:ListItem Selected="True" Value="1.08">8%</asp:ListItem>
|
||||
<asp:ListItem Value="1.16">16%</asp:ListItem>
|
||||
<asp:ListItem Value="1">0%</asp:ListItem>
|
||||
</asp:DropDownList></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtIVA" ClientIDMode="Static" Enabled="false" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
||||
<asp:HiddenField ID="HdnIVAOriginal" runat="server" ClientIDMode="Static" Value="0" />
|
||||
<asp:HiddenField ID="HdnIVACalculado" runat="server" ClientIDMode="Static" Value="0" />
|
||||
<td></td>
|
||||
|
||||
</tr>
|
||||
</tr>
|
||||
|
||||
<tr id="TrRetIVA" runat="server" align="right" style="display: none;">
|
||||
<td style="border: 1px none white"><b>Ret. IVA:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtRetIVA" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
||||
<td>
|
||||
<asp:Label ID="LblRetIVA" runat="server" BorderStyle="None" Text="0.00"></asp:Label> (%)</td>
|
||||
</tr>
|
||||
<tr id="TrRetIVA" runat="server" align="right" style="display: none;">
|
||||
<td style="border: 1px none white"><b>Ret. IVA:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtRetIVA" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
||||
<td>
|
||||
<asp:Label ID="LblRetIVA" runat="server" BorderStyle="None" Text="0.00"></asp:Label> (%)</td>
|
||||
</tr>
|
||||
|
||||
<tr id="TrRetISR" runat="server" align="right" style="display: none;">
|
||||
<td><b>Ret ISR:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtRetISR" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
||||
<td>
|
||||
<asp:Label ID="LblRetISR" runat="server" BorderStyle="None" Text="0.00"></asp:Label> (%)</td>
|
||||
</tr>
|
||||
<tr id="TrRetISR" runat="server" align="right" style="display: none;">
|
||||
<td><b>Ret ISR:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtRetISR" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
||||
<td>
|
||||
<asp:Label ID="LblRetISR" runat="server" BorderStyle="None" Text="0.00"></asp:Label> (%)</td>
|
||||
</tr>
|
||||
|
||||
<tr id="TrIEPS" runat="server" align="right" visible="false">
|
||||
<%--<td colspan="2">
|
||||
<tr id="TrIEPS" runat="server" align="right" visible="false">
|
||||
<%--<td colspan="2">
|
||||
<asp:UpdatePanel ID="UpIEPS" runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvIEPS" runat="server" BorderWidth="0px" ShowHeader="False" horizontal-align="Right" GridLines="None" ShowHeaderWhenEmpty="False" DataKeyNames="PorcentajeIEPS, ImporteIEPS" AutoGenerateColumns="false">
|
||||
@@ -1374,99 +1392,101 @@
|
||||
</asp:UpdatePanel>
|
||||
</td>--%>
|
||||
|
||||
<td><b>IEPS:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtIEPS" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<td><b>IEPS:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtIEPS" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr id="TrOtros" runat="server" visible="false">
|
||||
<td colspan="2">
|
||||
<asp:UpdatePanel ID="UpImpuestos" runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvImpuestosLocales2" BorderWidth="0px" ShowHeader="False" runat="server" horizontal-align="Right" GridLines="None" ShowHeaderWhenEmpty="False" DataKeyNames="CveImpuestoLocal,ImpuestoLocal,Porcentaje,TipoImpuesto,IdCtaContable" AutoGenerateColumns="False" EmptyDataText="">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="ImpuestoLocal" DataFormatString="{0}:" ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="82px">
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtImpuestoLocalPS" runat="server" BorderStyle="None" Style="text-align: right;" Text='<%# Eval("Importe", "{0:N2}") %>' CssClass='<%# Eval("TipoImpuesto") %>' Width="78px"></asp:TextBox>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr id="TrOtros" runat="server" visible="false">
|
||||
<td colspan="2">
|
||||
<asp:UpdatePanel ID="UpImpuestos" runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
||||
<ContentTemplate>
|
||||
<asp:GridView ID="GvImpuestosLocales2" BorderWidth="0px" ShowHeader="False" runat="server" horizontal-align="Right" GridLines="None" ShowHeaderWhenEmpty="False" DataKeyNames="CveImpuestoLocal,ImpuestoLocal,Porcentaje,TipoImpuesto,IdCtaContable" AutoGenerateColumns="False" EmptyDataText="">
|
||||
<Columns>
|
||||
<asp:BoundField DataField="ImpuestoLocal" DataFormatString="{0}:" ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="82px">
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtImpuestoLocalPS" runat="server" BorderStyle="None" Style="text-align: right;" Text='<%# Eval("Importe", "{0:N2}") %>' CssClass='<%# Eval("TipoImpuesto") %>' Width="78px"></asp:TextBox>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr align="right">
|
||||
<td><b>Total:</b></td>
|
||||
<td>
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:TextBox ID="TxtTotal" runat="server" CssClass="TextBoxAsLabel" ClientIDMode="Static" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox>
|
||||
<asp:HiddenField ID="HdnVentaSaldo" runat="server" ClientIDMode="Static" Value="0" />
|
||||
<asp:HiddenField ID="HdnCveVenta" runat="server" ClientIDMode="Static" Value="0" />
|
||||
<tr align="right">
|
||||
<td><b>Total:</b></td>
|
||||
<td>
|
||||
<asp:UpdatePanel runat="server">
|
||||
<ContentTemplate>
|
||||
<asp:TextBox ID="TxtTotal" runat="server" CssClass="TextBoxAsLabel" ClientIDMode="Static" BorderStyle="None" Style="text-align: right;" Text="0.00" Width="78px"></asp:TextBox>
|
||||
<asp:HiddenField ID="HdnVentaSaldo" runat="server" ClientIDMode="Static" Value="0" />
|
||||
<asp:HiddenField ID="HdnCveVenta" runat="server" ClientIDMode="Static" Value="0" />
|
||||
|
||||
<asp:HiddenField ID="HdnSubTotalDescuestos" runat="server" ClientIDMode="Static" Value="0" />
|
||||
<asp:HiddenField ID="HdnAmortizacion" runat="server" ClientIDMode="Static" Value="0" />
|
||||
<asp:HiddenField ID="HdnSubTotalDescuestos" runat="server" ClientIDMode="Static" Value="0" />
|
||||
<asp:HiddenField ID="HdnAmortizacion" runat="server" ClientIDMode="Static" Value="0" />
|
||||
|
||||
<asp:HiddenField ID="HdnTotalVenta" runat="server" ClientIDMode="Static" Value="0" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
<td><b>Moneda:</b></td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlMoneda" ClientIDMode="Static" CssClass="form-control input-sm" runat="server" DataTextField="Moneda" AppendDataBoundItems="true" AutoPostBack="true" DataValueField="CveMoneda" Width="70px"></asp:DropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
<asp:HiddenField ID="HdnTotalVenta" runat="server" ClientIDMode="Static" Value="0" />
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</td>
|
||||
<td><b>Moneda:</b></td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlMoneda" ClientIDMode="Static" CssClass="form-control input-sm" runat="server" DataTextField="Moneda" AppendDataBoundItems="true" AutoPostBack="true" DataValueField="CveMoneda" Width="70px"></asp:DropDownList>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="TrConversionPesosTexto" align="right" style="display: none;">
|
||||
<td><b>MXN:</b></td>
|
||||
<td class="font-blue-sharp">
|
||||
<asp:Label ID="LtlTotalConvertido" runat="Server" ClientIDMode="Static" Style="text-align: right;"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrConversionPesosTexto" align="right" style="display: none;">
|
||||
<td><b>MXN:</b></td>
|
||||
<td class="font-blue-sharp">
|
||||
<asp:Label ID="LtlTotalConvertido" runat="Server" ClientIDMode="Static" Style="text-align: right;"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="TrConversionTipoCambio" runat="server" visible="false" align="right">
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkConvertirDoctoPesos" data-size="small" runat="server" ToolTip="Las cantidades se definen en moneda extranjera, pero el documento se empresa a pesos (Se multiplica por el Tipo de Cambio)" onclick="ConvertirPesos(this);" /></td>
|
||||
<td>
|
||||
<b>Conv. Pesos:</b>
|
||||
</td>
|
||||
<td><b>T.C.:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtTipoCambio" onkeyup="ConvertirDllsPesos();" runat="server" CssClass="form-control input-sm" MaxLength="7" Text="1" Enabled="true" Width="70px" ClientIDMode="Static" ReadOnly="true"></asp:TextBox>
|
||||
<asp:CompareValidator ID="CVTipoCambio" runat="server" ControlToValidate="TxtTipoCambio" Display="None" ErrorMessage="El campo <b>''Tipo de Cambio''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpEmitirImprimir"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOTipoCambio" runat="server" HighlightCssClass="vco" TargetControlID="CVTipoCambio" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
<asp:Label runat="server" ID="LblTCValuacion" ToolTip="Última Valuación" Text="" Visible="false"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrConversionTipoCambio" runat="server" visible="false" align="right">
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkConvertirDoctoPesos" data-size="small" runat="server" ToolTip="Las cantidades se definen en moneda extranjera, pero el documento se empresa a pesos (Se multiplica por el Tipo de Cambio)" onclick="ConvertirPesos(this);" /></td>
|
||||
<td>
|
||||
<b>Conv. Pesos:</b>
|
||||
</td>
|
||||
<td><b>T.C.:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtTipoCambio" onkeyup="ConvertirDllsPesos();" runat="server" CssClass="form-control input-sm" MaxLength="7" Text="1" Enabled="true" Width="70px" ClientIDMode="Static" ReadOnly="true"></asp:TextBox>
|
||||
<asp:CompareValidator ID="CVTipoCambio" runat="server" ControlToValidate="TxtTipoCambio" Display="None" ErrorMessage="El campo <b>''Tipo de Cambio''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpEmitirImprimir"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOTipoCambio" runat="server" HighlightCssClass="vco" TargetControlID="CVTipoCambio" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
<asp:Label runat="server" ID="LblTCValuacion" ToolTip="Última Valuación" Text="" Visible="false"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="TrConversionDolaresTexto" align="right" style="display: none;">
|
||||
<td><b>DLLS:</b></td>
|
||||
<td class="font-blue-sharp">
|
||||
<asp:Label ID="LblDolaresConvertidos" runat="Server" ClientIDMode="Static" Style="text-align: right;"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="TrConversionDolaresTexto" align="right" style="display: none;">
|
||||
<td><b>DLLS:</b></td>
|
||||
<td class="font-blue-sharp">
|
||||
<asp:Label ID="LblDolaresConvertidos" runat="Server" ClientIDMode="Static" Style="text-align: right;"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="TrConversionDolares" runat="server" visible="false" align="right">
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkConvertirDolares" data-size="small" runat="server" onclick="ConvertirDolares(this);" /></td>
|
||||
<td>
|
||||
<b>Conv. Dlls:</b>
|
||||
</td>
|
||||
<td><b>T.C.:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtTipoCambioDlls" onkeyup="ConvertirPesosDlls();" runat="server" CssClass="form-control input-sm" MaxLength="7" Text="1" Enabled="true" Width="70px" ClientIDMode="Static"></asp:TextBox>
|
||||
<asp:CompareValidator ID="CvTipoCambioDolares" runat="server" ControlToValidate="TxtTipoCambioDlls" Display="None" ErrorMessage="El campo <b>''Tipo de Cambio''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpEmitirImprimir"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEOTipoCambioDlls" runat="server" HighlightCssClass="vco" TargetControlID="CvTipoCambioDolares" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
<tr id="TrConversionDolares" runat="server" visible="false" align="right">
|
||||
<td>
|
||||
<asp:CheckBox ID="ChkConvertirDolares" data-size="small" runat="server" onclick="ConvertirDolares(this);" /></td>
|
||||
<td>
|
||||
<b>Conv. Dlls:</b>
|
||||
</td>
|
||||
<td><b>T.C.:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtTipoCambioDlls" onkeyup="ConvertirPesosDlls();" runat="server" CssClass="form-control input-sm" MaxLength="7" Text="1" Enabled="true" Width="70px" ClientIDMode="Static"></asp:TextBox>
|
||||
<asp:CompareValidator ID="CvTipoCambioDolares" runat="server" ControlToValidate="TxtTipoCambioDlls" Display="None" ErrorMessage="El campo <b>''Tipo de Cambio''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpEmitirImprimir"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEOTipoCambioDlls" runat="server" HighlightCssClass="vco" TargetControlID="CvTipoCambioDolares" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3070,7 +3090,7 @@
|
||||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="TxtImporteContado" FilterType="Custom, Numbers" ValidChars=".," />
|
||||
|
||||
|
||||
<%-- <asp:CompareValidator ID="CVImporteContado" runat="server" ControlToValidate="TxtImporteContado" Display="None" ErrorMessage="Importe excedido." Operator="LessThanEqual" Type="Double" ValidationGroup="GrpAgregarPago"></asp:CompareValidator>
|
||||
<%-- <asp:CompareValidator ID="CVImporteContado" runat="server" ControlToValidate="TxtImporteContado" Display="None" ErrorMessage="Importe excedido." Operator="LessThanEqual" Type="Double" ValidationGroup="GrpAgregarPago"></asp:CompareValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" HighlightCssClass="vco" TargetControlID="CVImporteContado" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||||
<br></br>
|
||||
</div>
|
||||
@@ -6329,6 +6349,63 @@
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<%--APLICAR REMISIONES DE NC--%>
|
||||
<div id="ModalAplicarDescuentoNC" class="modal ADS fade" role="dialog">
|
||||
<asp:UpdatePanel ID="UpDescNC" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Aplicar Remisiones de Nota de Crédito</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row" style="margin-right: 10px; margin-top: 18px;" align="right">
|
||||
<input type="text" id="TxtBusquedaDescC" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaDescC','{0}')", GvDescNC.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaDescC','{0}')", GvDescNC.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||
</div>
|
||||
<div class="row" style="max-height: 10px">
|
||||
<div class="col-md-12" style="height: 440px; overflow: auto">
|
||||
<asp:GridView ID="GvDescNC" runat="server" AutoGenerateColumns="False"
|
||||
DataKeyNames="CveVenta" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None">
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkAplicar" runat="server" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:HyperLinkField DataNavigateUrlFields="CveVenta" Target="_blank" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="SerieFolio" HeaderText="Folio" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" />
|
||||
<asp:BoundField HeaderText="Fecha" DataField="Fecha" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
||||
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlTotal" runat="server" Text='<%# Eval("Original", "{0:N2}") %>'></asp:Literal>
|
||||
<asp:Literal ID="LtlAbrev" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Saldo" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Literal ID="LtlSaldo" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<ItemTemplate>
|
||||
<asp:TextBox ID="TxtImporte" CssClass="myvalue" runat="server" Width="75px" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button id="CancelarAplicarDescNC" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
||||
<asp:Button Text="Aplicar Descuento" ID="BtnAplicarDesc" OnClick="BtnAplicarDesc_Click" CssClass="btn btn-primary" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script src="/Metronic/assets/global/scripts/jquery-sortable.js"></script>
|
||||
@@ -7463,24 +7540,24 @@
|
||||
$('#divAgregarCliente').modal('hide');
|
||||
}
|
||||
|
||||
function CompararNC() {
|
||||
var TotalRem = ToDouble(document.getElementById('<%= TxtImportesRemisionesNC.ClientID %>').value);
|
||||
var TotalNC = ToDouble(document.getElementById('<%= TxtNCImporte.ClientID %>').value);
|
||||
|
||||
if (TotalRem == TotalNC) {
|
||||
document.getElementById('<%= TxtImportesRemisionesNC.ClientID %>').style.border = "2px solid #04B431";
|
||||
document.getElementById('<%= TxtNCImporte.ClientID %>').style.border = "2px solid #04B431";
|
||||
document.getElementById('<%= TxtImportesRemisionesNC.ClientID %>').style.color = "";
|
||||
document.getElementById('<%= TxtNCImporte.ClientID %>').style.color = "";
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
document.getElementById('<%= TxtImportesRemisionesNC.ClientID %>').style.border = "2px solid #ff0000";
|
||||
document.getElementById('<%= TxtNCImporte.ClientID %>').style.border = "2px solid #ff0000";
|
||||
document.getElementById('<%= TxtImportesRemisionesNC.ClientID %>').style.color = "#ff0000";
|
||||
document.getElementById('<%= TxtNCImporte.ClientID %>').style.color = "#ff0000";
|
||||
}
|
||||
function CompararNC() {
|
||||
var TotalRem = ToDouble(document.getElementById('<%= TxtImportesRemisionesNC.ClientID %>').value);
|
||||
var TotalNC = ToDouble(document.getElementById('<%= TxtNCImporte.ClientID %>').value);
|
||||
|
||||
if (TotalRem == TotalNC) {
|
||||
document.getElementById('<%= TxtImportesRemisionesNC.ClientID %>').style.border = "2px solid #04B431";
|
||||
document.getElementById('<%= TxtNCImporte.ClientID %>').style.border = "2px solid #04B431";
|
||||
document.getElementById('<%= TxtImportesRemisionesNC.ClientID %>').style.color = "";
|
||||
document.getElementById('<%= TxtNCImporte.ClientID %>').style.color = "";
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
document.getElementById('<%= TxtImportesRemisionesNC.ClientID %>').style.border = "2px solid #ff0000";
|
||||
document.getElementById('<%= TxtNCImporte.ClientID %>').style.border = "2px solid #ff0000";
|
||||
document.getElementById('<%= TxtImportesRemisionesNC.ClientID %>').style.color = "#ff0000";
|
||||
document.getElementById('<%= TxtNCImporte.ClientID %>').style.color = "#ff0000";
|
||||
}
|
||||
}
|
||||
|
||||
function CerrarModalRemNC() {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user