- mejora en unitario
This commit is contained in:
@@ -906,8 +906,6 @@ Public Class ClsProductosServicios
|
||||
DataAdapter("PA_Inv_UltimoPrecioCompraGet")
|
||||
|
||||
With SqlAdapter.SelectCommand.Parameters
|
||||
|
||||
|
||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||
.Add("@CvePS", SqlDbType.Int).Value = CvePS
|
||||
.Add("@PU", SqlDbType.Money).Direction = ParameterDirection.Output
|
||||
@@ -915,7 +913,7 @@ Public Class ClsProductosServicios
|
||||
|
||||
Try
|
||||
SqlAdapter.Fill(Data)
|
||||
Retorno = CDbl(SqlAdapter.SelectCommand.Parameters("@PU").Value)
|
||||
Retorno = SqlAdapter.SelectCommand.Parameters("@PU").Value.ToString.ToDecimal
|
||||
|
||||
Catch Ex1 As SqlException
|
||||
Me.OnError("Ocurrió un error al obtener el precio unitario.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||
|
||||
Reference in New Issue
Block a user