Solo generar movimiento automatico en ingresos y devoluciones

This commit is contained in:
2022-10-19 16:13:39 -07:00
parent 421009d846
commit 6ae972b002

View File

@@ -14866,16 +14866,14 @@ Partial Class Ventas
Next Next
End If End If
If DivAlmacen.Visible AndAlso GvInv.Rows.Cast(Of GridViewRow)().Count(Function(gvr) gvr.FCCheckBox("cbInv").Checked) > 0 Then If factura.TipoDocto.Contiene("Ing", "Dev") AndAlso DivAlmacen.Visible AndAlso GvInv.Rows.Cast(Of GridViewRow)().Count(Function(gvr) gvr.FCCheckBox("cbInv").Checked) > 0 Then
Dim Filtro As String = "" Dim Filtro As String = ""
Select Case factura.TipoDocto Select Case factura.TipoDocto
Case "Ing", "Ped" Case "Ing"
Filtro = "CveConcepto IN (3,40)" Filtro = "CveConcepto IN (3,40)"
Case "Dev" Case "Dev"
Filtro = "CveConcepto IN (3,40)" Filtro = "CveConcepto IN (3,40)"
Case Else
Filtro = "CveConcepto = 9"
End Select End Select
Dim CveConceptoAlmacen As Integer = 3 Dim CveConceptoAlmacen As Integer = 3