--Proceso para habilitar aplicacion de anticipos
This commit is contained in:
@@ -3641,7 +3641,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.Empresa.CveEmpresa = 189 Then
|
If UsuarioActual.Empresa.CveEmpresa = 189 Then
|
||||||
ImgAntiPend.Visible = False
|
ImgAntiPend.Visible = UsuarioActual.TienePermisoProceso(406)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
InicializaDevolucionAlmacen()
|
InicializaDevolucionAlmacen()
|
||||||
@@ -5489,7 +5489,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
If ViewState("CveCotizacion") IsNot Nothing AndAlso ViewState("CveCotizacion").ToString().ToEntero() > 0 AndAlso DdlTipoComprobante.SelectedValue = "Ing" Then
|
If ViewState("CveCotizacion") IsNot Nothing AndAlso ViewState("CveCotizacion").ToString().ToEntero() > 0 AndAlso DdlTipoComprobante.SelectedValue = "Ing" Then
|
||||||
If UsuarioActual.CveEmpresa = 189 Then
|
If UsuarioActual.CveEmpresa = 189 Then
|
||||||
ImgAntiPend.Visible = False
|
ImgAntiPend.Visible = UsuarioActual.TienePermisoProceso(406)
|
||||||
Else
|
Else
|
||||||
ImgAntiPend.Visible = True
|
ImgAntiPend.Visible = True
|
||||||
End If
|
End If
|
||||||
@@ -5602,7 +5602,7 @@ Partial Class Ventas
|
|||||||
If DbRowVenta("Saldo").ToString().ToDouble < 0.01 Then
|
If DbRowVenta("Saldo").ToString().ToDouble < 0.01 Then
|
||||||
If ViewState("CveCotizacion") IsNot Nothing AndAlso ViewState("CveCotizacion").ToString().ToEntero() > 0 AndAlso DdlTipoComprobante.SelectedValue = "Ing" Then
|
If ViewState("CveCotizacion") IsNot Nothing AndAlso ViewState("CveCotizacion").ToString().ToEntero() > 0 AndAlso DdlTipoComprobante.SelectedValue = "Ing" Then
|
||||||
If UsuarioActual.CveEmpresa = 189 Then
|
If UsuarioActual.CveEmpresa = 189 Then
|
||||||
ImgAntiPend.Visible = False
|
ImgAntiPend.Visible = UsuarioActual.TienePermisoProceso(406)
|
||||||
Else
|
Else
|
||||||
ImgAntiPend.Visible = True
|
ImgAntiPend.Visible = True
|
||||||
End If
|
End If
|
||||||
@@ -17287,7 +17287,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.CveEmpresa = 189 Then
|
If UsuarioActual.CveEmpresa = 189 Then
|
||||||
ImgAntiPend.Visible = False
|
ImgAntiPend.Visible = UsuarioActual.TienePermisoProceso(406)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
GVAnticipos.DataSource = Nothing
|
GVAnticipos.DataSource = Nothing
|
||||||
@@ -19037,7 +19037,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.CveEmpresa = 189 Then
|
If UsuarioActual.CveEmpresa = 189 Then
|
||||||
ImgAntiPend.Visible = False
|
ImgAntiPend.Visible = UsuarioActual.TienePermisoProceso(406)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ImgAntiPend.Visible Then
|
If ImgAntiPend.Visible Then
|
||||||
@@ -19085,7 +19085,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.CveEmpresa = 189 Then
|
If UsuarioActual.CveEmpresa = 189 Then
|
||||||
ImgAntiPend.Visible = False
|
ImgAntiPend.Visible = UsuarioActual.TienePermisoProceso(406)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ImgAntiPend.Visible Then
|
If ImgAntiPend.Visible Then
|
||||||
@@ -33098,7 +33098,7 @@ Partial Class Ventas
|
|||||||
If DtMovtos.Rows.Count > 0 Then ImgAntiPend.Visible = True
|
If DtMovtos.Rows.Count > 0 Then ImgAntiPend.Visible = True
|
||||||
|
|
||||||
If UsuarioActual.CveEmpresa = 189 Then
|
If UsuarioActual.CveEmpresa = 189 Then
|
||||||
ImgAntiPend.Visible = False
|
ImgAntiPend.Visible = UsuarioActual.TienePermisoProceso(406)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
Dim DtMovtos As DataTable = Me.TmpDTAnticiposNCIxCCliente.FiltraParametros($"Saldo > 0 AND SaldoSubtotal > 0 {If(CveVenta < 0, $"AND Tipo = 'Ant' ", "")} {If(DdlTipoComprobante.SelectedValue = "Ant", "AND Tipo = 'NC'", "")}")
|
Dim DtMovtos As DataTable = Me.TmpDTAnticiposNCIxCCliente.FiltraParametros($"Saldo > 0 AND SaldoSubtotal > 0 {If(CveVenta < 0, $"AND Tipo = 'Ant' ", "")} {If(DdlTipoComprobante.SelectedValue = "Ant", "AND Tipo = 'NC'", "")}")
|
||||||
|
|||||||
Reference in New Issue
Block a user