--Autorizacion de anticipos

This commit is contained in:
2024-05-24 19:35:39 -07:00
parent 48e70ed778
commit 934b225773
5 changed files with 88 additions and 3 deletions

View File

@@ -7194,7 +7194,13 @@ Partial Class Ventas
End If
ObjCliente.Dispose()
If CveCliente > 0 Then CargaAnticipos(CveCliente) : UpAnticipos.Update()
If CveCliente > 0 Then
CargaAnticipos(CveCliente)
If UsuarioActual.Empresa.Funcionalidad(185) = "1" Then
LnkRecargaAnticipos.Visible = True
End If
UpAnticipos.Update()
End If
If CveCliente > 0 AndAlso UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso CveVenta <= 0 Then
DivVentasUsados.Visible = True
@@ -16823,6 +16829,12 @@ Partial Class Ventas
GVAnticipos.Columns(8).Visible = True
End If
If UsuarioActual.Empresa.Funcionalidad(185) = "1" Then
If e.Row.DBCampo("Tipo").ToString() = "Ant" AndAlso e.Row.DBCampo("AnticipoAutorizado").ToString() = "False" Then
e.Row.FCCheckBox("Chk" & e.Row.RowIndex).Enabled = False
End If
End If
If e.Row.DBCampo("CveMoneda").ToString().ToEntero() = DdlMoneda.SelectedValue.ToEntero() Then
e.Row.FCTextBox("TxtTC" & e.Row.RowIndex).Visible = False
@@ -38401,5 +38413,10 @@ Partial Class Ventas
Protected Sub LnkRecargaAnticipos_Click(sender As Object, e As EventArgs)
If CveCliente > 0 Then
CargaAnticipos(CveCliente)
End If
End Sub
End Class