-- se quitó combo de moneda, para que tome el de la cuenta
This commit is contained in:
@@ -874,17 +874,7 @@
|
||||
<td style="vertical-align: top;">
|
||||
<div>
|
||||
<fieldset style="min-height: 60px;">
|
||||
<table width="100%" border="0" class="table table-striped table-advance table-hover">
|
||||
<tr>
|
||||
<td>Moneda:</td>
|
||||
<td>
|
||||
<asp:DropDownList ID="DdlMoneda" CssClass="select2me" runat="server" ClientIDMode="Static" AppendDataBoundItems="true" AutoPostBack="true" DataTextField="Moneda" DataValueField="CveMoneda" Width="206px" ValidationGroup="GrpGuardar">
|
||||
</asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVMoneda" runat="server" ControlToValidate="DdlMoneda" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Moneda''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCOMoneda" runat="server" HighlightCssClass="vco" TargetControlID="RFVMoneda" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<table width="100%" border="0" class="table table-striped table-advance table-hover">
|
||||
<tr>
|
||||
<td>Registró:</td>
|
||||
<td>
|
||||
|
||||
@@ -669,7 +669,6 @@ Partial Class Bancos_IE
|
||||
TRCveIE.Visible = False
|
||||
|
||||
CargaTipoTransaccion()
|
||||
CargaMoneda()
|
||||
CargaCuenta()
|
||||
CargaDDLPersonal()
|
||||
|
||||
@@ -776,7 +775,6 @@ Partial Class Bancos_IE
|
||||
Calendario.Enabled = False
|
||||
TxtImporte.Enabled = False
|
||||
TxtImporteLetra.Enabled = False
|
||||
DdlMoneda.Enabled = False
|
||||
TxtTipoCambio.Enabled = False
|
||||
DdlCuenta.Enabled = False
|
||||
'DdlTipo.Enabled = False
|
||||
@@ -934,7 +932,6 @@ Partial Class Bancos_IE
|
||||
LblBeneficiario.Text = ObjIE.PagueseA
|
||||
TxtImporte.Text = ObjIE.Importe.FormatoNumero
|
||||
TxtImporteLetra.Text = ObjIE.Importe.Texto2Letras(ObjIE.CveMoneda)
|
||||
DdlMoneda.SelectedValue = ObjIE.CveMoneda.ToString
|
||||
If ObjIE.TipoCambio > 0 Then
|
||||
TrTipoCambio.Visible = True
|
||||
Else
|
||||
@@ -1680,8 +1677,7 @@ Partial Class Bancos_IE
|
||||
Dim dr As DataRow = GlobalDTBancosCuentas(UsuarioActual.CveUsuario, CveEmpresa:=UsuarioActual.CveEmpresa).FiltroPrimero(String.Format("CveCuenta={0}", DdlCuenta.SelectedValue))
|
||||
If dr IsNot Nothing Then
|
||||
|
||||
|
||||
DdlMoneda.SelectedValue = dr("CveMoneda").ToString
|
||||
CveMoneda = dr("CveMoneda").ToString.ToEntero
|
||||
IDCtaContable = dr("IdCtaContable").ToString.ToEntero
|
||||
IDCtaContableComplementaria = dr("IDCtaContableComplementaria").ToString.ToEntero
|
||||
CambiaTipoMoneda()
|
||||
@@ -1914,10 +1910,7 @@ Partial Class Bancos_IE
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub CargaMoneda()
|
||||
DdlMoneda.DataSource = GlobalDTMonedas
|
||||
DdlMoneda.DataBind()
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
|
||||
#Region "VIATICOS"
|
||||
@@ -2759,7 +2752,7 @@ Partial Class Bancos_IE
|
||||
|
||||
|
||||
Dim FolioFijo As Integer = 0
|
||||
Dim tCveMoneda As Integer = DdlMoneda.SelectedValue.ToEntero
|
||||
Dim tCveMoneda As Integer = CveMoneda
|
||||
Dim tImporteMonedaExtranjera As Decimal = TxtImporte.Text.ToDecimal
|
||||
If tCveMoneda <> 1 Then tImporteMonedaExtranjera = (TxtImporte.Text.ToDecimal * GlobalTipoCambio(TxtFechaDocumento.Text.Trim.ToDate).ToString.ToDecimal).RoundSQL
|
||||
Dim PagueseA = ""
|
||||
@@ -2775,7 +2768,7 @@ Partial Class Bancos_IE
|
||||
End If
|
||||
|
||||
If AgregaPolizaSaldoInicial Then
|
||||
If AgregarSaldoInicial(TxtImporte.Text.ToDouble(), TxtFechaDocumento.Text.ToDateTime(), DdlMoneda.SelectedValue.ToEntero(), ObjMov) <= 0 Then
|
||||
If AgregarSaldoInicial(TxtImporte.Text.ToDouble(), TxtFechaDocumento.Text.ToDateTime(), 1, ObjMov) <= 0 Then
|
||||
MsgError = "No se pudo insertar la póliza de saldo inicial."
|
||||
End If
|
||||
End If
|
||||
@@ -2784,7 +2777,7 @@ Partial Class Bancos_IE
|
||||
|
||||
If MsgError = "" Then
|
||||
|
||||
CveIE = ObjIE.AddBancos_IE(DdlCuenta.SelectedValue.ToEntero, DdlTipoTransaccion.SelectedValue.ToEntero, TxtFechaDocumento.Text.Trim.ToDate, TxtFolio.Text.Trim, PagueseA, TxtImporte.Text.Trim.ToDouble, DdlMoneda.SelectedValue.ToEntero,
|
||||
CveIE = ObjIE.AddBancos_IE(DdlCuenta.SelectedValue.ToEntero, DdlTipoTransaccion.SelectedValue.ToEntero, TxtFechaDocumento.Text.Trim.ToDate, TxtFolio.Text.Trim, PagueseA, TxtImporte.Text.Trim.ToDouble, tCveMoneda,
|
||||
TxtTipoCambio.Text.Trim.ToDouble, TxtObservaciones.Text.Trim, TxtNotificarA.Text.Trim, ChkAbonoCuenta.Checked, ChkAplicaImpuestos.Checked, -1, CvePrePoliza, Comprobante, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa,
|
||||
CveCuentaDeposito:=CveCuentaDeposito, CveEstatusIE:=DdlEstatusIE.SelectedValue.ToString.ToEntero, Referencia:=If(TxtReferenciaCIE.Visible, TxtReferenciaCIE.Text, "-1"), CveCuentaTarjeta:=If(DivTarjeta.Visible, DdlTarjeta.SelectedValue.ToEntero, -1),
|
||||
ConceptoCIE:=If(TxtConceptoCIE.Text.Trim.Length > 0, TxtConceptoCIE.Text, "-1"), CveCorte:=Me.CveCorte, CveOCAnticipo:=CveOCSolicitudAnticipo)
|
||||
@@ -3035,10 +3028,10 @@ Partial Class Bancos_IE
|
||||
ImporteAplicarME = ImporteAplicar
|
||||
|
||||
'CONSIDERA COMPLEMENTARIA
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
If tCveMoneda > 1 Then
|
||||
ImporteAplicarMN = ImporteAplicar
|
||||
Else
|
||||
ImporteAplicarMN = (ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TxtTipoCambio.Text.ToDecimal)).RoundSQL()
|
||||
ImporteAplicarMN = (ImporteAplicar * If(tCveMoneda = 1, 1, TxtTipoCambio.Text.ToDecimal)).RoundSQL()
|
||||
End If
|
||||
|
||||
'BANCOS
|
||||
@@ -3049,8 +3042,8 @@ Partial Class Bancos_IE
|
||||
End If
|
||||
|
||||
'BANCOS COMPLEMENTARIA
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
ImporteAplicarMN = ((ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TxtTipoCambio.Text.ToDecimal)) - ImporteAplicar).RoundSQL()
|
||||
If tCveMoneda > 1 Then
|
||||
ImporteAplicarMN = ((ImporteAplicar * If(tCveMoneda = 1, 1, TxtTipoCambio.Text.ToDecimal)) - ImporteAplicar).RoundSQL()
|
||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, ImporteAplicar, ReferenciaAplicar, 204, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveVenta:=CveVentaDevDin, CveCliente:=CveCliente, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicarME) Then
|
||||
MsgError = "Ocurrió un error al registrar el asiento de bancos complementaria de devolución"
|
||||
End If
|
||||
@@ -3082,7 +3075,7 @@ Partial Class Bancos_IE
|
||||
'CANCELA NC
|
||||
IdCtaContableAplicar = IDCtaBeneficiario
|
||||
ImporteAplicar = ImporteAplicar + Impo
|
||||
ImporteAplicarMN = (ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TxtTipoCambio.Text.ToDecimal)).RoundSQL()
|
||||
ImporteAplicarMN = (ImporteAplicar * If(tCveMoneda = 1, 1, TxtTipoCambio.Text.ToDecimal)).RoundSQL()
|
||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, True, -(ImporteAplicar), ReferenciaAplicar, 12, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveVenta:=CveVentaDevDin, CveCliente:=CveCliente, ImporteMX:=-(ImporteAplicarMN), ImporteME:=ImporteAplicarME) Then
|
||||
MsgError = "Ocurrió un error al registrar el asiento de pago de devolución"
|
||||
Exit Select
|
||||
@@ -3144,10 +3137,10 @@ Partial Class Bancos_IE
|
||||
|
||||
|
||||
'CONSIDERA COMPLEMENTARIA
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
If tCveMoneda > 1 Then
|
||||
ImporteAplicarMN = ImporteAplicar
|
||||
Else
|
||||
ImporteAplicarMN = (ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TxtTipoCambio.Text.ToDecimal)).RoundSQL()
|
||||
ImporteAplicarMN = (ImporteAplicar * If(tCveMoneda = 1, 1, TxtTipoCambio.Text.ToDecimal)).RoundSQL()
|
||||
End If
|
||||
|
||||
Dim TCCompra As Decimal = 1
|
||||
@@ -3170,7 +3163,7 @@ Partial Class Bancos_IE
|
||||
|
||||
Dim FechaCompraNota As Date = GvRow.DataKey("Fecha").ToDate
|
||||
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
If tCveMoneda > 1 Then
|
||||
|
||||
TCCompra = GlobalTipoCambio(FechaCompraNota).ToDecimal
|
||||
TCDocumento = GlobalTipoCambio(TxtFechaDocumento.Text.ToDate).ToDecimal
|
||||
@@ -3192,14 +3185,14 @@ Partial Class Bancos_IE
|
||||
|
||||
|
||||
'CONSIDERA COMPLEMENTARIA
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
If tCveMoneda > 1 Then
|
||||
ImporteAplicarMN = ImporteAplicar
|
||||
Else
|
||||
ImporteAplicarMN = (ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TxtTipoCambio.Text.ToDecimal)).RoundSQL()
|
||||
ImporteAplicarMN = (ImporteAplicar * If(tCveMoneda = 1, 1, TxtTipoCambio.Text.ToDecimal)).RoundSQL()
|
||||
End If
|
||||
|
||||
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
If tCveMoneda > 1 Then
|
||||
|
||||
TCCompra = GlobalTipoCambio(GvRow.DataKey("Fecha").ToDate).ToDecimal
|
||||
TCDocumento = GlobalTipoCambio(TxtFechaDocumento.Text.ToDate).ToDecimal
|
||||
@@ -3221,8 +3214,8 @@ Partial Class Bancos_IE
|
||||
''
|
||||
|
||||
'BANCOS COMPLEMENTARIA
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
ImporteAplicarMN = ((ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TCDocumento)) - ImporteAplicar).RoundSQL()
|
||||
If tCveMoneda > 1 Then
|
||||
ImporteAplicarMN = ((ImporteAplicar * If(tCveMoneda = 1, 1, TCDocumento)) - ImporteAplicar).RoundSQL()
|
||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteAplicar, ReferenciaAplicar, 204, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicarME, TipoCambio:=TCDocumento) Then
|
||||
MsgError = "Ocurrió un error al registrara el asiento de bancos complementaria de devolución"
|
||||
End If
|
||||
@@ -3267,9 +3260,9 @@ Partial Class Bancos_IE
|
||||
|
||||
|
||||
'NC COMPLEMENTARIA
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
If tCveMoneda > 1 Then
|
||||
|
||||
ImporteAplicarMN = ((ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TCCompra)) - ImporteAplicar).RoundSQL()
|
||||
ImporteAplicarMN = ((ImporteAplicar * If(tCveMoneda = 1, 1, TCCompra)) - ImporteAplicar).RoundSQL()
|
||||
|
||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, -(ImporteAplicar), ReferenciaAplicar, 201, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=-(ImporteAplicarMN), ImporteME:=-(ImporteAplicarME), TipoCambio:=TCCompra) Then
|
||||
MsgError = "Ocurrió un error al registrar el asiento de bancos complementaria de devolución"
|
||||
@@ -3334,7 +3327,7 @@ Partial Class Bancos_IE
|
||||
IEPSDev = Math.Round(IEPSDev * PorcentajeDevolucion, 2)
|
||||
Dim IdCtaIVADevolucionIMPUESTOS As Integer = -1
|
||||
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
If tCveMoneda > 1 Then
|
||||
IVADevMN = IVADev
|
||||
IEPSDevMN = IEPSDev
|
||||
Else
|
||||
@@ -3416,7 +3409,7 @@ Partial Class Bancos_IE
|
||||
|
||||
Else
|
||||
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
If tCveMoneda > 1 Then
|
||||
|
||||
TCCompra = GlobalTipoCambio(FechaCompra).ToDecimal
|
||||
TCDocumento = GlobalTipoCambio(TxtFechaDocumento.Text.ToDate).ToDecimal
|
||||
@@ -3433,8 +3426,8 @@ Partial Class Bancos_IE
|
||||
|
||||
|
||||
'BANCOS COMPLEMENTARIA
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
ImporteAplicarMN = ((ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TCDocumento)) - ImporteAplicar).RoundSQL()
|
||||
If tCveMoneda > 1 Then
|
||||
ImporteAplicarMN = ((ImporteAplicar * If(tCveMoneda = 1, 1, TCDocumento)) - ImporteAplicar).RoundSQL()
|
||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, ImporteAplicar, ReferenciaAplicar, 204, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicarME, TipoCambio:=TCDocumento) Then
|
||||
MsgError = "Ocurrió un error al registrara el asiento de bancos complementaria de devolución"
|
||||
End If
|
||||
@@ -3475,13 +3468,10 @@ Partial Class Bancos_IE
|
||||
End If
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
'NC COMPLEMENTARIA
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
If tCveMoneda > 1 Then
|
||||
|
||||
ImporteAplicarMN = ((ImporteAplicar * If(DdlMoneda.SelectedValue.ToEntero = 1, 1, TCCompra)) - ImporteAplicar).RoundSQL()
|
||||
ImporteAplicarMN = ((ImporteAplicar * If(tCveMoneda = 1, 1, TCCompra)) - ImporteAplicar).RoundSQL()
|
||||
|
||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, False, -(ImporteAplicar), ReferenciaAplicar, 201, ConceptoAplicar, Now, IdCtaContableAplicar, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=-(ImporteAplicarMN), ImporteME:=-(ImporteAplicarME), TipoCambio:=TCCompra) Then
|
||||
MsgError = "Ocurrió un error al registrar el asiento de bancos complementaria de devolución"
|
||||
@@ -3511,8 +3501,6 @@ Partial Class Bancos_IE
|
||||
|
||||
End If
|
||||
|
||||
|
||||
|
||||
End If
|
||||
|
||||
'IMPUESTOS
|
||||
@@ -3557,7 +3545,7 @@ Partial Class Bancos_IE
|
||||
Dim IdCtaIVADevolucionIMPUESTOS As Integer = -1
|
||||
|
||||
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
If tCveMoneda > 1 Then
|
||||
IVADevMN = IVADev
|
||||
IEPSDevMN = IEPSDev
|
||||
Else
|
||||
@@ -3714,7 +3702,7 @@ Partial Class Bancos_IE
|
||||
TipoMovimiento = False
|
||||
End If
|
||||
|
||||
If CveConceptoCompra = 10 AndAlso DdlMoneda.SelectedValue.ToEntero > 1 AndAlso UsaComplementariaBancos Then
|
||||
If CveConceptoCompra = 10 AndAlso tCveMoneda > 1 AndAlso UsaComplementariaBancos Then
|
||||
IDCtaBeneficiario = IdCtaAnticipoExtranjera
|
||||
End If
|
||||
|
||||
@@ -3737,7 +3725,7 @@ Partial Class Bancos_IE
|
||||
End If
|
||||
|
||||
'BANCOS COMPLEMENTARIA
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
If tCveMoneda > 1 Then
|
||||
Dim ImporteAplicar As Decimal = TxtImporte.Text.ToDecimal
|
||||
Dim ImporteAplicarMN = (ImporteAplicar * TxtTipoCambio.Text.ToDecimal - ImporteAplicar).RoundSQL()
|
||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, ImporteAplicar, Ref, 204, Conc, Now, IDCtaContableComplementaria, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicar, TipoCambio:=TxtTipoCambio.Text.ToDecimal) Then
|
||||
@@ -3749,6 +3737,11 @@ Partial Class Bancos_IE
|
||||
MsgError = "Ocurrió un error al registrar el asiento de bancos complementaria de devolución"
|
||||
End If
|
||||
End If
|
||||
If CveConceptoCompra = 66 Then
|
||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, ImporteAplicar, Ref, 226, Conc, Now, IdCtaAnticipoComplementaria, -1, CveIE, CveCompra:=CveCompraDeCDin, CveProveedor:=CveProveedor, ImporteMX:=ImporteAplicarMN, ImporteME:=ImporteAplicar, TipoCambio:=TxtTipoCambio.Text.ToDecimal) Then
|
||||
MsgError = "Ocurrió un error al registrar el asiento de bancos complementaria de devolución"
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
If Opcion.Contiene("EGSSINFACT") AndAlso CveSolicitudViatico > 0 AndAlso MsgError = "" Then
|
||||
@@ -4715,12 +4708,8 @@ Partial Class Bancos_IE
|
||||
#End Region
|
||||
|
||||
|
||||
Protected Sub DdlMoneda_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles DdlMoneda.SelectedIndexChanged
|
||||
CambiaTipoMoneda()
|
||||
End Sub
|
||||
|
||||
Private Sub CambiaTipoMoneda()
|
||||
If DdlMoneda.SelectedValue.ToEntero > 1 Then
|
||||
If CveMoneda > 1 Then
|
||||
TrTipoCambio.Visible = True
|
||||
TxtTipoCambio.Text = GlobalTipoCambio(TxtFechaDocumento.Text.Trim.ToDate).ToString
|
||||
Else
|
||||
@@ -5078,7 +5067,7 @@ Partial Class Bancos_IE
|
||||
If HdnCveProveedor.Value.ToEntero > 0 Or HdnCvePersonal.Value.ToEntero > 0 Then
|
||||
trIEDevolucion.Visible = True
|
||||
|
||||
If ObjMov.GetEgresosSinComprobar("-1", "-1", HdnCveProveedor.Value.ToEntero, HdnCvePersonal.Value.ToEntero, -1, -1, -1, DdlMoneda.SelectedValue.ToEntero, -1, UsuarioActual.CveEmpresa) Then
|
||||
If ObjMov.GetEgresosSinComprobar("-1", "-1", HdnCveProveedor.Value.ToEntero, HdnCvePersonal.Value.ToEntero, -1, -1, -1, CveMoneda, -1, UsuarioActual.CveEmpresa) Then
|
||||
DtIEDevolucion = ObjMov.DtResultados.FiltraParametros("CveIE > 0 AND Saldo > 0 ", "", {"CveIE", "IEDevolucion", "Saldo"})
|
||||
|
||||
Else
|
||||
@@ -5103,7 +5092,7 @@ Partial Class Bancos_IE
|
||||
If HdnCveCliente.Value.ToEntero > 0 Then
|
||||
trIEDevolucion.Visible = True
|
||||
|
||||
If ObjMov.GetMovimientosIE(1, HdnCveCliente.Value.ToEntero, DdlCuenta.SelectedValue.ToEntero, Now.AddMonths(-24), Now, DdlMoneda.SelectedValue.ToEntero, -1, UsuarioActual.CveEmpresa) Then
|
||||
If ObjMov.GetMovimientosIE(1, HdnCveCliente.Value.ToEntero, DdlCuenta.SelectedValue.ToEntero, Now.AddMonths(-24), Now, CveMoneda, -1, UsuarioActual.CveEmpresa) Then
|
||||
DtIEDevolucion = ObjMov.DtResultados.FiltraParametros("Saldo > 0 ")
|
||||
Else
|
||||
Alert("Ocurrió un error al cargar los Egresos del Proveedor seleccionado. Por favor vuelva a intetar.", TipoMensaje.MsgError)
|
||||
@@ -5152,7 +5141,7 @@ Partial Class Bancos_IE
|
||||
DivIEAcreedor.Visible = True
|
||||
DdlIEDevolucion.Items.Clear()
|
||||
|
||||
If ObjMov.GetIngresosAcreedorXSaldar(HdnCveProveedor.Value.ToEntero, DdlMoneda.SelectedValue.ToEntero, UsuarioActual.CveEmpresa) Then
|
||||
If ObjMov.GetIngresosAcreedorXSaldar(HdnCveProveedor.Value.ToEntero, CveMoneda, UsuarioActual.CveEmpresa) Then
|
||||
DdlIEAcreedor.DataSource = ObjMov.DtResultados.FiltraParametros("CveIE > 0 AND Saldo > 0 ", "", {"CveIE", "IEAcreedor", "Saldo"})
|
||||
DdlIEAcreedor.DataBind()
|
||||
DdlIEAcreedor.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||
@@ -5492,7 +5481,6 @@ Partial Class Bancos_IE
|
||||
|
||||
CveOCSolicitudAnticipo = Request("CveOC").ToString.ToEntero
|
||||
TxtImporte.Enabled = False
|
||||
|
||||
End If
|
||||
End If
|
||||
|
||||
@@ -5507,8 +5495,6 @@ Partial Class Bancos_IE
|
||||
SaldoOCAnticipo = 0
|
||||
End If
|
||||
|
||||
|
||||
|
||||
If ObjOC.GetSolicitudAnticipo(CveOCSolicitudAnticipo, UsuarioActual.CveEmpresa) AndAlso ObjOC.DtResultados.Rows.Count > 0 Then
|
||||
|
||||
Dim DrOC = ObjOC.DtResultados.FiltroPrimero("")
|
||||
@@ -5529,20 +5515,14 @@ Partial Class Bancos_IE
|
||||
|
||||
ImporteOriginalDolaras = DrOC("ImporteAnticipo").ToString.ToDecimal
|
||||
End If
|
||||
|
||||
DdlMoneda.SelectedValue = DrOC("CveMoneda").ToString
|
||||
|
||||
CveMoneda = DrOC("CveMoneda").ToString.ToEntero
|
||||
CargaCuenta(DrOC("CveMoneda").ToString.ToEntero)
|
||||
|
||||
CveMonedaOriginal = DrOC("CveMoneda").ToString.ToEntero
|
||||
|
||||
CargaCuenta(CveMoneda)
|
||||
|
||||
CveMonedaOriginal = CveMoneda
|
||||
If CveMonedaOriginal > 1 Then
|
||||
MostrarPagoEnPesos(True)
|
||||
End If
|
||||
|
||||
|
||||
UpCuentaDeposito.Update()
|
||||
If DrOC("CveProveedor").ToString.ToEntero > 0 Then
|
||||
HdnCveProveedor.Value = DrOC("CveProveedor").ToString
|
||||
@@ -5740,8 +5720,6 @@ Partial Class Bancos_IE
|
||||
|
||||
Dim ObjBancos As New ClsBancos
|
||||
|
||||
|
||||
|
||||
DVGenerarComplementoModal.Visible = False
|
||||
|
||||
If Tipo = "Abono" Then
|
||||
@@ -5768,7 +5746,6 @@ Partial Class Bancos_IE
|
||||
DivCancelarComplemento.Visible = True
|
||||
End If
|
||||
|
||||
|
||||
' GvComplementoPagos.DataSource = ObjBancos.DtResultados.FiltraParametros("", DistinctColumns:={"CveComplementoPago", "SerieFolio", "Fecha", "CveIE"})
|
||||
|
||||
GvComplementoPagos.DataSource = ObjBancos.DtResultados.FiltraParametros("", DistinctColumns:={"CveComplementoPago", "FolioFiscal", "Folio", "SerieFolio", "FechaComplemento", "Importe", "RFCReceptor", "StrEstatus", "FechaCancelacion", "Tipo", "Estatus", "CveIE", "CvePAC", "MotivoCancelacion"})
|
||||
@@ -5822,8 +5799,6 @@ Partial Class Bancos_IE
|
||||
End If
|
||||
End If
|
||||
|
||||
|
||||
|
||||
ElseIf e.Row.DataKey("Tipo") = "Egs" Then
|
||||
|
||||
e.Row.Cells(3).Text = String.Format("<a class=""texto"" href=""/Compras/PopUpVerFactura.aspx?P={0}"" target=""_blank""><i class=""fa fa-file-code-o""></i></a>", Encripta(String.Format("OP=Fact&EXT=xml&CveFactura={0}&RFC={1}", e.Row.DBCampo("CveFactura"), e.Row.DBCampo(("RFCde").ToString.Replace("&", "%26%")))))
|
||||
@@ -5835,9 +5810,6 @@ Partial Class Bancos_IE
|
||||
|
||||
End If
|
||||
|
||||
|
||||
|
||||
|
||||
End If
|
||||
|
||||
End Sub
|
||||
@@ -5847,7 +5819,6 @@ Partial Class Bancos_IE
|
||||
RegistraScript("$('#ModalComplementoPagos').modal('show');")
|
||||
End Sub
|
||||
|
||||
|
||||
Private Function VerificaComplementos(Validos As Boolean) As Boolean
|
||||
Dim ObjBancos As New ClsBancos
|
||||
Dim Retorno As Boolean = False
|
||||
@@ -5926,9 +5897,8 @@ Partial Class Bancos_IE
|
||||
CargaCliente(CveCliente)
|
||||
'BuscarCliente()
|
||||
|
||||
DdlMoneda.SelectedValue = UrlParametros("CVEMONEDA").ToString
|
||||
CveMoneda = DdlMoneda.SelectedValue.ToEntero
|
||||
CargaCuenta(DdlMoneda.SelectedValue.ToEntero)
|
||||
CveMoneda = UrlParametros("CVEMONEDA").ToString.ToEntero
|
||||
CargaCuenta(CveMoneda)
|
||||
CambiaTipoMoneda()
|
||||
UpCuentaDeposito.Update()
|
||||
|
||||
@@ -5939,7 +5909,6 @@ Partial Class Bancos_IE
|
||||
|
||||
Dim ParametrosTexto As String = Decripta(Request("P"))
|
||||
|
||||
|
||||
If ParametrosTexto <> "" Then
|
||||
CargaParametros(ParametrosTexto)
|
||||
|
||||
@@ -5958,24 +5927,16 @@ Partial Class Bancos_IE
|
||||
|
||||
CargaProveedor(CveProveedor, "-1")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
'BuscarCliente()
|
||||
|
||||
DdlMoneda.SelectedValue = UrlParametros("CVEMONEDA").ToString
|
||||
CveMoneda = DdlMoneda.SelectedValue.ToEntero
|
||||
CargaCuenta(DdlMoneda.SelectedValue.ToEntero)
|
||||
'BuscarCliente()
|
||||
CveMoneda = UrlParametros("CVEMONEDA").ToString.ToEntero
|
||||
CargaCuenta(CveMoneda)
|
||||
CambiaTipoMoneda()
|
||||
UpCuentaDeposito.Update()
|
||||
|
||||
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
|
||||
End Sub
|
||||
#End Region
|
||||
|
||||
|
||||
Reference in New Issue
Block a user