1656 lines
115 KiB
Plaintext
1656 lines
115 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="PVCobranza.aspx.vb" Inherits="Ventas_PVCobranza" %>
|
|
|
|
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
div.chksino, span.chksino {
|
|
border: 1px solid #B8B8B8;
|
|
max-width: 77px;
|
|
overflow: hidden;
|
|
max-height: 28px;
|
|
display: inline-block;
|
|
text-align: left;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.chksino label::after {
|
|
content: 'No';
|
|
padding: 1px;
|
|
padding-left: 12px;
|
|
padding-right: 12px;
|
|
margin-left: 45px;
|
|
font-size: 12px !important;
|
|
font-weight: normal !important;
|
|
display: inline-block;
|
|
background: #ececec;
|
|
color: #666;
|
|
height: 25px;
|
|
}
|
|
|
|
.chksino label::before {
|
|
content: 'Si ';
|
|
padding: 1px;
|
|
padding-left: 15px !important;
|
|
padding-right: 14px !important;
|
|
font-size: 12px !important;
|
|
font-weight: normal !important;
|
|
display: inline-block;
|
|
background: #428bca;
|
|
color: #FFF;
|
|
height: 25px;
|
|
}
|
|
|
|
.e-big-btn {
|
|
height: 50px;
|
|
width: 200px;
|
|
}
|
|
|
|
.btn-xs {
|
|
padding: 0px 5px;
|
|
}
|
|
|
|
.nolineheight {
|
|
line-height: 1;
|
|
}
|
|
|
|
.claseesconder {
|
|
display: none;
|
|
}
|
|
|
|
.myventasbutton {
|
|
margin: 5px;
|
|
width: 170px;
|
|
}
|
|
|
|
body.dragging, body.dragging * {
|
|
cursor: move !important;
|
|
}
|
|
|
|
.dragged {
|
|
position: absolute;
|
|
opacity: 0.5;
|
|
z-index: 2000;
|
|
}
|
|
|
|
table.Sortable tr.placeholder {
|
|
display: block;
|
|
background: red;
|
|
position: relative;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: none;
|
|
}
|
|
|
|
.Sortable th.placeholder {
|
|
display: block;
|
|
background: red;
|
|
position: relative;
|
|
width: 0;
|
|
height: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.Sortable th.placeholder:before {
|
|
content: "";
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0;
|
|
border: 5px solid transparent;
|
|
border-top-color: red;
|
|
top: -6px;
|
|
margin-left: -5px;
|
|
border-bottom: none;
|
|
}
|
|
|
|
table.Sortable tr.placeholder:before {
|
|
content: "";
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0;
|
|
border: 5px solid transparent;
|
|
border-left-color: red;
|
|
margin-top: -5px;
|
|
left: -5px;
|
|
border-right: none;
|
|
}
|
|
|
|
.GvEst > tbody > tr > td:nth-child(2) {
|
|
padding-left: 36px;
|
|
}
|
|
|
|
.GvEst > tbody > tr.Totales > td:nth-child(2) {
|
|
padding-left: 4px;
|
|
}
|
|
|
|
.GvEst > tbody > tr.SubTotales > td:nth-child(2) {
|
|
padding-left: 12px;
|
|
}
|
|
|
|
.GvEst > tbody > tr.SubTotales2 > td:nth-child(2) {
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.GvEst > tbody > tr.SubTotales3 > td:nth-child(2) {
|
|
padding-left: 28px;
|
|
}
|
|
|
|
|
|
.GVAnticipos input {
|
|
text-align: right;
|
|
}
|
|
|
|
.modalBackground {
|
|
background-color: Black;
|
|
filter: alpha(opacity=90);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.modalPopup {
|
|
background-color: #FFFFFF;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.rbl input[type="radio"] {
|
|
margin-left: 10px;
|
|
margin-right: 1px;
|
|
}
|
|
|
|
a.mylkbutton:link, a.mylkbutton:hover, a.mylkbutton:active {
|
|
color: black;
|
|
}
|
|
|
|
.arrow {
|
|
left: 20%;
|
|
}
|
|
|
|
.popover {
|
|
width: 500px !important;
|
|
max-width: 500px !important;
|
|
}
|
|
|
|
.popover .popover-title {
|
|
margin: 0 !important;
|
|
text-align: center;
|
|
}
|
|
|
|
.select2anothertable {
|
|
position: absolute;
|
|
left: 100%;
|
|
background-color: white;
|
|
/*top: 50px;*/ top: 21px;
|
|
/*max-height: 200px;*/ max-height: 229px;
|
|
/*background-color: #dcdcdc;*/
|
|
overflow: hidden;
|
|
}
|
|
|
|
.select2anothertable {
|
|
position: absolute;
|
|
left: 100%;
|
|
background-color: white;
|
|
/*top: 50px;*/ top: 21px;
|
|
/*max-height: 200px;*/ max-height: 229px;
|
|
/*background-color: #dcdcdc;*/
|
|
overflow: hidden;
|
|
}
|
|
|
|
.select2anothertable > table > tbody > tr > td:nth-of-type(odd) {
|
|
background-color: rgba(220, 220, 220, 0.45);
|
|
}
|
|
|
|
.select2anothertable > table > tbody > tr > td {
|
|
line-height: 21px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.select2anothertable > table > tbody > tr.active {
|
|
background-color: #5897fb;
|
|
}
|
|
|
|
a.disabled {
|
|
pointer-events: none;
|
|
cursor: default;
|
|
}
|
|
|
|
/*Bootstrap text-uppercase =)*/
|
|
.Mayuscula {
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.no-padding {
|
|
padding: 0 !important;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
<asp:UpdatePanel ID="UpHB" runat="server">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="LkbEstadodeCaja" Visible="false" runat="server"><i class="fa fa-ad-excel"></i>Estado de Caja</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LkbIngreso" runat="server" OnClick="LkbIngreso_Click" Visible="false"><i class="fa fa-ad-excel"></i>Ingreso de Efectivo</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LkbRetiro" runat="server" OnClick="LkbRetiro_Click" Visible="false"><i class="fa fa-ad-excel"></i>Retiro de Efectivo</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkCobrosEnTranscurso" runat="server" OnClick="LnkCobrosEnTranscurso_Click"><i class="fa fa-money"></i>Cobros en Transcurso</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkEstadosCaja" runat="server" OnClick="LnkEstadosCaja_Click" Visible="false"><i class="fa fa-list" aria-hidden="true"></i>Ver estados de las cajas</asp:LinkButton>
|
|
</li>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Cobranza
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div id="IdPorlet" class="portlet solid grey-cascade portlet-filter" id="PortletPadre" style="">
|
|
<div class="portlet-title portlet-filterT smalltitle " style="">
|
|
<div class="tools">
|
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" />
|
|
<a href="javascript:;" class="expand" data-placement="left"></a>
|
|
</div>
|
|
<div class="titlefiltros caption">
|
|
<div class="row">
|
|
<div class="col-md-1 truncate">
|
|
Sucursal:
|
|
|
|
</div>
|
|
<div class="col-md-2 ">
|
|
<asp:DropDownList ID="DdlSubProyecto" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-small input-sm select2me" Width="100%">
|
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1 truncate" title="Fecha Inicio Documento" data-toggle="tooltip" data-placement="top">
|
|
Fecha Inicio Docto:
|
|
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
|
<asp:TextBox Width="80px" ID="txtFechaI" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="imgCalendario" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="Calendario" TargetControlID="txtFechaI" PopupButtonID="ImgCalendario" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="rfvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="cvFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="El campo <b>''Fecha Inicial''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="vcoFfvFI" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="vcoCvFI" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
<div class="col-md-1 truncate" title="Fecha Fin Documento" data-toggle="tooltip" data-placement="top">
|
|
Fecha Fin Docto:
|
|
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
|
<asp:TextBox Width="80px" ID="txtFechaF" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="imgCalendarioF" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
</div>
|
|
<ajax:MaskedEditExtender ID="MEEFechaF" runat="server" TargetControlID="txtFechaF" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="Calendario2" TargetControlID="txtFechaF" PopupButtonID="imgCalendarioF" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="rfvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> es requerido por la aplicación, por favor ingrese una fecha." ValidationGroup="Valida"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="cvFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="El campo <b>''Fecha Final''</b> no tienes el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="Valida"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="vcoRfvFF" runat="server" HighlightCssClass="vco" TargetControlID="rfvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="vcoCvFF" runat="server" HighlightCssClass="vco" TargetControlID="cvFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body" style="display: none;">
|
|
<div class="row">
|
|
|
|
<div class="col-md-1">
|
|
Solo pagadas:
|
|
</div>
|
|
<div class="col-md-1" style="padding-top: 6px">
|
|
<asp:CheckBox ID="ChkMostrarSoloPagados" CssClass="chksino" runat="server" Text="Ver Solo pagadas" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<asp:UpdatePanel ID="UpL" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<div runat="server" id="DVCobraza" visible="true">
|
|
<div class="row">
|
|
<asp:UpdatePanel ID="UpTurno" runat="server" UpdateMode="Conditional" Visible="false" class="portlet light xspadding bordered whitoutcol" style="width: 20%; display: flex; flex-direction: row; color: white; background-color: #c49f47">
|
|
<ContentTemplate>
|
|
<div id="DivTurno" runat="server" style="width: 100%; text-align: center;">
|
|
Turno:
|
|
<asp:Label runat="server" ID="LblTurno"></asp:Label>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
|
|
<div class="portlet light xspadding traspasorow bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<span class="caption-subject bold uppercase" style="line-height: 1;">Ventas pendientes de pago </span>
|
|
</div>
|
|
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<div class="row" style="margin-left: 0px; text-align: right" align="left">
|
|
<div style="margin-right: 15px">
|
|
<input type="text" id="TxtBusquedaVentas" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaVentas','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaVentas','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" Width="100%"
|
|
EmptyDataText="No se encontraron Ventas con los filtros especificados" data-sort="true" ToolTip="Listado de Ventas"
|
|
CssClass="ScrollAD table table-striped table-hover Widthall mysmallbtn" data-heighterror="320" data-freezecols="0" data-freezerows="0" GridLines="None"
|
|
DataKeyNames="CveVenta,CveCliente,TipoDocto,Saldo,AtencionA,CveFormaPago33,SerieFolio,CondicionesPago,PlazoCobranza">
|
|
<Columns>
|
|
<%--<asp:BoundField HeaderText="Atención" DataField="AtencionA" />--%>
|
|
<asp:TemplateField HeaderText="Atención/Cliente" ItemStyle-HorizontalAlign="Left">
|
|
<ItemTemplate>
|
|
<asp:Label runat="server" ID="LblAtencionA" Font-Italic="true" Text='<%# Eval("AtencionA") %>'></asp:Label><br />
|
|
<asp:Label runat="server" ID="Label4" Text='<%# Eval("NombreComercial") %>'></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:HyperLinkField HeaderText="Folio" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="SerieFolio" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField HeaderText="Fecha/Hora" DataField="Fecha" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField HeaderText="Importe" DataField="Saldo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LnkImprimir" runat="server" AlternateText="Imprimir ticket"
|
|
CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-print'></i>" ToolTip="Imprimir"
|
|
OnClick="LnkImprimir_Click" Visible="false" />
|
|
|
|
<asp:LinkButton ID="BtnPagar" runat="server" CssClass="btn btn-xs btn-success" Text="Cobrar" CommandName="Cobrar" CommandArgument='<%# Eval("CveVenta") %>' />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="portlet light xspadding traspasorow bordered" id="DivNoTimbradas" runat="server" visible="false">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<span class="caption-subject bold uppercase" style="line-height: 1; color: #ff6000;">Facturas No Timbradas</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<div class="row" style="margin-left: 0px; text-align: right" align="left">
|
|
<div style="margin-right: 15px">
|
|
<input type="text" id="TxtBusquedaTimbrar" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaTimbrar','{0}')", GvPendientesTimbrar.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaTimbrar','{0}')", GvPendientesTimbrar.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:GridView ID="GvPendientesTimbrar" runat="server" AutoGenerateColumns="false" EmptyDataText=""
|
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" data-sort="true" data-height="200" GridLines="None" Width="99%">
|
|
<Columns>
|
|
<asp:BoundField DataField="CentroCostos" HeaderText="Sucursal" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Fecha" ItemStyle-Width="15%" HeaderText="Fecha" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
|
<asp:BoundField DataField="TipoDocto" HeaderText="Tipo Docto" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:HyperLinkField HeaderText="Folio" DataTextField="SerieFolio" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" Target="_blank" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Total" HeaderText="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:BoundField DataField="AbreviaturaSAT" HeaderText="Moneda" ItemStyle-HorizontalAlign="Center" />
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="portlet light xspadding traspasorow bordered" runat="server" visible="false" id="DivCancelacionesPendientes">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<span class="caption-subject bold uppercase" style="line-height: 1; color: #ff6000;">Cancelaciones en proceso</span>
|
|
</div>
|
|
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<div class="row" style="margin-left: 0px; text-align: right" align="left">
|
|
<div style="margin-right: 15px">
|
|
<input type="text" id="TxtBusqueda1" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda1','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<asp:GridView ID="GvCancelaciones" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron solicitudes de cancelación" OnRowDataBound="GvCancelaciones_RowDataBound"
|
|
DataKeyNames="CveVenta,CveCliente,Folio,TipoDocto,Nombre,FolioFiscal,Total,SubTotal,RFCReceptor,CveEstatusRefacturacion"
|
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" GridLines="None" Width="100%">
|
|
<Columns>
|
|
<asp:BoundField HeaderText="Cliente" DataField="Nombre" ItemStyle-Width="25%" />
|
|
<asp:HyperLinkField HeaderText="Serie Folio" DataTextField="SerieFolio" DataNavigateUrlFields="CveVenta" ItemStyle-Width="15%" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" />
|
|
<asp:BoundField HeaderText="Importe" DataField="Total" DataFormatString="{0:N2}" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:BoundField HeaderText="Fecha Solicitud" DataField="FechaCambioEstatus" ItemStyle-Width="15%" />
|
|
<asp:BoundField HeaderText="Motivo" DataField="MotivoCancelacion" ItemStyle-Width="25%" />
|
|
<asp:TemplateField ItemStyle-Width="5%">
|
|
<ItemTemplate>
|
|
<asp:LinkButton runat="server" ID="BtnValidar" OnClick="BtnValidar_Click" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea verificar la cancelación?" data-btn-ok-label="si"></asp:LinkButton>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:Panel runat="server" ID="PnlContado" DefaultButton="BtnPagar" Visible="false">
|
|
<div class="row">
|
|
|
|
<div class="note note-success">
|
|
<div class="row">
|
|
<div class="col-md-2">
|
|
<b>Nombre:</b>
|
|
</div>
|
|
<div class="col-md-4"> <label><asp:Literal ID="LtlNombre" runat="server"></asp:Literal></label> </div>
|
|
|
|
<div class="col-md-1"><b>Folio:</b></div>
|
|
<div class="col-md-2"> <label><asp:Literal ID="LtlFolio" runat="server"></asp:Literal></label> </div>
|
|
|
|
<div class="col-md-1">
|
|
<b>
|
|
<asp:Literal ID="LtLTipoSaldo" runat="server" Text="Total:"></asp:Literal></b>
|
|
</div>
|
|
<div class="col-md-1">
|
|
<b>
|
|
<asp:TextBox ID="LtlSaldo" runat="server" Enabled="true" CssClass="TextBoxAsLabel" BorderStyle="None" BackColor="Transparent" ForeColor="#3c763d" Style="text-align: left"></asp:TextBox>
|
|
</b>
|
|
</div>
|
|
<div class="col-md-1" style="text-align: right;">
|
|
<asp:LinkButton ID="LnkLiberar" runat="server" CssClass="btn btn-xs btn-success" Text="Liberar" OnClick="LnkLiberar_Click" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div>
|
|
|
|
<div runat="server" id="DivContadoBancos" class="row" visible="True">
|
|
<div class="col-md-12">
|
|
<div class="chequesie1">
|
|
<div class="row">
|
|
<label class="col-md-2">Efectivo:</label>
|
|
<div class="col-md-4 input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtImporteEfectivo" CssClass="form-control input-sm " runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTBEImporteContado" runat="server" TargetControlID="TxtImporteEfectivo" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:DropDownList ID="DdlCuentaEfectivo" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="100%"></asp:DropDownList>
|
|
<asp:CustomValidator ID="RFVCuenta" runat="server" ClientValidationFunction="ValidaCuentaEfectivo" ControlToValidate="DdlCuentaEfectivo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAgregarPago"></asp:CustomValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOCuenta" runat="server" HighlightCssClass="vco" TargetControlID="RFVCuenta" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="chequesie1">
|
|
<div class="row">
|
|
<label class="col-md-2">Crédito:</label>
|
|
<div class="col-md-4 input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtImporteCredito" CssClass="form-control input-sm " runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxtImporteCredito" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
<div class="col-md-6" runat="server" id="DivDdlCuentaTarjetaCredito" style="margin-right: -40px">
|
|
<asp:DropDownList ID="DdlCuentaTarjetaCredito" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="100%"></asp:DropDownList>
|
|
<asp:CustomValidator ID="RequiredFieldValidator1" runat="server" ClientValidationFunction="ValidaCuentaCredito" ControlToValidate="DdlCuentaTarjetaCredito" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAgregarPago"></asp:CustomValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" HighlightCssClass="vco" TargetControlID="RequiredFieldValidator1" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
<div class="col-md-3" runat="server" id="DivMesesSinIntereses" visible="false" style="text-align: right;">
|
|
<asp:DropDownList ID="DDlMesesSinIntereses" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="80%">
|
|
<asp:ListItem Value="-1">MSI</asp:ListItem>
|
|
<asp:ListItem Value="3">3M</asp:ListItem>
|
|
<asp:ListItem Value="6">6M</asp:ListItem>
|
|
<asp:ListItem Value="9">9M</asp:ListItem>
|
|
<asp:ListItem Value="12">12M</asp:ListItem>
|
|
</asp:DropDownList>
|
|
<%--<asp:RequiredFieldValidator ID="RFVDDlMesesSinIntereses" runat="server" ControlToValidate="DDlMesesSinIntereses" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />campo <b>''Meses sin intereses''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAgregarPago"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="CEDDlMesesSinIntereses" runat="server" HighlightCssClass="vco" TargetControlID="RFVDDlMesesSinIntereses" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="chequesie1">
|
|
<div class="row">
|
|
<label class="col-md-2">Débito:</label>
|
|
<div class="col-md-4 input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtImporteDebito" CssClass="form-control input-sm " runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="TxtImporteDebito" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:DropDownList ID="DdlCuentaTarjetaDebito" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="100%"></asp:DropDownList>
|
|
<asp:CustomValidator ID="RequiredFieldValidator4" runat="server" ClientValidationFunction="ValidaCuentaDebito" ControlToValidate="DdlCuentaTarjetaDebito" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAgregarPago"></asp:CustomValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server" HighlightCssClass="vco" TargetControlID="RequiredFieldValidator4" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="chequesie1">
|
|
<div class="row">
|
|
<label class="col-md-2">Cheque:</label>
|
|
<div class="col-md-4 input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtImporteCheque" CssClass="form-control input-sm " runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTBECheque" runat="server" TargetControlID="TxtImporteCheque" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:DropDownList ID="DdlCuentaCheque" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="100%"></asp:DropDownList>
|
|
<asp:CustomValidator ID="RequiredFieldValidator3" runat="server" ClientValidationFunction="ValidaCuentaCheque" ControlToValidate="DdlCuentaCheque" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAgregarPago"></asp:CustomValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender11" runat="server" HighlightCssClass="vco" TargetControlID="RequiredFieldValidator3" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="DivDatosCheque" runat="server" visible="false" style="padding-top: 8px;">
|
|
<div class="col-md-12">
|
|
<div class="row">
|
|
<label class="col-md-2">Clave de aut.:</label>
|
|
<div class="col-md-4">
|
|
<asp:TextBox ID="TxtClaveAutorizacion" CssClass="form-control input-sm " runat="server" MaxLength="50" Width="100px" ClientIDMode="Static"></asp:TextBox>
|
|
</div>
|
|
<label class="col-md-3">¿Quién autorizó?:</label>
|
|
<div class="col-md-3">
|
|
<asp:TextBox ID="TxtAutorizo" CssClass="form-control input-sm " runat="server" MaxLength="50" Width="125px" ClientIDMode="Static"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="chequesie1" id="DivTransferencia" runat="server">
|
|
<div class="row">
|
|
<label class="col-md-2">Transf.:</label>
|
|
<div class="col-md-4 input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtImporteTransferencia" CssClass="form-control input-sm " runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTBETransferencia" runat="server" TargetControlID="TxtImporteTransferencia" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:DropDownList ID="DdlCuentaTransferencia" runat="server" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="100%"></asp:DropDownList>
|
|
<asp:CustomValidator ID="RFVTransferencia" runat="server" ClientValidationFunction="ValidaCuentaTransferencia" ControlToValidate="DdlCuentaTransferencia" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAgregarPago"></asp:CustomValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCETransferencia" runat="server" HighlightCssClass="vco" TargetControlID="RFVTransferencia" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="chequesie1" id="DivAnticipo" runat="server" visible="false">
|
|
<div class="row">
|
|
<div class="col-md-2">
|
|
<label>Anticipos:</label><asp:LinkButton ID="ImgAntiPend" Visible="false" OnClick="ImgAntiPend_Click" runat="server" Text=" <i class='fa fa-money' style='font-size: 18px !important; color: #3c763d !important;'></i> " AlternateText="Aplicación de anticipos" Style="cursor: pointer;" />
|
|
</div>
|
|
<div class="col-md-4 input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtNCDev" CssClass="form-control input-sm " runat="server" MaxLength="12" Width="100px" Enabled="false" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTEAnticipo" runat="server" TargetControlID="TxtNCDev" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label>
|
|
<asp:UpdatePanel ID="UPPCobranza" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<asp:Literal ID="LtlTipoAnticipo" runat="server"></asp:Literal></label>
|
|
<%--<asp:HiddenField ID="HdnTipoAmortizacion" runat="server" Value="" />--%>
|
|
<asp:LinkButton ID="LnkCxC" runat="server" CssClass="btn btn-xs btn-success" Text="Cobranza" OnClick="LnkCxC_Click" />
|
|
|
|
</div>
|
|
<div class="col-md-6">
|
|
<asp:TextBox ID="TxtCxCAplicado" CssClass="form-control input-sm TextBoxAsLabel" runat="server" MaxLength="12" Width="100px" Enabled="false" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
</div>
|
|
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<asp:UpdatePanel class="chequesie1" runat="server" ID="UpContadoOtros" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-2">
|
|
<label>TD/TC/Trans.:</label>
|
|
</div>
|
|
<div class="col-md-4 input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtImporteOtrosContado" CssClass="form-control input-sm " runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FETxtImporteOtrosContado" runat="server" TargetControlID="TxtImporteOtrosContado" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
|
|
<div class="col-md-2">
|
|
<asp:DropDownList runat="server" ID="DdlOtroFormaPago" CssClass="form-control input-sm select2me" AutoPostBack="true" OnSelectedIndexChanged="DdlOtroFormaPago_SelectedIndexChanged">
|
|
<asp:ListItem Value="-1">Seleccione</asp:ListItem>
|
|
<asp:ListItem Value="1">Debito</asp:ListItem>
|
|
<asp:ListItem Value="2">Crédito</asp:ListItem>
|
|
<asp:ListItem Value="3">Transferencia</asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<asp:DropDownList ID="DdlCuentaOtrosContado" runat="server" CssClass="form-control input-sm select2me" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="100%"></asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel runat="server" ID="UPPTotalesContado" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="chequesie2">
|
|
<div class="row">
|
|
<div class="col-md-4" style="display: flex; align-items: center;">
|
|
<label style="font-weight: bold; font-size: medium;">Total:</label>
|
|
<div class="input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtImporteContado" CssClass="form-control input-sm " runat="server" MaxLength="12" Width="180px" ReadOnly="true" ClientIDMode="Static" Style="text-align: right; font-size: 14px;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="TxtImporteContado" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
</div>
|
|
<div class="col-md-8">
|
|
<div class="row">
|
|
<div class="col-md-4" style="display: flex; align-items: center;">
|
|
<label id="lblCambio" runat="server" style="font-weight: bold; font-size: medium;">Cambio:</label>
|
|
<div class="input-icon">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:HiddenField ID="HdnSobranteFaltante" Value="0" ClientIDMode="Static" runat="server" />
|
|
<asp:TextBox ID="TxtCambio" CssClass="form-control input-sm " Enabled="false" runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right; font-size: 14px;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FTBECambio" runat="server" TargetControlID="TxtCambio" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
</div>
|
|
<div class="col-md-8" style="display: flex; align-items: center;">
|
|
<label style="font-weight: bold; font-size: medium;">Sob/falt:</label>
|
|
|
|
<asp:CheckBox ID="ChkSobFaltante" runat="server" ClientIDMode="Static" />
|
|
<div class="input-icon" style="margin-left: 20px;">
|
|
<i style="margin: 0px;">$</i>
|
|
<asp:TextBox ID="TxtFaltante" CssClass="form-control input-sm" onkeyup="ValidaSobranteFaltante()" runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right; font-size: 14px;"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" TargetControlID="TxtCambio" FilterType="Custom, Numbers" ValidChars=".," />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<div class="chequesie2" id="divPagar">
|
|
<div class="row">
|
|
<div class="col-md-12" style="text-align: center;">
|
|
<asp:HiddenField ID="HdnCveVenta" runat="server" />
|
|
<asp:HiddenField ID="HdnCveCliente" runat="server" />
|
|
<asp:HiddenField ID="HdnPlazoCobranza" runat="server" />
|
|
<asp:HiddenField ID="HdnVentaCondicionesPago" runat="server" />
|
|
<asp:HiddenField ID="HdnCveIE" runat="server" />
|
|
<asp:HiddenField ID="HdnTotal" runat="server" ClientIDMode="Static" />
|
|
<asp:Button ID="BtnPagar" CssClass="btn btn-large btn-success e-big-btn" runat="server" Text="Pagar" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</asp:Panel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div runat="server" id="DVPagado" visible="false">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<asp:GridView ID="GvD" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontró ningun corte"
|
|
DataKeyNames="CveVenta,CveIE,CveTipoTransaccion,CveCuenta,SerieFolio"
|
|
ToolTip="Reporte de Cortes" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn ScrollAD" Style="position: static" UseAccessibleHeader="false" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
|
<HeaderTemplate>
|
|
Serie - Folio
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="LBDescripcion" runat="server" Text='<%# Eval("SerieFolio") %>' NavigateUrl='<%# Eval("CveVenta", "/Ventas/Ventas.aspx?CveVenta={0}")%>'></asp:HyperLink>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Cliente" DataField="NombreComercial" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:TemplateField HeaderText="Total" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Label ID="LblTotal" Text='<%# Eval("ImportePagado", "{0:N2}") %>' runat="server"></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Método Pago" DataField="MetodoPago" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="" ItemStyle-Width="80">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LnkEditarPago" runat="server" AlternateText="Editar" Visible="false" CausesValidation="False" CssClass="btn btn-circle btn-sm green" OnClick="LnkEditarPago_Click" Text="<i class='fa fa-pencil'></i>" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<HeaderStyle CssClass="Titulos" />
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<cc1:ModalPopupExtender ID="mp1" runat="server" PopupControlID="PanelIniciarTurno" TargetControlID="btnShow"
|
|
CancelControlID="btnClose" BackgroundCssClass="modalBackground">
|
|
</cc1:ModalPopupExtender>
|
|
|
|
<cc1:ModalPopupExtender ID="MPEBloqueo" runat="server" PopupControlID="PanelBloqueo" TargetControlID="btnShowBloqueo" BackgroundCssClass="modalBackground">
|
|
</cc1:ModalPopupExtender>
|
|
|
|
<asp:Panel ID="PanelIniciarTurno" runat="server" CssClass="modalPopup" align="center" Style="display: none">
|
|
|
|
<table border="0" width="250px" cellspacing="1" style="background-color: White; padding-left: 10px;">
|
|
<tr style="background-color: #3598dc; color: #FFFFFF; font-size: 14px">
|
|
<td>Inicio de Turno </td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="1"> </td>
|
|
<td colspan="1"> </td>
|
|
</tr>
|
|
<tr align="left">
|
|
<td>
|
|
<asp:Label runat="server" Font-Bold="true" ID="Label3">Sucursal:</asp:Label>
|
|
</td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlSucursalCorte" runat="server" CssClass="form-control input-sm" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="170px"></asp:DropDownList>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="1">
|
|
<asp:Label runat="server" Text="Dinero En Caja:" Font-Bold="true" Width="120px" />
|
|
</td>
|
|
<td colspan="1">
|
|
<asp:TextBox ID="TxtDineroCaja" runat="server" Width="170px" onkeyup="javascript:this.value=Comma(this.value);" />
|
|
<asp:RegularExpressionValidator ID="REVCaja" runat="server" ControlToValidate="TxtDineroCaja" Display="None" ErrorMessage="El campo <b>''Dinero''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationExpression="^([1-9]{1}[\d]{0,2}(\,[\d]{3})*(\.[\d]{0,4})?|[1-9]{1}[\d]{0,}(\.[\d]{0,4})?|0(\.[\d]{0,2})?|(\.[\d]{1,4})?)$" ValidationGroup="GprIniciarTruno"></asp:RegularExpressionValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="REVCaja" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="1"> </td>
|
|
<td colspan="1"> </td>
|
|
</tr>
|
|
</table>
|
|
<asp:Button ID="BtnIniciarTurno" runat="server" CssClass="btn btn-success" Text="Iniciar Turno" ValidationGroup="GprIniciarTruno" />
|
|
|
|
<asp:Button ID="BtnCancelar" runat="server" CssClass="btn btn-danger" Text="Cancelar" />
|
|
|
|
</asp:Panel>
|
|
<asp:Panel ID="PanelBloqueo" runat="server" CssClass="modalPopup" align="center" Style="display: none">
|
|
<table border="0" width="650px" cellspacing="1" style="background-color: White; padding-left: 10px;">
|
|
<tr style="background-color: #3598dc; color: #FFFFFF; font-size: 14px">
|
|
<td>Pantalla Bloqueada </td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="1"> </td>
|
|
<td colspan="1"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<div class="row">
|
|
<div class="col-md-12" style="vertical-align: middle;" align="center">
|
|
<div style="z-index: 5; position: relative;">
|
|
<div id="DivAdvertenciaBloqueo" clientidmode="Static" runat="server" class="alert alert-warning" style="padding: 5px; margin-bottom: 5px; padding-right: 25px;">
|
|
<strong style="font-size: 20px; margin-right: 25px;">Información: </strong>
|
|
<asp:Literal ID="LblMotivoBloqueo" runat="server" Text=""></asp:Literal>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<div class="portlet light smmallpadding traspasorow bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<span class="caption-subject bold uppercase" style="line-height: 1;">Estado de caja</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:Label ID="LblEfectivoBloqueo" CssClass="form-control" runat="server"></asp:Label>
|
|
<label for="<%= LblEfectivoBloqueo.ClientID.ToString()%>">Efectivo Esperado:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtEfectivoCajaBloqueo" CssClass="form-control" runat="server" onkeyup="javascript:this.value=Comma(this.value);" />
|
|
<asp:RegularExpressionValidator ID="REVEfectivoCajaBloqueo" runat="server" ControlToValidate="TxtEfectivoCajaBloqueo" Display="None" ErrorMessage="El campo <b>''Dinero''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationExpression="^([1-9]{1}[\d]{0,2}(\,[\d]{3})*(\.[\d]{0,4})?|[1-9]{1}[\d]{0,}(\.[\d]{0,4})?|0(\.[\d]{0,2})?|(\.[\d]{1,4})?)$" ValidationGroup="GprBloqueo"></asp:RegularExpressionValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender25" runat="server" HighlightCssClass="vco" TargetControlID="REVEfectivoCajaBloqueo" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= TxtEfectivoCajaBloqueo.ClientID.ToString()%>">Efectivo en Caja:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="LblDiferenciaCajaBloqueo" CssClass="form-control" runat="server" Enabled="false" />
|
|
<label for="<%= LblDiferenciaCajaBloqueo.ClientID.ToString()%>">Diferencia:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="1"> </td>
|
|
<td colspan="1"> </td>
|
|
</tr>
|
|
</table>
|
|
<asp:LinkButton ID="BtnCerrarBloqueo" runat="server" CssClass="btn btn-danger" Text="Cerrar Turno" ValidationGroup="GprBloqueo" />
|
|
</asp:Panel>
|
|
|
|
<div id="DivTerminarCorte" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel ID="UpTerminarCorte" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-dialog" style="width: 470px; min-width: 470px;">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label runat="server" Text="Cierre de Turno"></asp:Label>
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:Label ID="LblEfectivoEsperado" CssClass="form-control" runat="server"></asp:Label>
|
|
<label for="<%= LblEfectivoEsperado.ClientID.ToString()%>">Efectivo Esperado:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtEfectivoEnCaja" CssClass="form-control" runat="server" onkeyup="javascript:this.value=Comma(this.value);" />
|
|
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TxtEfectivoEnCaja" Display="None" ErrorMessage="El campo <b>''Dinero''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationExpression="^([1-9]{1}[\d]{0,2}(\,[\d]{3})*(\.[\d]{0,4})?|[1-9]{1}[\d]{0,}(\.[\d]{0,4})?|0(\.[\d]{0,2})?|(\.[\d]{1,4})?)$" ValidationGroup="GprCorteCaja"></asp:RegularExpressionValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" HighlightCssClass="vco" TargetControlID="RegularExpressionValidator2" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= TxtEfectivoEnCaja.ClientID.ToString()%>">Efectivo en Caja:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<label for="<%= LblEfectivoEsperado.ClientID.ToString()%>">Diferencia:</label>
|
|
<asp:Label ID="LblDiferenciaCaja" CssClass="form-control" runat="server" TextMode="MultiLine" Width="500px"></asp:Label>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnCerrarTurno" runat="server" CssClass="btn btn-success" Text="Cerrar Turno" ValidationGroup="GprCorteCaja" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
<div id="DivIngresoEgreso" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel ID="UpIngresoEgreso" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:HiddenField ID="HdnTipoMovimiento" runat="server" ClientIDMode="Static" Value="-1" />
|
|
<div class="modal-dialog" style="width: 470px; min-width: 470px;">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label runat="server" ID="LblTituloIE" Text="" />
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtCantidadIE" CssClass="form-control" runat="server" Width="170px" />
|
|
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxtCantidadIE" Display="None" ErrorMessage="El campo <b>''Dinero''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationExpression="^([1-9]{1}[\d]{0,2}(\,[\d]{3})*(\.[\d]{0,4})?|[1-9]{1}[\d]{0,}(\.[\d]{0,4})?|0(\.[\d]{0,2})?|(\.[\d]{1,4})?)$" ValidationGroup="GprIngresoEgreso"></asp:RegularExpressionValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server" HighlightCssClass="vco" TargetControlID="RegularExpressionValidator1" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= TxtCantidadIE.ClientID.ToString()%>">Cantidad:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<asp:CheckBox ID="ChkAplicaGasto" runat="server" Text="Gasto" AutoPostBack="true" OnCheckedChanged="ChkAplicaGasto_CheckedChanged" />
|
|
</div>
|
|
<div class="col-md-6" runat="server" visible="false" id="DivCuentaGasto">
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
Origen:
|
|
</div>
|
|
<div class="col-md-9">
|
|
<asp:DropDownList ID="DdlCuentaGastoOrigen" runat="server" CssClass="form-control input-sm select2me" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="100%"></asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
Destino:
|
|
</div>
|
|
<div class="col-md-9">
|
|
<asp:DropDownList ID="DdlCuentaGastoDestino" runat="server" CssClass="form-control input-sm select2me" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Width="100%"></asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<label for="<%= TxtDescripcionIE.ClientID.ToString()%>">Descripción:</label>
|
|
<asp:TextBox runat="server" ID="TxtDescripcionIE" CssClass="form-control" TextMode="MultiLine" Width="500px" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnAceptarIE" runat="server" CssClass="btn btn-success" Text="Aceptar" ValidationGroup="GprIngresoEgreso" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
<asp:Button ID="btnShow" runat="server" Text="Show Modal Popup" Style="visibility: hidden; display: none;" />
|
|
<asp:Button ID="btnClose" runat="server" CssClass="btn btn-danger" Style="visibility: hidden; display: none;" Text="Cancelar" />
|
|
<asp:Button ID="btnShowBloqueo" runat="server" Text="Show Modal Popup" Style="visibility: hidden; display: none;" />
|
|
|
|
<div id="DivEstadoCaja" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog" style="width: 470px; min-width: 470px;">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label runat="server" Text="Estado de Caja"></asp:Label>
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:UpdatePanel ID="UpDineroCaja" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<b>Dinero en Caja</b>
|
|
<asp:GridView ID="GvDineroCaja" BorderWidth="0px" ShowHeader="False" runat="server" Height="200px" horizontal-align="Right" vertical-align="Top" GridLines="None" ShowHeaderWhenEmpty="False" AutoGenerateColumns="False" EmptyDataText="">
|
|
<Columns>
|
|
<asp:BoundField ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<Columns>
|
|
<asp:BoundField DataFormatString="{0}:" ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtImporte" runat="server" Text='<%# Eval("Importe", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UpMetodosPago" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<b>Metodos de Pago</b>
|
|
<asp:GridView ID="GvMetodosPago" BorderWidth="0px" ShowHeader="False" runat="server" Height="200px" horizontal-align="Right" vertical-align="Top" DataKeyNames="CveTipoTransaccion" GridLines="None" ShowHeaderWhenEmpty="False" AutoGenerateColumns="False" EmptyDataText="">
|
|
<Columns>
|
|
<asp:BoundField ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTipoTransaccion" runat="server" Text='<%# Eval("TipoTransaccion") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<Columns>
|
|
<asp:BoundField DataFormatString="{0}:" ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtImporte" runat="server" Text='<%# Eval("Importe", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UpIngresos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<b>Ingresos</b>
|
|
<asp:GridView ID="GvIngresos" BorderWidth="0px" ShowHeader="False" runat="server" horizontal-align="Right" vertical-align="Top" GridLines="None" ShowHeaderWhenEmpty="False" AutoGenerateColumns="False" EmptyDataText="">
|
|
<Columns>
|
|
<asp:BoundField ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<Columns>
|
|
<asp:BoundField DataFormatString="{0}:" ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtImporte" runat="server" Text='<%# Eval("Importe", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UpEgresos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<b>Retiros</b>
|
|
<asp:GridView ID="GvEgresos" BorderWidth="0px" ShowHeader="False" runat="server" horizontal-align="Right" vertical-align="Top" GridLines="None" ShowHeaderWhenEmpty="False" AutoGenerateColumns="False" EmptyDataText="">
|
|
<Columns>
|
|
<asp:BoundField ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTipoTransaccion" runat="server" Text='<%# Eval("Descripcion") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<Columns>
|
|
<asp:BoundField DataFormatString="{0}:" ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtImporte" runat="server" Text='<%# Eval("Importe", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<asp:Button OnClick="BtnCerrarCaja_Click" ID="BtnCerrarCaja" runat="server" Text="Cerrar Turno" CssClass="btn btn-success" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="DVModalPagos" class="modal ADS fade" role="dialog">
|
|
|
|
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpModalPago" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<h4 class="modal-title">
|
|
<asp:Label ID="LblModalPagoTitulo" runat="server">Editar Pago</asp:Label>
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="form-group col-md-12 form-md-line-input">
|
|
<asp:DropDownList ID="DdlTipoTransaccion" CssClass="form-control input-sm select2me" ClientIDMode="Static" runat="server" DataTextField="TipoTransaccion" DataValueField="CveTipoTransaccion" ValidationGroup="GrpGuardarPago" Width="100%">
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVTipoTransaccion" runat="server" ControlToValidate="DdlTipoTransaccion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Transaccion''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardarPago"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOTipoTransaccion" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoTransaccion" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<asp:HiddenField ID="HdnTipoTransaccion" runat="server" Value="" />
|
|
<asp:Label runat="server" Style="width: 90%; color: #888888;" AssociatedControlID="DdlTipoTransaccion">Movimiento:</asp:Label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="form-group col-md-12 form-md-line-input">
|
|
<asp:DropDownList ID="DdlCuenta" CssClass="form-control input-sm select2me" ClientIDMode="Static" runat="server" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" ValidationGroup="GrpGuardarPago" Enabled="false" Width="100%">
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVCuentaModal" runat="server" ControlToValidate="DdlCuenta" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardarPago"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="RFVCuentaModal" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<asp:Label runat="server" Style="width: 90%; color: #888888;" AssociatedControlID="DdlCuenta">Cuenta:</asp:Label>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:LinkButton ID="LnkDvModalPagoAceptar" ClientIDMode="Static" runat="server" CssClass="btn btn-primary" OnClick="LnkDvModalPagoAceptar_Click" Text="Aceptar" ValidationGroup="GrpGuardarPago" />
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="DVModalCobrosEnTranscurso" class="modal ADS fade" role="dialog">
|
|
|
|
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpDVModalCobrosEnTranscurso" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<h4 class="modal-title">
|
|
<asp:Label ID="Label1" runat="server">Cobros en Transcurso</asp:Label>
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
<asp:GridView ID="GvModalCobrosEnTranscurso" runat="server" AutoGenerateColumns="False" Width="100%"
|
|
EmptyDataText="Cobros en Transcursos" data-sort="true" ToolTip="Cobros en Transcurso"
|
|
CssClass="ScrollAD table table-striped table-hover Widthall mysmallbtn" data-heighterror="320" data-freezecols="0" data-freezerows="0" GridLines="None"
|
|
DataKeyNames="CveVenta,TipoDocto,Saldo,AtencionA,CveFormaPago33,SerieFolio">
|
|
<Columns>
|
|
<asp:BoundField HeaderText="Atención" DataField="AtencionA" />
|
|
<asp:HyperLinkField HeaderText="Folio" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="SerieFolio" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField HeaderText="Fecha/Hora" DataField="Fecha" ItemStyle-HorizontalAlign="Center" />
|
|
<asp:BoundField HeaderText="Importe" DataField="Saldo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
|
<asp:BoundField HeaderText="Usuario" DataField="UsuarioCobranza" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
|
</div>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
<div id="DivAnticipos" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel runat="server" ID="UpAnticipos" UpdateMode="Conditional" RenderMode="Inline">
|
|
<ContentTemplate>
|
|
<div class="modal-dialog" style="width: 700px;">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label runat="server">Anticipos/NC del Cliente: <asp:Literal ID="LtlCliente" runat="server"></asp:Literal></asp:Label>
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div style="max-height: 700px; overflow-y: auto;">
|
|
<div class="row" style="margin-left: 0px; text-align: right" align="left">
|
|
<div class="col-md-2">
|
|
<asp:LinkButton ID="LnkRecargaAnticipos" NavigateUrl="#" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-refresh'></i> Actualizar" runat="server" OnClick="LnkRecargaAnticipos_Click" />
|
|
</div>
|
|
<div style="margin-right: 15px">
|
|
<input type="text" id="TxtBusquedaAnticipos" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaAnticipos','{0}')", GVAnticipos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaAnticipos','{0}')", GVAnticipos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-12" style="display: flex; justify-content: end; font-size: 16px; font-weight: bold;">
|
|
<span>Total: </span>
|
|
<asp:Label ID="LblTotalAnticipos" runat="server" ClientIDMode="Static" Text="0.00"></asp:Label>
|
|
</div>
|
|
</div>
|
|
|
|
<asp:GridView ID="GVAnticipos" runat="server" AutoGenerateColumns="False" ClientIDMode="Static" EmptyDataText="No se encontraron Anticipos del Cliente"
|
|
ToolTip="Listado de Anticipos" CssClass="GVAnticipos table table-striped table-hover Widthall mysmallbtn" data-height="300" GridLines="None"
|
|
DataKeyNames="ISTotal,Saldo,CveIE,Folio,Tipo,CveVenta,CveConceptoContable,CveConceptoContableAmor, TotalAnticipo, SubTotalAnticipo, IVAAnticipo,IEPS, ImpuestosLocalesAnticipo, SubTotalAmortizacion, SubTotal, Original, IVA, RetIVA, RetISR, FolioFiscal, CveClasificacionNC, TipoCambio,TipoCambioPago,TipoCambioHoy, CveMoneda,Fecha,SaldoSubTotal,SaldoConImpuestos,RegresarImpuesto,DevolucionImportePagado,CveCliente,Descuentos">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="Chk" runat="server" />
|
|
<asp:LinkButton ID="LnkSolicitarActivarAnticipo" Visible="false" NavigateUrl="#" CssClass="btn btn-circle btn-sm blue" Text="<i class='fa fa-check'></i>" ToolTip="Solicitar activar anticipo" runat="server" OnClick="LnkSolicitarActivarAnticipo_Click" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Folio</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFactura" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Fecha</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Saldo</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlAnticipos" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Tipo</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTipo" runat="server" Text='<%# Eval("Tipo") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>Moneda Venta</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="MonedaVenta" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Moneda</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlAbreviatura" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>Atención A</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal runat="server" Text='<%# Eval("AtencionA") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Amort. Ant.</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtAnticipo" CssClass="CSGATxtAnticipo" runat="server" CausesValidation="true" MaxLength="12" Width="76px"></asp:TextBox>
|
|
<asp:CompareValidator ID="CVAmortAnti" runat="server" ControlToValidate="TxtAnticipo" Display="None" ErrorMessage="El campo <b>''Amortización de Anticipos''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="VGAnticiposClientes"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOAmortAnti" runat="server" HighlightCssClass="vco" TargetControlID="CVAmortAnti" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="T.C." Visible="false">
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtTC" runat="server" Width="50px" Enabled="false"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="BtnAceptarAnticipos" runat="server" Text="Aceptar" class="btn btn-primary" ValidationGroup="VGAnticiposClientes" />
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="DVEstadoCaja" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel runat="server" ID="UpDVEstadoCaja" UpdateMode="Conditional" RenderMode="Inline">
|
|
<ContentTemplate>
|
|
<div class="modal-dialog" style="width: 700px;">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Estados de Cajas
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<asp:GridView ID="GvEstadoCajas" runat="server" AutoGenerateColumns="true" ClientIDMode="Static" EmptyDataText=""
|
|
OnRowDataBound="GvEstadoCajas_RowDataBound"
|
|
ToolTip="" CssClass="GVAnticipos table table-striped table-hover Widthall mysmallbtn" data-height="300" GridLines="None"
|
|
DataKeyNames="CveCuenta">
|
|
<Columns>
|
|
</Columns>
|
|
</asp:GridView>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<%--<asp:Button ID="Button1" runat="server" Text="Aceptar" class="btn btn-primary" ValidationGroup="VGAnticiposClientes" />
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>--%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
|
|
<asp:Button ID="BtnEnviarMailCancelacion" runat="server" ClientIDMode="Static" Text="Enviar Mail Cliente" Style="display: none;" OnClick="BtnEnviarMailCancelacion_Click" />
|
|
|
|
|
|
<asp:UpdatePanel runat="server" ID="UPPCxC" UpdateMode="Conditional" RenderMode="Inline">
|
|
<ContentTemplate>
|
|
<div id="divCxC" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog" style="width: 700px;">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:Label runat="server">Cuentas por cobrar: <asp:Literal ID="Literal1" runat="server"></asp:Literal></asp:Label>
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
<div style="max-height: 300px; overflow-y: auto;">
|
|
<div class="row" style="margin-left: 0px; text-align: right" align="left">
|
|
<div style="margin-right: 15px">
|
|
<input type="text" id="TxtBusquedaCxC" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusquedaCxC','{0}')", GvCxC.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusquedaAnticipos','{0}')", GVAnticipos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
</div>
|
|
<asp:GridView ID="GvCxC" runat="server" AutoGenerateColumns="False" ClientIDMode="Static" EmptyDataText="No se encontró cobranza pendiente del cliente"
|
|
CssClass=" table table-striped table-hover Widthall mysmallbtn" data-height="300" GridLines="None"
|
|
DataKeyNames=" CveVenta,PorcentajeIVA,TipoDocto,CveSubProyecto,CveMoneda,TipoCambio, Fecha,SerieFolio, SubTotal,IVA,Total,IEPS,RetIVA,RetISR, CveCliente,Saldo">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="Chk" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Folio</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFactura" runat="server" Text='<%# Eval("SerieFolio") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Fecha</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Saldo</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlAnticipos" runat="server" Text='<%# Eval("Saldo", "{0:N2}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<HeaderTemplate>Moneda Venta</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="MonedaVenta" runat="server"></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>Moneda</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlAbreviatura" runat="server" Text='<%# Eval("Abreviatura") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="BtnAplicarCxC" runat="server" Text="Aceptar" class="btn btn-primary" OnClick="BtnAplicarCxC_Click" />
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script src="/Scripts/PrintJS/print.min.js"></script>
|
|
<script type="text/javascript">
|
|
//function impresionDirecta(urlPDF) {
|
|
// printJS({ printable: urlPDF, type: 'pdf', showModal: true });
|
|
//}
|
|
|
|
function BtnEnviarMailCancelacion() {
|
|
$('#BtnEnviarMailCancelacion').click();
|
|
}
|
|
|
|
function chkAnt(t, txt, importe, AmorContrato = 0) {
|
|
let totalAnt = 0;
|
|
|
|
//si es con.nc,es.el.total
|
|
let Total = ToDouble($get("C_LtlSaldo").value.replace(",", ""));
|
|
|
|
let SaldoCompra = parseFloat(parseFloat($get("C_LtlSaldo").value.replace(",", "")).toFixed(2));
|
|
|
|
if (t.checked) {
|
|
|
|
if (SaldoCompra > 0) {
|
|
|
|
if (AmorContrato > 0) {
|
|
txt.value = AmorContrato.toFixed(2);
|
|
} else {
|
|
txt.value = importe.toFixed(2);
|
|
}
|
|
|
|
totalAnt = FnSumaValoresAnt();
|
|
|
|
if (totalAnt > SaldoCompra) {
|
|
let valor = FormatoNumero(importe - (totalAnt - SaldoCompra), 2);
|
|
if (valor == 'NaN') {
|
|
txt.value = "0.00";
|
|
} else {
|
|
txt.value = valor;
|
|
}
|
|
alert("El Importe no debe de exceder a el saldo");
|
|
}
|
|
|
|
} else {
|
|
t.checked = false;
|
|
}
|
|
|
|
} else {
|
|
//$get('HdnVentaSaldo').value = parseFloat(SaldoCompra) + parseFloat(txt.value);
|
|
txt.value = "";
|
|
}
|
|
|
|
$("#LblTotalAnticipos").text(FormatoNumero(FnSumaValoresAnt(), 2));
|
|
}
|
|
|
|
|
|
function FnCambiaAnt(chk, txt, saldo) {
|
|
|
|
let Total = ToDouble($get("C_LtlSaldo").value.replace(",", ""));// ToDouble($get('TxtSubTotal').value);
|
|
|
|
let importeTxt = parseFloat(txt.value.replace(/,/g, ''));
|
|
|
|
if (isNaN(importeTxt)) {
|
|
importeTxt = 0;
|
|
} else {
|
|
if (importeTxt <= 0) {
|
|
importeTxt = 0;
|
|
chk.checked = false;
|
|
return;
|
|
}
|
|
}
|
|
|
|
saldo = (importeTxt > saldo) ? saldo : importeTxt;
|
|
|
|
|
|
var SaldoCompra = (Total - FnSumaValoresAnt() + ToDouble(txt.value)).toFixed(2); // le agrego lo del valor actual para validarlo //parseFloat(parseFloat($get('HdnVentaSaldo').value).toFixed(2));
|
|
if (SaldoCompra < 0) txt.value = SaldoCompra - txt.value;
|
|
//minimo entre saldocompra y el saldoanticipo
|
|
if (SaldoCompra < saldo) saldo = SaldoCompra;
|
|
|
|
if (ToDouble(txt.value) > 0) {
|
|
chk.checked = true;
|
|
} else {
|
|
chk.checked = false;
|
|
}
|
|
|
|
if (ToDouble(txt.value) > saldo) {
|
|
txt.value = saldo;
|
|
alert("El Importe no debe de exceder a el saldo");
|
|
}
|
|
|
|
$("#LblTotalAnticipos").text(FormatoNumero(FnSumaValoresAnt(), 2));
|
|
|
|
// $get('HdnVentaSaldo').value = Total - FnSumaValoresAnt();
|
|
}
|
|
|
|
function FnSumaValoresAnt() {
|
|
let totalPoints = 0;
|
|
let t = '';
|
|
|
|
$('input[name*=TxtAnticipo]').each(function () {
|
|
totalPoints += ToDouble($(this).val());
|
|
});
|
|
|
|
return Math.round(totalPoints * 100) / 100;
|
|
}
|
|
|
|
function impresionBase64(pdfBase64) {
|
|
printJS({ printable: pdfBase64, type: 'pdf', showModal: true, base64: true });
|
|
}
|
|
|
|
function CalculaTotalPagoContado() {
|
|
let totalEfectivo = $get("TxtImporteEfectivo") ? ToDouble($get("TxtImporteEfectivo").value) : 0;
|
|
let totalCredito = $get("TxtImporteCredito") ? ToDouble($get("TxtImporteCredito").value) : 0;
|
|
let totalDebito = $get("TxtImporteDebito") ? ToDouble($get("TxtImporteDebito").value) : 0;
|
|
let totalCheque = $get("TxtImporteCheque") ? ToDouble($get("TxtImporteCheque").value) : 0;
|
|
let totalTransferencia = $get("TxtImporteTransferencia") ? ToDouble($get("TxtImporteTransferencia").value) : 0;
|
|
let totalCobranza = $get("TxtCxCAplicado") ? ToDouble($get("TxtCxCAplicado").value) : 0;
|
|
let TotalOtrosContado = 0;
|
|
|
|
let total = totalEfectivo + totalCredito + totalDebito + totalCheque + totalTransferencia;
|
|
|
|
if (<%= If(UsuarioActual.Empresa.CveEmpresa = 189, 1, 0)%> == 1) {
|
|
let totalAnticipos = $get("TxtNCDev") ? ToDouble($get("TxtNCDev").value) : 0;
|
|
TotalOtrosContado = $get("TxtImporteOtrosContado") ? ToDouble($get("TxtImporteOtrosContado").value) : 0;
|
|
|
|
total = total + totalAnticipos + TotalOtrosContado;
|
|
}
|
|
|
|
let totalVenta = $get('HdnTotal').value ? ToDouble($get('HdnTotal').value) : 0 + totalCobranza;// - ToDouble($get('HdnTotal').value);
|
|
|
|
if (total > totalVenta) {
|
|
C_lblCambio.innerHTML = "Cambio:";
|
|
HdnSobranteFaltante.value = "0";
|
|
//HdnCambioFaltante.value = "1";
|
|
let cambio = total - totalVenta;
|
|
if (cambio > 1) {
|
|
$get("TxtFaltante").value = "";
|
|
$get("ChkSobFaltante").checked = false;
|
|
$get("TxtCambio").value = FormatoNumero(cambio);
|
|
|
|
} else {
|
|
$get("TxtFaltante").value = FormatoNumero(cambio);
|
|
$get("ChkSobFaltante").checked = true;
|
|
$get("TxtCambio").value = "";
|
|
}
|
|
|
|
} else {
|
|
C_lblCambio.innerHTML = "Faltante:";
|
|
HdnSobranteFaltante.value = "1";
|
|
$get("TxtFaltante").value = "";
|
|
$get("ChkSobFaltante").checked = false;
|
|
$get("TxtCambio").value = FormatoNumero(total - totalVenta, 2);
|
|
}
|
|
|
|
$get("TxtImporteContado").value = FormatoNumero(total, 2);
|
|
}
|
|
|
|
function CalculaDiferencia() {
|
|
let total = 0;
|
|
total = ToDouble($('#C_TxtEfectivoEnCaja').val()) - ToDouble($('#C_LblEfectivoEsperado').text());
|
|
$('#C_LblDiferenciaCaja').text(FormatoNumero(total));
|
|
}
|
|
|
|
function CalculaDiferenciaBloqueo() {
|
|
let total = 0;
|
|
total = ToDouble($('#C_TxtEfectivoCajaBloqueo').val()) - ToDouble($('#C_LblEfectivoBloqueo').text());
|
|
$('#C_LblDiferenciaCajaBloqueo').val(FormatoNumero(total));
|
|
}
|
|
|
|
function ValidaSobranteFaltante() {
|
|
if (ToDouble($get("TxtFaltante").value) > 1) {
|
|
alert("El sobrante/faltante no debe ser mayor a 1");
|
|
$get("TxtFaltante").value = "";
|
|
$get("ChkSobFaltante").checked = false;
|
|
} else {
|
|
$get("ChkSobFaltante").checked = true;
|
|
}
|
|
}
|
|
|
|
function CargaSobranteFaltante() {
|
|
$('#ChkSobFaltante').change(function () {
|
|
if (this.checked == true) {
|
|
if (ToDouble($get("TxtCambio").value) > 1) {
|
|
alert("El sobrante/faltante no debe ser mayor a 1")
|
|
$get("ChkSobFaltante").checked = false;
|
|
} else {
|
|
$get("TxtFaltante").value = $get("TxtCambio").value;
|
|
}
|
|
|
|
}
|
|
else {
|
|
$get("TxtFaltante").value = "";
|
|
}
|
|
});
|
|
}
|
|
|
|
jQuery(document).ready(function () {
|
|
CargaSobranteFaltante();
|
|
Sys.Application.add_load(function (s, e) {
|
|
CargaSobranteFaltante();
|
|
});
|
|
});
|
|
|
|
</script>
|
|
</asp:Content>
|