--Sincronizar cambios con productivo 11/02/2025
This commit is contained in:
@@ -759,7 +759,9 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
||||
End If
|
||||
|
||||
Dim EsDistribuidor As Integer = IfNull(context.Request("esdistribuidor"), "-1").ToString.ToEntero
|
||||
|
||||
Dim cveclienteclasificacion = IfNull(context.Request("cveclienteclasificacion"), "-1").ToString.ToEntero
|
||||
|
||||
Dim usuario As Usuario = UsuarioActual(context)
|
||||
Dim CveEmpresa As Integer
|
||||
If IsNothing(usuario) Then
|
||||
@@ -797,7 +799,7 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
||||
Else
|
||||
context.Response.Write("[]")
|
||||
End If
|
||||
If DtRetorno IsNot Nothing Then DtRetorno.Dispose()
|
||||
DtRetorno.Dispose()
|
||||
DtRetorno = Nothing
|
||||
|
||||
Return retorno
|
||||
@@ -810,17 +812,17 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
||||
Dim DtRetorno As DataTable = Nothing
|
||||
|
||||
|
||||
Dim Estatus = IfNull(context.Request("estatus"), "-1").ToString.ToEntero
|
||||
Dim Estatus = IfNull(context.Request("estatus"), "-1").ToString.ToEntero
|
||||
|
||||
Dim filtro As String = ""
|
||||
Dim filtro As String = ""
|
||||
|
||||
If Estatus = 1 Then
|
||||
filtro = " Estatus = 'Activo' "
|
||||
End If
|
||||
If Estatus = 1 Then
|
||||
filtro = " Estatus = 'Activo' "
|
||||
End If
|
||||
|
||||
If Estatus = 0 Then
|
||||
filtro = " Estatus = 'Inactivo' "
|
||||
End If
|
||||
If Estatus = 0 Then
|
||||
filtro = " Estatus = 'Inactivo' "
|
||||
End If
|
||||
|
||||
Dim usuario As Usuario = UsuarioActual(context)
|
||||
Dim CveEmpresa As Integer
|
||||
@@ -995,12 +997,11 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
||||
End Try
|
||||
|
||||
End If
|
||||
|
||||
If usuario.Empresa.Funcionalidad(578) = "1" AndAlso DtPSRetorno IsNot Nothing Then
|
||||
'solo muestar productos con existencia.
|
||||
DtPSRetorno = DtPSRetorno.FiltraParametros("ExistenciaTotal > 0")
|
||||
End If
|
||||
If DtPSRetorno IsNot Nothing AndAlso DtPSRetorno.Columns("ExistenciaTotal") IsNot Nothing Then DtPSRetorno.Columns.Remove("ExistenciaTotal")
|
||||
If usuario.Empresa.Funcionalidad(578) = "10" AndAlso DtPSRetorno IsNot Nothing Then
|
||||
'solo muestar productos con existencia.
|
||||
DtPSRetorno = DtPSRetorno.FiltraParametros("ExistenciaTotal > 0")
|
||||
End If
|
||||
If DtPSRetorno IsNot Nothing ANDALSO DtPSRetorno.Columns("ExistenciaTotal") IsNot Nothing Then DtPSRetorno.Columns.Remove("ExistenciaTotal")
|
||||
|
||||
If UsaGlobal Then
|
||||
'se recarga el global, y el clspaginas, son los unicos 2 lugares
|
||||
|
||||
Reference in New Issue
Block a user