--Temporal. No generar salida en factura global

This commit is contained in:
2024-04-09 23:19:04 -07:00
parent eac68128e5
commit 06bfe3f009

View File

@@ -4318,6 +4318,13 @@ Namespace Modelos
End If End If
End If End If
'TEMPORAL. PARA OPTIMIZAR LOS TIEMPOS PARA LA GENERACION DE LA FACTURA GLOBAL
If factura.EsFacturaGlobal Then
If Not ObjInventario.ActualizarEsDevolucionVenta(factura.CveVenta, 2) Then
OcurrioError = True
End If
Else
If RemisionesLista IsNot Nothing AndAlso factura.TipoDocto = "Ing" AndAlso RemisionesLista.Count > 0 Then If RemisionesLista IsNot Nothing AndAlso factura.TipoDocto = "Ing" AndAlso RemisionesLista.Count > 0 Then
For Each CveRemision As Integer In RemisionesLista For Each CveRemision As Integer In RemisionesLista
'El almacen general es el Primer Almacen de Material en la Sucursal 'El almacen general es el Primer Almacen de Material en la Sucursal
@@ -4327,6 +4334,7 @@ Namespace Modelos
End If End If
Next Next
End If End If
End If
If factura.TipoDocto = "Rem" AndAlso factura.ServicioDomicilio Then If factura.TipoDocto = "Rem" AndAlso factura.ServicioDomicilio Then
'debe de hacerse un traspaso entre almacenes, no contabilizable. .RMF pdte 'debe de hacerse un traspaso entre almacenes, no contabilizable. .RMF pdte