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