--FIX ventas

This commit is contained in:
2024-11-05 16:21:05 -07:00
parent 3c36731754
commit ddd7ab9253
2 changed files with 17 additions and 3 deletions

View File

@@ -1524,10 +1524,10 @@
<%--22--%>
<asp:BoundField DataField="TieneProntoPago" HeaderText="Pronto Pago" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ReadOnly="true" Visible="false" />
<%--23--%>
<asp:TemplateField ItemStyle-HorizontalAlign="Right" Visible="false" ItemStyle-Width="5%" HeaderText="Costo">
<asp:TemplateField ItemStyle-HorizontalAlign="Right" Visible="false" ItemStyle-Width="20px" HeaderText="Costo">
<ItemTemplate>
<asp:Label ID="LblCosto" runat="server" Text='<%# Eval("Costo", "{0:N2}") %>'></asp:Label><br />
<asp:Label ID="LblCostoPorcentaje" runat="server" Text='<%# String.Format("{0:N2} %", ((CDbl(Eval("PU").ToString) - CDbl(Eval("Costo").ToString)) / (CDbl(Eval("PU").ToString)) * 100D)) %>'></asp:Label>
<asp:Label ID="LblCosto" runat="server"></asp:Label><br />
<asp:Label ID="LblCostoPorcentaje" runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>