diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb index 930a4be63..486b8be33 100644 --- a/Ventas/Ventas.aspx.vb +++ b/Ventas/Ventas.aspx.vb @@ -6862,6 +6862,10 @@ Partial Class Ventas If UsuarioActual.Empresa.Funcionalidad(109) = "1" Then DdlUsoCFDI.Enabled = True End If + + If NuevaFactura = 1 Then + DdlUsoCFDI.Enabled = True + End If End If End If @@ -16553,9 +16557,12 @@ Partial Class Ventas DirectCast(e.Row.FindControl("VCOAmortAnti"), AjaxControlToolkit.ValidatorCalloutExtender).TargetControlID = "CVAmortAnti" & e.Row.RowIndex 'SI NO TIENE PERMISO, NO PERMITIR APLICAR ANTICIPOS PUNTUALES - If CBool(e.Row.DBCampo("AnticipoPuntual")) AndAlso Not UsuarioActual.TienePermisoProceso(377) Then - e.Row.FCCheckBox("Chk").Enabled = False + If GVAnticipos.DataSource IsNot Nothing Then + If CBool(e.Row.DBCampo("AnticipoPuntual")) AndAlso Not UsuarioActual.TienePermisoProceso(377) Then + e.Row.FCCheckBox("Chk").Enabled = False + End If End If + End If End Sub Protected Sub GVAnticipos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GVAnticipos.RowDataBound