--FIX VSH. cancelacion de ingreso con aplicacion de anticipos
This commit is contained in:
@@ -3619,22 +3619,10 @@ Namespace Modelos
|
|||||||
CveIEAnticipo = -1
|
CveIEAnticipo = -1
|
||||||
CveSubProyectoContabilizar = CveSubProyectoVenta
|
CveSubProyectoContabilizar = CveSubProyectoVenta
|
||||||
|
|
||||||
Dim CveVenta As Integer = ObjFactura.CveVenta
|
Dim CveVenta As Integer = row2("CveVenta").ToString().ToEntero
|
||||||
Dim CveVentaAmortizacion As Integer = row2("CveVenta").ToString().ToEntero
|
Dim CveVentaAmortizacion As Integer = ObjFactura.CveVenta
|
||||||
|
|
||||||
If row2("CveIE").ToString().ToEntero > 0 Then CveIEAnticipo = row2("CveIE").ToString().ToEntero
|
If row2("CveIE").ToString().ToEntero > 0 Then CveIEAnticipo = row2("CveIE").ToString().ToEntero
|
||||||
'FALTA LA MONEDA PAR ALA CUENTA .RMF Y MANDAR EL CVEIE
|
|
||||||
|
|
||||||
'SI ES FACTURA EN 0 Y TIENE ANTICIPOS
|
|
||||||
If (ObjFactura.Total = 0 AndAlso UsuarioActual.CveEmpresa.Contiene(72) AndAlso ObjFactura.TipoDocto.Contiene("Ing")) AndAlso row2("TipoDocto").ToString() = "Ant" Then
|
|
||||||
CveVenta = row2("CveVenta").ToString().ToEntero
|
|
||||||
CveVentaAmortizacion = ObjFactura.CveVenta
|
|
||||||
End If
|
|
||||||
|
|
||||||
'SI ES EGRESO Y TIENE ANTICIPOS VINCULADOS
|
|
||||||
If (ObjFactura.TipoDocto.Contiene("Egs") AndAlso row2("TipoDocto").ToString() = "Ant" AndAlso EsNCAmortizacion) Then
|
|
||||||
CveVenta = row2("CveVenta").ToString().ToEntero
|
|
||||||
CveVentaAmortizacion = ObjFactura.CveVenta
|
|
||||||
End If
|
|
||||||
|
|
||||||
If importeMovimiento <> 0 Then
|
If importeMovimiento <> 0 Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, importeMovimiento, importeMovimiento, ConceptoContable, Referencia, Concepto,
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, importeMovimiento, importeMovimiento, ConceptoContable, Referencia, Concepto,
|
||||||
|
|||||||
Reference in New Issue
Block a user