- limpieza
This commit is contained in:
@@ -321,8 +321,6 @@ Partial Class Bancos_Transferencias
|
|||||||
Dim IDCtaContableComplementariaDestino As Integer = 0
|
Dim IDCtaContableComplementariaDestino As Integer = 0
|
||||||
Dim IdCtaContableDestino As Integer = 0
|
Dim IdCtaContableDestino As Integer = 0
|
||||||
Dim CuentasContablesInvalidasSIG As New StringBuilder
|
Dim CuentasContablesInvalidasSIG As New StringBuilder
|
||||||
Dim CveCuentaOrigen As Integer = 0
|
|
||||||
Dim CveCuentaDestino As Integer = 0
|
|
||||||
Dim RowCuentaOrigen As DataRow = Nothing
|
Dim RowCuentaOrigen As DataRow = Nothing
|
||||||
|
|
||||||
|
|
||||||
@@ -347,18 +345,8 @@ Partial Class Bancos_Transferencias
|
|||||||
CuentasContablesInvalidas.Append("<br> Cuenta Contable Destino")
|
CuentasContablesInvalidas.Append("<br> Cuenta Contable Destino")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'Conta SIG
|
|
||||||
If CveCuentaOrigen < 1 Then
|
|
||||||
CuentasContablesInvalidasSIG.Append("<br> Cuenta Contable Origen")
|
|
||||||
End If
|
|
||||||
|
|
||||||
If CveCuentaDestino < 1 Then
|
|
||||||
CuentasContablesInvalidasSIG.Append("<br> Cuenta Contable Destino")
|
|
||||||
End If
|
|
||||||
|
|
||||||
If Opcion = 1 Then ' CUANDO ES DOMICILIZACION
|
If Opcion = 1 Then ' CUANDO ES DOMICILIZACION
|
||||||
IdCtaContableOrigen = IdCtaContableDestino
|
IdCtaContableOrigen = IdCtaContableDestino
|
||||||
CveCuentaOrigen = CveCuentaDestino
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim TipoMovtoDetalle As Boolean = True
|
Dim TipoMovtoDetalle As Boolean = True
|
||||||
@@ -369,7 +357,6 @@ Partial Class Bancos_Transferencias
|
|||||||
TxtImporte.Text.ToDouble, $"Transferencia entre cuentas {TxtObservaciones.Text}", 30, $"Transferencia entre cuentas {TxtObservaciones.Text}", Now, IdCtaContableOrigen, -1, CveIE,
|
TxtImporte.Text.ToDouble, $"Transferencia entre cuentas {TxtObservaciones.Text}", 30, $"Transferencia entre cuentas {TxtObservaciones.Text}", Now, IdCtaContableOrigen, -1, CveIE,
|
||||||
ImporteMX:=If(Not UsuarioActual.CveEmpresa.Contiene(13, 83), TxtImporte.Text.ToDouble, ImporteMXOrigen),
|
ImporteMX:=If(Not UsuarioActual.CveEmpresa.Contiene(13, 83), TxtImporte.Text.ToDouble, ImporteMXOrigen),
|
||||||
ImporteME:=If(CveMonedaOrigen > 1, TxtImporte.Text.ToDouble * TC, 0),
|
ImporteME:=If(CveMonedaOrigen > 1, TxtImporte.Text.ToDouble * TC, 0),
|
||||||
CveCuenta:=CveCuentaOrigen,
|
|
||||||
CveIEDevolucion:=CveIEDevolucion) Then
|
CveIEDevolucion:=CveIEDevolucion) Then
|
||||||
|
|
||||||
If CveMonedaOrigen > 1 AndAlso Not UsuarioActual.CveEmpresa.Contiene(13, 83) Then
|
If CveMonedaOrigen > 1 AndAlso Not UsuarioActual.CveEmpresa.Contiene(13, 83) Then
|
||||||
@@ -401,7 +388,7 @@ Partial Class Bancos_Transferencias
|
|||||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovtoDetalle,
|
If Not ObjMov.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovtoDetalle,
|
||||||
ImporteDestino, $"Transferencia entre cuentas {TxtObservaciones.Text}", 30, $"Transferencia entre cuentas {TxtObservaciones.Text}", Now, IdCtaContableDestino, -1, CveIEDestino,
|
ImporteDestino, $"Transferencia entre cuentas {TxtObservaciones.Text}", 30, $"Transferencia entre cuentas {TxtObservaciones.Text}", Now, IdCtaContableDestino, -1, CveIEDestino,
|
||||||
ImporteMX:=If(Not UsuarioActual.CveEmpresa.Contiene(13, 83), ImporteDestino, ImporteMXDestino),
|
ImporteMX:=If(Not UsuarioActual.CveEmpresa.Contiene(13, 83), ImporteDestino, ImporteMXDestino),
|
||||||
ImporteME:=If(CveMonedaDestino > 1, ImporteDestino, 0), CveCuenta:=CveCuentaDestino) Then
|
ImporteME:=If(CveMonedaDestino > 1, ImporteDestino, 0)) Then
|
||||||
MsgError = "Ocurrio un error al ingresar la prepoliza"
|
MsgError = "Ocurrio un error al ingresar la prepoliza"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user