Fixed display of group by table is unit sums are not displayed.

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@627 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent e1eb577261
commit 7b0df262b8
  1. 4
      app/views/cost_reports/_list_group_by.rhtml

@ -83,7 +83,7 @@
</td>
<td class="units"><%=l :x_entries, :count => entry["count"].to_i %></td>
<% if (@query.group_by["name"] == "cost_type_id") || (!display_costs && display_time) %>
<% if (@query.group_by["name"] == "cost_type_id") || (!display_costs) %>
<% cost_type = CostType.find_by_id(entry["cost_type_id"]) %>
<td class="units">
<% if cost_type %>
@ -106,7 +106,7 @@
<tr>
<td>&nbsp;</td>
<td class="units"><strong><%=l :x_entries, :count => @entry_count %></strong></td>
<td>&nbsp;</td>
<% if (@query.group_by["name"] == "cost_type_id") || (!display_costs) %><td>&nbsp;</td><% end %>
<td class="currency"><strong><%= number_to_currency @entry_sum %></strong></td>
<td>&nbsp;</td>
</tr>

Loading…
Cancel
Save