No mostrar chk de bonificacion cuando el importe es 0
This commit is contained in:
@@ -4502,7 +4502,7 @@
|
||||
|
||||
<asp:TemplateField HeaderText="Cargo" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkCargo" runat="server"></asp:CheckBox>
|
||||
<asp:CheckBox ID="ChkCargo" runat="server" Visible="false" Checked="false"></asp:CheckBox>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Bonificación" ItemStyle-HorizontalAlign="Center">
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user