--Cambios en depositos caja
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
|
||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||
<li>
|
||||
<asp:HyperLink ID="HplImprimirPDF" runat="server" Target="_blank" Visible="true" ><i class="fa fa-file-pdf-o" style="color:#686868;"></i> Imprimir Poliza</asp:HyperLink>
|
||||
<asp:HyperLink ID="HplImprimirPDF" runat="server" Target="_blank" Visible="true"><i class="fa fa-file-pdf-o" style="color:#686868;"></i> Imprimir Poliza</asp:HyperLink>
|
||||
</li>
|
||||
<%-- <li>
|
||||
<asp:LinkButton ID="LnkImprimir" runat="server"><i class="fa fa-print"></i> Imprimir</asp:LinkButton>
|
||||
@@ -179,8 +179,8 @@
|
||||
<div class="col-md-1" runat="server" id="divTipoPago1">
|
||||
<label style="width: 100px;">Forma de Pago:</label>
|
||||
</div>
|
||||
<div class="col-md-1" runat="server" id="divTipoPago" >
|
||||
<asp:DropDownList ID="DdlTipoDeposito" runat="server" Width="100%" AppendDataBoundItems="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Class="table-group-action-input form-control input-inline input-small input-sm select2me" >
|
||||
<div class="col-md-1" runat="server" id="divTipoPago">
|
||||
<asp:DropDownList ID="DdlTipoDeposito" runat="server" Width="100%" AppendDataBoundItems="true" DataTextField="NumCuentaMoneda" DataValueField="CveCuenta" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
||||
<asp:ListItem Value="-1" Text="Seleccione" Selected="True"></asp:ListItem>
|
||||
<asp:ListItem Value="13" Text="Efectivo"></asp:ListItem>
|
||||
<asp:ListItem Value="3" Text="Cheque"></asp:ListItem>
|
||||
@@ -220,7 +220,7 @@
|
||||
<asp:UpdatePanel ID="UpComisiones" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="row rowcheck truncate " id="DivComisioncheck" style="padding:0px!important;margin:0px!important">
|
||||
<div class="row rowcheck truncate " id="DivComisioncheck" style="padding: 0px!important; margin: 0px!important">
|
||||
<div class="col-md-1 truncate" runat="server" id="DivFaltante" style="width: 155px;">
|
||||
<asp:CheckBox ID="ChkFaltante" runat="server" Text="Faltante/Sobrante" CssClass="checkbox" />
|
||||
</div>
|
||||
@@ -257,27 +257,27 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row rowcheck truncate" id="DivDescuentocheck" runat="server" style="padding:0px!important;margin:0px!important" >
|
||||
<div class="row rowcheck truncate" id="DivDescuentocheck" runat="server" style="padding: 0px!important; margin: 0px!important">
|
||||
<div class="col-md-1" runat="server" id="Div1" style="width: 155px">
|
||||
<asp:CheckBox ID="ChkDescuento" runat="server" Text="Descuento" CssClass="checkbox" />
|
||||
</div>
|
||||
<div class="col-md-1 DivDescuento" style="display:none" >
|
||||
<div class="col-md-1 DivDescuento" style="display: none">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox runat="server" ID="TxtDescuento" Width="100px" onkeypress="return numericOnly(this);" ondrop="return false;" onpaste="return false;" CssClass="form-control Numeros"></asp:TextBox>
|
||||
<label for="<%= TxtDescuento.ClientID.ToString()%>">Importe:</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-1 DivDescuento" style="display:none" >
|
||||
<div class="col-md-1 DivDescuento" style="display: none">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlSubProyectoDescuento" Width="100px" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control select2me" >
|
||||
<asp:DropDownList ID="DdlSubProyectoDescuento" Width="100px" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control select2me">
|
||||
</asp:DropDownList>
|
||||
<label for="<%= DdlSubProyectoDescuento.ClientID.ToString()%>">SubProyecto:</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 DivDescuento" style="display:none">
|
||||
<div class="col-md-2 DivDescuento" style="display: none">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlClasificacionDescuento" Width="100%" AutoPostBack="false" runat="server" AppendDataBoundItems="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" CssClass="form-control select2me">
|
||||
</asp:DropDownList>
|
||||
@@ -285,7 +285,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 DivDescuento" style="display:none">
|
||||
<div class="col-md-2 DivDescuento" style="display: none">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlPersonal" AutoPostBack="false" Width="100%" runat="server" AppendDataBoundItems="true" DataTextField="NombreCompleto" DataValueField="CvePersonal" CssClass="form-control select2me">
|
||||
</asp:DropDownList>
|
||||
@@ -294,28 +294,28 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row rowcheck truncate" id="DivIntercheck" runat="server" style="padding:0px!important;margin:0px!important">
|
||||
<div class="row rowcheck truncate" id="DivIntercheck" runat="server" style="padding: 0px!important; margin: 0px!important">
|
||||
|
||||
<div class="col-md-1" runat="server" id="Div2" style="width: 155px">
|
||||
<asp:CheckBox ID="ChkIntermediario" runat="server" Text="Intermediario" CssClass="checkbox" />
|
||||
</div>
|
||||
<div class="col-md-10 rowcheckCampos xspadding" id="DivInter" style="display: none">
|
||||
<div class="col-md-1" id="dd" >
|
||||
<div class="form-group form-md-line-input input-iconright" >
|
||||
<div class="col-md-1" id="dd">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlProveedorIntermediario" CssClass="form-control select2me" Width="100%" DataTextField="RazonSocial" DataValueField="CveProveedor" runat="server"></asp:DropDownList>
|
||||
<label for="<%= DdlProveedorIntermediario.ClientID.ToString()%>">Intermediario:</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-1" id="DivinterImporte" >
|
||||
<div class="form-group form-md-line-input input-iconright" >
|
||||
<div class="col-md-1" id="DivinterImporte">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox runat="server" ID="TxtComisionIntermediario" Width="75px" onkeypress="return numericOnly(this);" ondrop="return false;" onpaste="return false;" CssClass=" form-control Numeros"></asp:TextBox>
|
||||
<label for="<%= TxtComisionIntermediario.ClientID.ToString()%>">Importe:</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-1" id="DivIVA">
|
||||
<div class="form-group form-md-line-input input-iconright" >
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox runat="server" ID="TxtIVA" Width="75px" onkeypress="return numericOnly(this);" ondrop="return false;" onpaste="return false;" CssClass="form-control Numeros"></asp:TextBox>
|
||||
<label for="<%= TxtIVA.ClientID.ToString()%>">IVA:</label>
|
||||
</div>
|
||||
@@ -323,43 +323,42 @@
|
||||
|
||||
<div class="col-md-1" id="dd2" style="margin-right: 100px;">
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright" >
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlClasificacionIntermediario" AutoPostBack="false" Class=" form-control select2me" runat="server" AppendDataBoundItems="true" DataTextField="Clasificacion" DataValueField="CveClasificacion">
|
||||
</asp:DropDownList>
|
||||
<label for="<%= DdlClasificacionIntermediario.ClientID.ToString()%>"><label id="LblClasificacion3">Gasto:</label></label>
|
||||
<label for="<%= DdlClasificacionIntermediario.ClientID.ToString()%>">
|
||||
<label id="LblClasificacion3">Gasto:</label></label>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-2" id="divSubProyectoIntermediario">
|
||||
<div class="form-group form-md-line-input input-iconright" >
|
||||
<asp:DropDownList ID="DdlSubProyectoIntermediario" runat="server" Width="100%" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control select2me" >
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:DropDownList ID="DdlSubProyectoIntermediario" runat="server" Width="100%" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control select2me">
|
||||
</asp:DropDownList>
|
||||
<label for="<%= DdlSubProyectoIntermediario.ClientID.ToString()%>"><label id="LblSubproyectoIntermediario">SubProyecto:</label></label>
|
||||
<label for="<%= DdlSubProyectoIntermediario.ClientID.ToString()%>">
|
||||
<label id="LblSubproyectoIntermediario">SubProyecto:</label></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row rowcheck truncate" id="DivRowCuenta" style="padding:0px!important;margin:0px!important" runat="server" visible="false" >
|
||||
|
||||
<div class="row rowcheck truncate" id="DivRowCuenta" style="padding: 0px!important; margin: 0px!important" runat="server" visible="false">
|
||||
<div class="col-md-1" runat="server" id="Div3" style="width: 155px">
|
||||
<asp:CheckBox ID="ChkCuentaRetorno" runat="server" Text="Caja" CssClass="checkbox" />
|
||||
</div>
|
||||
<div class="col-md-2 DivRowCuenta2" id="DivCuentaImporte" style="display:none">
|
||||
<div class="form-group form-md-line-input input-iconright" >
|
||||
<div class="col-md-2 DivRowCuenta2" id="DivCuentaImporte" style="display: none">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox runat="server" ID="TxtCuentaRetorno" Width="100px" onkeypress="return numericOnly(this);" ondrop="return false;" onpaste="return false;" CssClass=" form-control Numeros"></asp:TextBox>
|
||||
<label for="<%= TxtCuentaRetorno.ClientID.ToString()%>">Importe:</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 DivRowCuenta2" style="display:none">
|
||||
<div class="form-group form-md-line-input input-iconright" >
|
||||
<asp:TextBox runat="server" ID="TxtCuentaRetornoObs" Width="100%" CssClass=" form-control" ></asp:TextBox>
|
||||
<div class="col-md-6 DivRowCuenta2" style="display: none">
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox runat="server" ID="TxtCuentaRetornoObs" Width="100%" CssClass=" form-control"></asp:TextBox>
|
||||
<label for="<%= TxtCuentaRetornoObs.ClientID.ToString()%>">Obs:</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</ContentTemplate>
|
||||
@@ -664,21 +663,13 @@
|
||||
}
|
||||
|
||||
function txtSumaCuentaRetorno(txt) {
|
||||
debugger;
|
||||
var comision2 = ToDouble($('#C_TxtCuentaRetorno').val());
|
||||
//if (comision2 > ValorTotalSeleccionado) {
|
||||
// $('#C_TxtCuentaRetorno').val(descuento)
|
||||
// alert("No es posible poner un IVA superior a lo seleccionado")
|
||||
//} else {
|
||||
saldo = ValorTotalSeleccionado - comision2 + comision - IVA - ComisionIntermediario;
|
||||
|
||||
saldo = ValorTotalSeleccionado + comision2 + comision - IVA - ComisionIntermediario;
|
||||
$('#C_lblValorTotal').text(FormatoNumero(saldo, 2));
|
||||
descuento = ToDouble($('#C_TxtCuentaRetorno').val())
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function txtSumaIVA(txt) {
|
||||
var comision2 = ToDouble($('#C_TxtIVA').val());
|
||||
if (comision2 > ValorTotalSeleccionado) {
|
||||
@@ -689,7 +680,6 @@
|
||||
$('#C_lblValorTotal').text(FormatoNumero(saldo, 2));
|
||||
IVA = ToDouble($('#C_TxtIVA').val());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function txtSumaTntermediario(txt) {
|
||||
@@ -759,7 +749,7 @@
|
||||
$('#DivRowCuenta').removeClass("truncate");
|
||||
|
||||
} else {
|
||||
|
||||
$('#C_TxtCuentaRetorno').val(0);
|
||||
Recalcular();
|
||||
$('.DivRowCuenta2').css("display", "none");
|
||||
$('#DivRowCuenta').addClass("truncate");
|
||||
@@ -767,17 +757,20 @@
|
||||
}
|
||||
|
||||
function Recalcular() {
|
||||
debugger;
|
||||
var Comision = ToDouble($('#C_TxtComision').val());
|
||||
var Descuento = ToDouble($('#C_TxtDescuento').val());
|
||||
var IVA = ToDouble($('#C_TxtIVA').val());
|
||||
var ImporteInter = ToDouble($('#C_TxtComisionIntermediario').val());
|
||||
var ImporteCuentaRetorno= ToDouble($('#C_TxtCuentaRetorno').val());
|
||||
let Comision = ToDouble($('#C_TxtComision').val());
|
||||
let Descuento = 0;
|
||||
let ImporteInter = 0;
|
||||
let IVA = 0;
|
||||
|
||||
var total = ValorTotalSeleccionado + Comision - Descuento - IVA - ImporteInter - ImporteCuentaRetorno
|
||||
if ('<%= If(UsuarioActual.CveEmpresa = 189, "0", "1") %>' == '1') {
|
||||
Descuento = ToDouble($('#C_TxtDescuento').val());
|
||||
ImporteInter = ToDouble($('#C_TxtComisionIntermediario').val());
|
||||
IVA = ToDouble($('#C_TxtIVA').val());
|
||||
}
|
||||
let ImporteCuentaRetorno = ToDouble($('#C_TxtCuentaRetorno').val());
|
||||
|
||||
let total = ValorTotalSeleccionado + Comision - Descuento - IVA - ImporteInter + ImporteCuentaRetorno;
|
||||
$('#C_lblValorTotal').text(FormatoNumero(total, 2));
|
||||
debugger;
|
||||
|
||||
}
|
||||
|
||||
function Depositar() {
|
||||
|
||||
@@ -34,6 +34,7 @@ Partial Class Bancos_DepositosCaja
|
||||
End If
|
||||
|
||||
CargaCuentas()
|
||||
|
||||
ChkFaltante.Attributes.Add("onclick", "CheckFaltante(this);")
|
||||
ChkDescuento.Attributes.Add("onclick", "CheckDescuento(this);")
|
||||
ChkIntermediario.Attributes.Add("onclick", "CheckIntermediario(this);")
|
||||
@@ -222,7 +223,7 @@ Partial Class Bancos_DepositosCaja
|
||||
End If
|
||||
|
||||
If CuentaRetorno <> 0 Then
|
||||
TotalImporte = TotalImporte - CuentaRetorno
|
||||
TotalImporte = TotalImporte + CuentaRetorno
|
||||
'Descuento = -(Descuento) ' se inverte el valor, va cargada
|
||||
'If DdlSubProyectoDescuento.SelectedValue.ToEntero = -1 Or DdlClasificacionDescuento.SelectedValue.ToEntero = -1 Then
|
||||
' Alert("Debes Seleccionar un Subproyecto y una Clasificación de descuento", TipoMensaje.MsgAdvertencia)
|
||||
@@ -364,7 +365,7 @@ Partial Class Bancos_DepositosCaja
|
||||
CveSubProyectoComision = DdlSubProyectoDeposito.SelectedValue.ToEntero
|
||||
CveClasificacionComision = DdlClasificacion.SelectedValue.ToEntero
|
||||
If Comision <> 0 Then
|
||||
If Not ObjConta.AddPrePolizasDetalle(NuevaCvePrePoliza, True, Comision, Comision * TipoCambio, 78, $"Depósito Bancario - {tSubProyectoDeposito}", $"Depósito Bancario - {tSubProyectoDeposito}", CveClasificacion:=CveClasificacionComision, CveSubProyecto:=CveSubProyectoComision) Then
|
||||
If Not ObjConta.AddPrePolizasDetalle(NuevaCvePrePoliza, True, Comision, Comision * TipoCambio, 78, $"Depósito Bancario - FALTANTE/SOBRANTE - {tSubProyectoDeposito}", $"Depósito Bancario - {tSubProyectoDeposito}", CveClasificacion:=CveClasificacionComision, CveSubProyecto:=CveSubProyectoComision) Then
|
||||
OcurrioError = True
|
||||
End If
|
||||
End If
|
||||
@@ -387,7 +388,7 @@ Partial Class Bancos_DepositosCaja
|
||||
FolioIE = ObjBancos.GetNextFolio(DdlCajaChica.SelectedValue.ToEntero, CveTransaccionBanco)
|
||||
Dim CveIEOrigenRetorno As Integer = ObjBancos.AddBancos_IE(DdlCajaChica.SelectedValue.ToEntero, CveTransaccionBanco, Fecha, FolioIE.ToString, $"Retorno Depósito Bancario - {tSubProyectoDeposito}", CuentaRetorno, CveMoneda, 1, TxtObservaciones.Text, "", False, False, -1, NuevaCvePrePoliza, "-1", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||
|
||||
If Not ObjConta.AddPrePolizasDetalle(NuevaCvePrePoliza, False, CuentaRetorno, CuentaRetorno * TipoCambio, 30, $"Depósito Bancario - {tSubProyectoDeposito}", TxtCuentaRetornoObs.Text.Trim, CveClasificacion:=CveClasificacionDescuento, CveSubProyecto:=CveSubProyecto, CveIE:=CveIEOrigenRetorno) Then
|
||||
If Not ObjConta.AddPrePolizasDetalle(NuevaCvePrePoliza, True, CuentaRetorno, CuentaRetorno * TipoCambio, 30, $"Depósito Bancario - CAJA - {tSubProyectoDeposito}", TxtCuentaRetornoObs.Text.Trim, CveClasificacion:=CveClasificacionDescuento, CveSubProyecto:=CveSubProyecto, CveIE:=CveIEOrigenRetorno) Then
|
||||
OcurrioError = True
|
||||
End If
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user