--Bloqueo de precio para funcionalidad 109
This commit is contained in:
@@ -8069,7 +8069,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.TienePermisoProceso(68) Then
|
If UsuarioActual.TienePermisoProceso(68) OrElse UsuarioActual.Empresa.Funcionalidad(109) = "1" Then
|
||||||
e.Row.FCTextBox("TxtPrecio").Enabled = False
|
e.Row.FCTextBox("TxtPrecio").Enabled = False
|
||||||
e.Row.FCTextBox("TxtDescuento").Enabled = False
|
e.Row.FCTextBox("TxtDescuento").Enabled = False
|
||||||
End If
|
End If
|
||||||
@@ -24013,7 +24013,7 @@ Partial Class Ventas
|
|||||||
Dim PrecioCompra = ObjPS.GetUltimoPrecioCompra(UsuarioActual.CveEmpresa, GvRow.DataKey("CvePS").ToEntero())
|
Dim PrecioCompra = ObjPS.GetUltimoPrecioCompra(UsuarioActual.CveEmpresa, GvRow.DataKey("CvePS").ToEntero())
|
||||||
If PrecioCompra > 0 Then
|
If PrecioCompra > 0 Then
|
||||||
HdnTotalCompra.Value = (PrecioCompra * GvRow.DataKey("Cantidad").ToDouble() * 1.16).ToString()
|
HdnTotalCompra.Value = (PrecioCompra * GvRow.DataKey("Cantidad").ToDouble() * 1.16).ToString()
|
||||||
LblPrecioCompra.Text = $"PU Compra: {(PrecioCompra * 1.16).FormatoNumero(2)}"
|
LblPrecioCompra.Text = $"PU Compra: {(PrecioCompra).FormatoNumero(2)}"
|
||||||
End If
|
End If
|
||||||
End Using
|
End Using
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user