From b4d6241bcfb5ae1250e2a24d25a5ac5273bf5082 Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Mon, 4 Jul 2022 13:08:44 -0700 Subject: [PATCH] No mostrar chk de bonificacion cuando el importe es 0 --- Ventas/Clientes.aspx | 2 +- Ventas/Clientes.aspx.vb | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Ventas/Clientes.aspx b/Ventas/Clientes.aspx index abdbc5443..a66411c6f 100644 --- a/Ventas/Clientes.aspx +++ b/Ventas/Clientes.aspx @@ -4502,7 +4502,7 @@ - + diff --git a/Ventas/Clientes.aspx.vb b/Ventas/Clientes.aspx.vb index b75818278..219c64f94 100644 --- a/Ventas/Clientes.aspx.vb +++ b/Ventas/Clientes.aspx.vb @@ -9219,13 +9219,13 @@ Partial Class Clientes Dim FacturadoCargo As Boolean = Boolean.Parse(e.Row.DataKey("FacturadoCargo")) Dim FacturadoBonificacion As Boolean = Boolean.Parse(e.Row.DataKey("FacturadoBonificacion")) - If FacturadoCargo Then - e.Row.FCCheckBox("ChkCargo").Checked = False - e.Row.FCCheckBox("ChkCargo").Visible = False - Else - e.Row.FCCheckBox("ChkCargo").Checked = False - e.Row.FCCheckBox("ChkCargo").Visible = False 'True - End If + 'If FacturadoCargo Then + ' e.Row.FCCheckBox("ChkCargo").Checked = False + ' e.Row.FCCheckBox("ChkCargo").Visible = False + 'Else + ' e.Row.FCCheckBox("ChkCargo").Checked = False + ' e.Row.FCCheckBox("ChkCargo").Visible = False 'True + 'End If If FacturadoBonificacion Then e.Row.FCCheckBox("ChkBonificacion").Checked = False @@ -9240,6 +9240,10 @@ Partial Class Clientes ElseIf e.Row.DBCampo("EsUsadoAjuste") = "1" Then e.Row.FCCheckBox("ChkBonificacion").Visible = False End If + + If e.Row.DBCampo("ImporteBonificacion").ToDecimal() = 0 Then + e.Row.FCCheckBox("ChkBonificacion").Visible = False + End If End If Else