diff --git a/App_Code/ClsNominas.vb b/App_Code/ClsNominas.vb index 90ca3f680..409c84a51 100644 --- a/App_Code/ClsNominas.vb +++ b/App_Code/ClsNominas.vb @@ -338,7 +338,7 @@ Public Class ClsNominas Return retorno End Function - Public Function SUAMovmientosAfiliatoriosGET(cveEmpresa As Integer, FechaInicio As DateTime, FechaFin As DateTime, CveTipoPeriodo As Integer) As Boolean + Public Function SUAMovmientosAfiliatoriosGET(cveEmpresa As Integer, FechaInicio As DateTime, FechaFin As DateTime, CveTipoPeriodo As Integer, Optional CveRegistroPatronal As Integer = -1) As Boolean Dim retorno As Boolean = False DTSet = New DataSet() DataAdapter("[PA_Nom_SUAMovmientosAfiliatoriosGET]", CommandType.StoredProcedure) @@ -347,6 +347,7 @@ Public Class ClsNominas .Add("@FechaInicio", SqlDbType.Date).Value = FechaInicio .Add("@FechaFin", SqlDbType.Date).Value = FechaFin .Add("@TipoPeriodo", SqlDbType.Int).Value = CveTipoPeriodo + .Add("@CveRegistroPatronal", SqlDbType.Int).Value = CveRegistroPatronal End With Try SqlAdapter.Fill(DTSet) diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb index 0726f8f60..d921cbd71 100644 --- a/App_Code/ClsPaginas.vb +++ b/App_Code/ClsPaginas.vb @@ -5517,6 +5517,8 @@ Public Class ClsPaginas PaginaDict.Add("/Ventas/CatAutorizacionLimites.aspx".ToUpper(), 781) PaginaDict.Add("/Ventas/RepComisionesServec.aspx".ToUpper(), 782) PaginaDict.Add("/Ventas/RepComisionesServecDetalle.aspx".ToUpper(), 782) + PaginaDict.Add("/Ventas/RepCancelacionesVentas.aspx".ToUpper(), 1325) + #End Region diff --git a/App_Code/ClsVentas.vb b/App_Code/ClsVentas.vb index 7a0d213fc..1aea48386 100644 --- a/App_Code/ClsVentas.vb +++ b/App_Code/ClsVentas.vb @@ -5391,6 +5391,30 @@ Public Class ClsVentas End Function + Public Function GetRepCancelacionVentas(FechaI As Date, FechaF As Date, CveSubProyecto As Integer, CveCliente As Integer, CveMotivoCancelacion As Integer, CveUsuario As Integer, CveEmpresa As Integer) As Boolean + + Dim Retorno As Boolean = False + DataAdapter("PA_Vta_RepCancelacionesVentasGet") + With SqlAdapter.SelectCommand.Parameters + + .Add("@FechaI", SqlDbType.Date).Value = FechaI + .Add("@FechaF", SqlDbType.Date).Value = FechaF + .Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto + .Add("@CveCliente", SqlDbType.Int).Value = CveCliente + .Add("@CveMotivoCancelacion", SqlDbType.Int).Value = CveMotivoCancelacion + .Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario + .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa + + End With + Try + SqlAdapter.Fill(Data) + Retorno = True + Catch ex As Exception + OnError("Ocurrió un error obtener las ventas canceladas.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) + End Try + Return Retorno + End Function + #Region "C L I E N T E S V E N D E D O R E S S U B P R O Y E C T O S" Public Function GetClientesVendedoresSubProyectos(CveCliente As Integer, CveVendedor As Integer, CveSubProyecto As Integer, CveEmpresa As Integer) As Boolean diff --git a/Nomina/MovimientosSUA.aspx b/Nomina/MovimientosSUA.aspx index 1ecd6f58d..c3f2edcd9 100644 --- a/Nomina/MovimientosSUA.aspx +++ b/Nomina/MovimientosSUA.aspx @@ -30,14 +30,14 @@