--fix ventas
This commit is contained in:
@@ -24722,7 +24722,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Not dt.Columns(8).ColumnName = "Tiempo Entrega" Then
|
If Not dt.Columns(8).ColumnName = "Tiempo Entrega" Then
|
||||||
Alert("El nombre de la octava columna debe ser 'Tiempo Entrega'. Favor de corregirlo", TipoMensaje.MsgError)
|
Alert("El nombre de la novena columna debe ser 'Tiempo Entrega'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -24767,57 +24767,64 @@ Partial Class Ventas
|
|||||||
CveSubProyecto = -1
|
CveSubProyecto = -1
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Codigo <> "" Then
|
If CveSubProyecto <= 0 Then
|
||||||
|
RowNoEncontrados = String.Format("{3} - No se encontró '{0}' en la fila {1}, columna '{2}'<\BR>(NoBD)", Proyecto, NumRow, "Proyecto", RowNoEncontrados)
|
||||||
Using ObjPS As New ClsProductosServicios
|
|
||||||
If ObjPS.GetPS(-1, -1, UsuarioActual.CveEmpresa, Codigo:=Codigo) Then
|
|
||||||
If ObjPS.CvePS > 0 Then
|
|
||||||
CvePS = ObjPS.CvePS
|
|
||||||
CveUM = ObjPS.CveUnidadMedida
|
|
||||||
CveClasificacion = ObjPS.CveClasificacion
|
|
||||||
Else
|
|
||||||
RowNoEncontrados = String.Format("{3} - No se encontró {0} en la fila {1}, columna {2}<\BR>", Codigo, NumRow, "Codigo", RowNoEncontrados)
|
|
||||||
End If
|
|
||||||
Else
|
|
||||||
RowNoEncontrados = String.Format("{3} - No se encontró {0} en la fila {1}, columna {2}<\BR>(NoBD)", Codigo, NumRow, "Codigo", RowNoEncontrados)
|
|
||||||
End If
|
|
||||||
End Using
|
|
||||||
|
|
||||||
ElseIf CodigoBarras <> "" Then
|
|
||||||
|
|
||||||
Using ObjPS As New ClsProductosServicios
|
|
||||||
If ObjPS.GetPS(-1, -1, UsuarioActual.CveEmpresa, CodigoBarras:=CodigoBarras) Then
|
|
||||||
If ObjPS.CvePS > 0 Then
|
|
||||||
CvePS = ObjPS.CvePS
|
|
||||||
CveUM = ObjPS.CveUnidadMedida
|
|
||||||
CveClasificacion = ObjPS.CveClasificacion
|
|
||||||
Else
|
|
||||||
RowNoEncontrados = String.Format("{3} - No se encontró {0} en la fila {1}, columna {2}<\BR>", Codigo, NumRow, "Codigo", RowNoEncontrados)
|
|
||||||
End If
|
|
||||||
Else
|
|
||||||
RowNoEncontrados = String.Format("{3} - No se encontró {0} en la fila {1}, columna {2}<\BR>(NoBD)", Codigo, NumRow, "Codigo", RowNoEncontrados)
|
|
||||||
End If
|
|
||||||
End Using
|
|
||||||
|
|
||||||
ElseIf ProductoServicio <> "" Then
|
|
||||||
|
|
||||||
Using ObjPS As New ClsProductosServicios
|
|
||||||
If ObjPS.GetPS(-1, -1, UsuarioActual.CveEmpresa, CodigoBarras:=CodigoBarras) Then
|
|
||||||
If ObjPS.CvePS > 0 Then
|
|
||||||
CvePS = ObjPS.CvePS
|
|
||||||
CveUM = ObjPS.CveUnidadMedida
|
|
||||||
CveClasificacion = ObjPS.CveClasificacion
|
|
||||||
Else
|
|
||||||
RowNoEncontrados = String.Format("{3} - No se encontró {0} en la fila {1}, columna {2}<\BR>", Codigo, NumRow, "Codigo", RowNoEncontrados)
|
|
||||||
End If
|
|
||||||
Else
|
|
||||||
RowNoEncontrados = String.Format("{3} - No se encontró {0} en la fila {1}, columna {2}<\BR>(NoBD)", Codigo, NumRow, "Codigo", RowNoEncontrados)
|
|
||||||
End If
|
|
||||||
End Using
|
|
||||||
Else
|
|
||||||
RowNoEncontrados &= "<\BR> - En la fila " & NumRow & " no se especificó código, código de barras ó descripción."
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If CveSubProyecto > 0 Then
|
||||||
|
If Codigo <> "" Then
|
||||||
|
|
||||||
|
Using ObjPS As New ClsProductosServicios
|
||||||
|
If ObjPS.GetPS(-1, -1, UsuarioActual.CveEmpresa, Codigo:=Codigo) Then
|
||||||
|
If ObjPS.CvePS > 0 Then
|
||||||
|
CvePS = ObjPS.CvePS
|
||||||
|
CveUM = ObjPS.CveUnidadMedida
|
||||||
|
CveClasificacion = ObjPS.CveClasificacion
|
||||||
|
Else
|
||||||
|
RowNoEncontrados = String.Format("{3} - No se encontró '{0}' en la fila {1}, columna '{2}'<\BR>", Codigo, NumRow, "Codigo", RowNoEncontrados)
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
RowNoEncontrados = String.Format("{3} - No se encontró '{0}' en la fila {1}, columna '{2}'<\BR>(NoBD)", Codigo, NumRow, "Codigo", RowNoEncontrados)
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
|
||||||
|
ElseIf CodigoBarras <> "" Then
|
||||||
|
|
||||||
|
Using ObjPS As New ClsProductosServicios
|
||||||
|
If ObjPS.GetPS(-1, -1, UsuarioActual.CveEmpresa, CodigoBarras:=CodigoBarras) Then
|
||||||
|
If ObjPS.CvePS > 0 Then
|
||||||
|
CvePS = ObjPS.CvePS
|
||||||
|
CveUM = ObjPS.CveUnidadMedida
|
||||||
|
CveClasificacion = ObjPS.CveClasificacion
|
||||||
|
Else
|
||||||
|
RowNoEncontrados = String.Format("{3} - No se encontró '{0}' en la fila {1}, columna '{2}'<\BR>", Codigo, NumRow, "Codigo", RowNoEncontrados)
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
RowNoEncontrados = String.Format("{3} - No se encontró '{0}' en la fila {1}, columna '{2}'<\BR>(NoBD)", Codigo, NumRow, "Codigo", RowNoEncontrados)
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
|
||||||
|
ElseIf ProductoServicio <> "" Then
|
||||||
|
|
||||||
|
Using ObjPS As New ClsProductosServicios
|
||||||
|
If ObjPS.GetPS(-1, -1, UsuarioActual.CveEmpresa, CodigoBarras:=CodigoBarras) Then
|
||||||
|
If ObjPS.CvePS > 0 Then
|
||||||
|
CvePS = ObjPS.CvePS
|
||||||
|
CveUM = ObjPS.CveUnidadMedida
|
||||||
|
CveClasificacion = ObjPS.CveClasificacion
|
||||||
|
Else
|
||||||
|
RowNoEncontrados = String.Format("{3} - No se encontró '{0}' en la fila {1}, columna '{2}'<\BR>", Codigo, NumRow, "Codigo", RowNoEncontrados)
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
RowNoEncontrados = String.Format("{3} - No se encontró '{0}' en la fila {1}, columna '{2}'<\BR>(NoBD)", Codigo, NumRow, "Codigo", RowNoEncontrados)
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
Else
|
||||||
|
RowNoEncontrados &= "<\BR> - En la fila " & NumRow & " no se especificó código, código de barras ó descripción."
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
If CvePS > 0 Then
|
If CvePS > 0 Then
|
||||||
|
|
||||||
If PrecioUnitario <= 0 Then
|
If PrecioUnitario <= 0 Then
|
||||||
|
|||||||
Reference in New Issue
Block a user