Error al aplicar anticipos en compras
This commit is contained in:
@@ -7334,6 +7334,8 @@ Partial Class Compras_Compras
|
||||
|
||||
For Each Ant As Compras_Compras.Anticipos In ArrAnticipos
|
||||
|
||||
TipoMovimiento = If(Row("TipoMovto").ToString = "True", True, False)
|
||||
|
||||
Dim ConceptoContableAnticipo, ConceptoContableAnticipoComplementaria As Integer
|
||||
Dim CveCompraNC As Integer = CveCompra
|
||||
|
||||
@@ -7537,7 +7539,7 @@ Partial Class Compras_Compras
|
||||
|
||||
Dim usacomplementariaAnticipo As Boolean = False
|
||||
usacomplementariaAnticipo = If(Ant.TCCompra > 1 AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119), True, False)
|
||||
Dim TipoCambioAnt = Ant.TCCompra
|
||||
Dim TipoCambioAnt As Decimal = Ant.TCCompra
|
||||
|
||||
|
||||
Dim ImporteAnt As Decimal = importeMovimiento
|
||||
@@ -8877,6 +8879,7 @@ Partial Class Compras_Compras
|
||||
End If
|
||||
|
||||
Dim TipoCambioDiferencia = If(ChkPagarConDolares.Checked, GlobalTipoCambio(TxtFecha.Text.ToDate), TipoCambioCompra).ToDecimal
|
||||
|
||||
If TipoCambioDiferencia <> TipoCambioAnt Then
|
||||
Dim importeFluctuacion = (ImporteAnt * TipoCambioDiferencia) - (ImporteAnt * TipoCambioAnt)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user