--FIX. Visualizacion de IVA

This commit is contained in:
2024-08-13 15:54:23 -07:00
parent 20793cf3fb
commit 79f44fcc60
2 changed files with 86 additions and 96 deletions

View File

@@ -111,15 +111,9 @@
<div class="row" style="max-width: 780px;"> <div class="row" style="max-width: 780px;">
<div class="col-md-12"> <div class="col-md-12">
<asp:Literal ID="LtPs" Text="" runat="server">&nbsp&nbsp</asp:Literal> <asp:Literal ID="LtPs" Text="" runat="server">&nbsp&nbsp</asp:Literal>
&nbsp;&nbsp;&nbsp;
<asp:Literal ID="LtlIEPS" Text="IEPS:" runat="server" Visible="false">&nbsp&nbsp</asp:Literal>
<asp:Literal ID="LtlIEPSPorcentaje" Text="" runat="server" Visible="false">&nbsp&nbsp</asp:Literal> <asp:Literal ID="LtlIEPSPorcentaje" Text="" runat="server" Visible="false">&nbsp&nbsp</asp:Literal>
<asp:Literal ID="LtlIVA" Text="IVA:" runat="server" Visible="false">&nbsp&nbsp</asp:Literal>
<asp:Literal ID="LtlIVAPorcentaje" Text="" runat="server" Visible="false">&nbsp&nbsp</asp:Literal> <asp:Literal ID="LtlIVAPorcentaje" Text="" runat="server" Visible="false">&nbsp&nbsp</asp:Literal>
</div> </div>
</div> </div>
<div class="row" style="max-width: 780px;"> <div class="row" style="max-width: 780px;">

View File

@@ -198,19 +198,15 @@ Partial Class Inventarios_Default
objPS.Dispose() objPS.Dispose()
If UsuarioActual.CveEmpresa = 119 Then If UsuarioActual.CveEmpresa = 119 Then
If CBool(dr("AplicaIEPS")) Then If CBool(dr("AplicaIEPS")) Then
LtlIEPS.Visible = True
LtlIEPSPorcentaje.Visible = True LtlIEPSPorcentaje.Visible = True
LtlIEPSPorcentaje.Text = $"<b>% {(dr("IEPSPorcentaje").ToString.ToDouble * 100).FormatoNumero}</b>" LtlIEPSPorcentaje.Text = $"IEPS: <b>% {(dr("IEPSPorcentaje").ToString.ToDouble * 100).FormatoNumero}</b>"
Else Else
LtlIEPS.Visible = False
LtlIEPSPorcentaje.Visible = False LtlIEPSPorcentaje.Visible = False
End If End If
If dr("IVA").ToString = "-1" OrElse dr("IVA").ToString.ToDecimal > 0 Then If dr("IVA").ToString = "-1" OrElse dr("IVA").ToString.ToDecimal > 0 Then
LtlIVA.Visible = True
LtlIVAPorcentaje.Visible = True LtlIVAPorcentaje.Visible = True
LtlIVAPorcentaje.Text = $"<b>Si</b>" LtlIVAPorcentaje.Text = $"IVA: <b>Si</b>"
Else Else
LtlIVA.Visible = False
LtlIVAPorcentaje.Visible = False LtlIVAPorcentaje.Visible = False
End If End If
End If End If