From 38f922f0cad0847b34997ec8004aa7a58201f4be Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Wed, 17 Apr 2024 10:09:18 -0700 Subject: [PATCH] --FIX anticipo puntual en ventas --FIX seleccionar usocfdi al refacturar --- Ventas/Ventas.aspx.vb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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