From 86b999d5217eb12ccb424670229dfd92cca3406b Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Sat, 12 Apr 2025 11:54:05 -0700 Subject: [PATCH] --FIX informacion completa --- Ventas/Clientes.aspx.vb | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/Ventas/Clientes.aspx.vb b/Ventas/Clientes.aspx.vb index 3a92c0b96..4dbe7f213 100644 --- a/Ventas/Clientes.aspx.vb +++ b/Ventas/Clientes.aspx.vb @@ -2591,22 +2591,27 @@ Partial Class Clientes InformacionCompleta = False End If End If - If TxtContacto.Text.Trim() = "" Then InformacionCompleta = False + If TxtTelefono.Text.Trim() = "" Then InformacionCompleta = False If TxtEmail.Text.Trim() = "" Then InformacionCompleta = False - If TxtRepresentanteLegal.Text.Trim() = "" Then InformacionCompleta = False - 'si es el concepto de pagaré - Dim tPagare As Integer = 0 - For Each dRow As GridViewRow In GvDocumentosCliente.Rows - Dim CveDocumentacion As Integer = dRow.DataKey("CveDocumentacion").ToEntero() - If CveDocumentacion = 265 Then tPagare = 1 - Next - If tPagare = 0 Then InformacionCompleta = False - tPagare = 0 'valida que cuando menos tenga una cuenta - For Each dRow As GridViewRow In GvBancosCuentas.Rows - tPagare = 1 - Next - If tPagare = 0 Then InformacionCompleta = False + + 'SOLO VALIDA EN CLIENTES FRENCUENTE + If DdlTipoCliente.SelectedValue = "1" Then + If TxtContacto.Text.Trim() = "" Then InformacionCompleta = False + If TxtRepresentanteLegal.Text.Trim() = "" Then InformacionCompleta = False + 'si es el concepto de pagaré + Dim tPagare As Integer = 0 + For Each dRow As GridViewRow In GvDocumentosCliente.Rows + Dim CveDocumentacion As Integer = dRow.DataKey("CveDocumentacion").ToEntero() + If CveDocumentacion = 265 Then tPagare = 1 + Next + If tPagare = 0 Then InformacionCompleta = False + tPagare = 0 'valida que cuando menos tenga una cuenta + For Each dRow As GridViewRow In GvBancosCuentas.Rows + tPagare = 1 + Next + If tPagare = 0 Then InformacionCompleta = False + End If 'If DivInfoCompleta.Visible Then ' InformacionCompleta = ChkInformacionCompleta.Checked