- mejora en unitario

This commit is contained in:
2024-03-23 15:54:37 -07:00
parent 7af55a8f05
commit 8070b0e6fe

View File

@@ -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())