diff --git a/App_Code/ClsInventarios.vb b/App_Code/ClsInventarios.vb index 0d59da612..4cacc834a 100644 --- a/App_Code/ClsInventarios.vb +++ b/App_Code/ClsInventarios.vb @@ -4899,6 +4899,29 @@ Public Class ClsInventarios Return Retorno End Function #End Region + + Public Function GetExistenciasMedRin(CvePS As Integer, CveEmpresa As Integer, CveRinTamaño As Integer, CveMedida As Integer) As Boolean + Dim Retorno As Boolean = False + DataAdapter("PA_Inv_ExistenciaMedRinGet") + + With SqlAdapter.SelectCommand.Parameters + .Add("@CvePS", SqlDbType.Int).Value = CvePS + .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa + .Add("@CveRinTamaño", SqlDbType.Int).Value = CveRinTamaño + .Add("@CveMedida", SqlDbType.Int).Value = CveMedida + End With + + Try + SqlAdapter.Fill(Data) + Retorno = True + Catch Ex1 As SqlException + Me.OnError("Ocurrió un error al obtener las existencias.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) + Catch ex As Exception + OnError("Ocurrió un error al obtener las existencias.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + End Try + + Return Retorno + End Function #Region " IDisposable Support " ' IDisposable Protected Overridable Sub Dispose(ByVal disposing As Boolean) diff --git a/Ventas/Clientes.aspx b/Ventas/Clientes.aspx index b45f97221..5c4cc70ee 100644 --- a/Ventas/Clientes.aspx +++ b/Ventas/Clientes.aspx @@ -840,7 +840,7 @@
- @@ -848,7 +848,7 @@ - +
@@ -1075,8 +1075,8 @@ - - + + @@ -4283,7 +4283,45 @@
- +