--ocultar solicitud de anticipo en ventas
This commit is contained in:
@@ -17219,7 +17219,7 @@ Partial Class Ventas
|
|||||||
Private Sub CargaAnticipos(CveCliente As Integer)
|
Private Sub CargaAnticipos(CveCliente As Integer)
|
||||||
Dim CargaAnticipos As Boolean = True
|
Dim CargaAnticipos As Boolean = True
|
||||||
If UsuarioActual.CveEmpresa = 189 Then
|
If UsuarioActual.CveEmpresa = 189 Then
|
||||||
CargaAnticipos = False
|
CargaAnticipos = UsuarioActual.TienePermisoProceso(406)
|
||||||
End If
|
End If
|
||||||
HdnTieneAnticipos.Value = "0"
|
HdnTieneAnticipos.Value = "0"
|
||||||
If CveCliente > 0 AndAlso CargaAnticipos Then
|
If CveCliente > 0 AndAlso CargaAnticipos Then
|
||||||
@@ -17463,11 +17463,11 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(185) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(185) = "1" Then
|
||||||
If e.Row.DBCampo("Tipo").ToString().Contiene("Ant", "IxC") AndAlso Not CBool(e.Row.DBCampo("AnticipoAutorizado")) Then
|
'If e.Row.DBCampo("Tipo").ToString().Contiene("Ant", "IxC") AndAlso Not CBool(e.Row.DBCampo("AnticipoAutorizado")) Then
|
||||||
e.Row.FCCheckBox("Chk" & e.Row.RowIndex).Enabled = False
|
' e.Row.FCCheckBox("Chk" & e.Row.RowIndex).Enabled = False
|
||||||
e.Row.FCCheckBox("Chk" & e.Row.RowIndex).ToolTip = "Anticipo Bloqueado"
|
' e.Row.FCCheckBox("Chk" & e.Row.RowIndex).ToolTip = "Anticipo Bloqueado"
|
||||||
e.Row.FCLinkButton("LnkSolicitarActivarAnticipo").Visible = True
|
' e.Row.FCLinkButton("LnkSolicitarActivarAnticipo").Visible = True
|
||||||
End If
|
'End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If e.Row.DBCampo("CveMoneda").ToString().ToEntero() = DdlMoneda.SelectedValue.ToEntero() Then
|
If e.Row.DBCampo("CveMoneda").ToString().ToEntero() = DdlMoneda.SelectedValue.ToEntero() Then
|
||||||
@@ -40467,6 +40467,17 @@ Partial Class Ventas
|
|||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
Dim CveVenta As Integer = gvr.DataKey("CveVenta").ToEntero()
|
||||||
|
Dim CveIE As Integer = gvr.DataKey("CveIE").ToEntero()
|
||||||
|
Dim Saldo As Decimal = gvr.DataKey("Saldo").ToDecimal()
|
||||||
|
|
||||||
|
Dim ObjVta As New ClsVentas
|
||||||
|
If ObjVta.AddAutorizacionLimite(UsuarioActual.CveEmpresa, CveCliente, DdlVendedor.SelectedValue.ToEntero(), Saldo, 0, UsuarioActual.CveUsuario, 1, TipoDocumento:="Ant", DiasVencidos:=1, CveVenta:=CveVenta, CveIE:=CveIE) Then
|
||||||
|
Dim msgAlert = "La autorización se agregó correctamente."
|
||||||
|
Alert(msgAlert, TipoMensaje.ToastInformacionB)
|
||||||
|
End If
|
||||||
|
ObjVta.Dispose()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user