-- sms, ocultar ver costo promedio y ult, costo,
This commit is contained in:
@@ -315,6 +315,14 @@ Partial Class Ventas_ActualizarPrecios
|
||||
GvMultiple.DataBind()
|
||||
End If
|
||||
|
||||
'sms, ocultar las últimos 2 columnas, solo mostrar la columna de precio
|
||||
If UsuarioActual.Empresa.Funcionalidad(578) = "1" Then
|
||||
If Not UsuarioActual.TienePermisoProceso(201) Then 'puede ver importes de inventario
|
||||
GvMultiple.Columns(GvMultiple.Columns.Count - 1).Visible = False
|
||||
GvMultiple.Columns(GvMultiple.Columns.Count - 2).Visible = False
|
||||
End If
|
||||
End If
|
||||
|
||||
UpDescargar.Update()
|
||||
UpDatos.Update()
|
||||
UPPrecioLista.Update()
|
||||
@@ -998,7 +1006,6 @@ Partial Class Ventas_ActualizarPrecios
|
||||
Dim TxtId As String = "TxtPrecio_" + (colIndex - 1).ToString()
|
||||
|
||||
If indiceColumna <= DtPreciosMultiple.Columns.Count - 1 Then
|
||||
|
||||
Dim CvePrecioLista As Integer = GvMultiple.HeaderRow.FCLabel(LtlId).Attributes().Item("cvepreciolista").ToEntero()
|
||||
Dim Precio As Decimal = GvRow.FCTextBox(TxtId).Text.ToDecimal()
|
||||
TieneError = Not ObjPS.UpdatePSPreciosLista(Precio, CvePrecioLista, 0, CvePS, UsuarioActual.CveUsuario, NowADS(), True)
|
||||
@@ -1009,30 +1016,23 @@ Partial Class Ventas_ActualizarPrecios
|
||||
Dim splitValues As String() = text.Split("|"c)
|
||||
|
||||
If splitValues.Length > 1 Then
|
||||
|
||||
Dim PrecioLista As String = splitValues(1)
|
||||
|
||||
Dim DrPS = DtPS.FiltroPrimero($"CvePS = {CvePS}")
|
||||
If DrPS IsNot Nothing Then
|
||||
TieneError = ActualizarPreciosFranquicia(ObjPS, DrPS("Codigo").ToString(), Precio, 0, PrecioLista, UpdatePrecioMinimo:=False)
|
||||
Else
|
||||
TieneError = True
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
Else
|
||||
Exit For
|
||||
End If
|
||||
|
||||
If TieneError Then
|
||||
Exit For
|
||||
End If
|
||||
End If
|
||||
|
||||
Next
|
||||
End If
|
||||
|
||||
Next
|
||||
Catch ex As Exception
|
||||
OnError("Ocurrió un error al actualizar precios", ex)
|
||||
|
||||
Reference in New Issue
Block a user