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