-- mejora
This commit is contained in:
@@ -816,6 +816,7 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
If DtSaldo IsNot Nothing AndAlso DtSaldo.Rows.Count = 1 Then
|
If DtSaldo IsNot Nothing AndAlso DtSaldo.Rows.Count = 1 Then
|
||||||
Dim ImporteRef As Decimal = DtSaldo.SUM("Saldo", $"CveIE={DdlIngreso.SelectedValue.ToEntero()}")
|
Dim ImporteRef As Decimal = DtSaldo.SUM("Saldo", $"CveIE={DdlIngreso.SelectedValue.ToEntero()}")
|
||||||
Dim tCveMonedaIE As Integer = DtSaldo.FiltroPrimeroValor("CveMoneda", "").ToEntero
|
Dim tCveMonedaIE As Integer = DtSaldo.FiltroPrimeroValor("CveMoneda", "").ToEntero
|
||||||
|
CveMoneda = tCveMonedaIE
|
||||||
Dim ImporteAbonar As Decimal = 0
|
Dim ImporteAbonar As Decimal = 0
|
||||||
Dim TC As Decimal = 1
|
Dim TC As Decimal = 1
|
||||||
'comparativo.
|
'comparativo.
|
||||||
@@ -866,18 +867,15 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
Dim CveIE As Integer = -1
|
Dim CveIE As Integer = -1
|
||||||
Dim CveVentasPago As New List(Of Integer)
|
Dim CveVentasPago As New List(Of Integer)
|
||||||
Dim SeriesPago As New List(Of String)
|
Dim SeriesPago As New List(Of String)
|
||||||
|
|
||||||
Dim MsgError As String = ""
|
Dim MsgError As String = ""
|
||||||
Dim NCGeneradas As New List(Of RespuestaNotaCredrito)
|
Dim NCGeneradas As New List(Of RespuestaNotaCredrito)
|
||||||
Dim ListaFacturasGenerarNC As New List(Of Modelos.Factura)
|
Dim ListaFacturasGenerarNC As New List(Of Modelos.Factura)
|
||||||
Dim ObjFacturaAnt As Modelos.Factura = Nothing
|
Dim ObjFacturaAnt As Modelos.Factura = Nothing
|
||||||
Dim RespAnt As Modelos.Factura.MMensajeFactura = Nothing
|
Dim RespAnt As Modelos.Factura.MMensajeFactura = Nothing
|
||||||
Dim ImporteSeleccionado As Decimal = 0
|
Dim ImporteSeleccionado As Decimal = 0
|
||||||
|
|
||||||
'02-05-2018 MANDAMOS CANCELAR EL COMPLEMENTO A SUSTITUIR
|
'02-05-2018 MANDAMOS CANCELAR EL COMPLEMENTO A SUSTITUIR
|
||||||
Dim ErrorCancelarIE As Boolean = False
|
Dim ErrorCancelarIE As Boolean = False
|
||||||
|
|
||||||
|
|
||||||
Dim ObjIE As New ClsBancos()
|
Dim ObjIE As New ClsBancos()
|
||||||
Dim ObjMov As New ClsContabilidad(ObjIE.IniciaTransacSQL)
|
Dim ObjMov As New ClsContabilidad(ObjIE.IniciaTransacSQL)
|
||||||
Dim ObjVentasSaldos As New ClsVentas(ObjIE.IniciaTransacSQL)
|
Dim ObjVentasSaldos As New ClsVentas(ObjIE.IniciaTransacSQL)
|
||||||
@@ -898,9 +896,7 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
Dim ConceptoPoliza As String = String.Format("{0} {1}", TxtAboneA.Text, TxtObservaciones.Text)
|
Dim ConceptoPoliza As String = String.Format("{0} {1}", TxtAboneA.Text, TxtObservaciones.Text)
|
||||||
|
|
||||||
If DdlCuenta.SelectedValue.ToEntero > 0 Then
|
If DdlCuenta.SelectedValue.ToEntero > 0 Then
|
||||||
CveMoneda = GlobalDTBancosCuentas(-1, CveEmpresa:=UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveMoneda", $"CveEmpresa = {UsuarioActual.CveEmpresa} AND CveCuenta = {DdlCuenta.SelectedValue.ToEntero}").ToEntero
|
CveMoneda = GlobalDTBancosCuentas(-1, CveEmpresa:=UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveMoneda", $" CveCuenta = {DdlCuenta.SelectedValue.ToEntero}").ToEntero
|
||||||
Else
|
|
||||||
CveMoneda = IfNull(Request("CveMoneda"), "1").ToString.ToEntero
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
CvePrePoliza = ObjMov.AddPrePolizas("Ventas/ClientesAbonar", 11, TxtImporte.Text.Trim.ToDecimal, TxtImporte.Text.Trim.ToDecimal, 1, TxtFechaDocumento.Text.ToDate, ConceptoPoliza, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
CvePrePoliza = ObjMov.AddPrePolizas("Ventas/ClientesAbonar", 11, TxtImporte.Text.Trim.ToDecimal, TxtImporte.Text.Trim.ToDecimal, 1, TxtFechaDocumento.Text.ToDate, ConceptoPoliza, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||||
@@ -909,9 +905,7 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
Dim CveCuentaDeposito As Integer = 0
|
Dim CveCuentaDeposito As Integer = 0
|
||||||
Dim TipoCambio As Decimal = 0
|
Dim TipoCambio As Decimal = 0
|
||||||
|
|
||||||
If DdlCuentaDeposito.Items.Count > 0 Then
|
If DdlCuentaDeposito.Items.Count > 0 Then CveCuentaDeposito = DdlCuentaDeposito.SelectedValue.ToEntero
|
||||||
CveCuentaDeposito = DdlCuentaDeposito.SelectedValue.ToEntero
|
|
||||||
End If
|
|
||||||
|
|
||||||
If CveMoneda = 2 Then
|
If CveMoneda = 2 Then
|
||||||
If TxtTCDolares.Visible Then
|
If TxtTCDolares.Visible Then
|
||||||
@@ -1011,7 +1005,6 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
MsgError = "No se pudo insertar la póliza"
|
MsgError = "No se pudo insertar la póliza"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If TxtPrestamoIntereses.Text.ToDecimal <> 0 AndAlso MsgError = "" Then
|
If TxtPrestamoIntereses.Text.ToDecimal <> 0 AndAlso MsgError = "" Then
|
||||||
|
|||||||
Reference in New Issue
Block a user