Added running total calculated using subtask totals from the entire issue tree

This commit is contained in:
ricky committed 2026-04-17 21:13:33 -04:00
1 parent b939d834e9
commit c9d2a47a92
3 files changed
+36 -1

No files matched your search

@@ -32,8 +32,18 @@
<tfoot>
<tr>
<td colspan="3" style="text-align:right;"><strong><%= t :label_total %></strong></td>
<td><strong><%= number_to_currency(total) %></strong></td>
<td>
<strong><%= number_to_currency(total) %></strong>
</td>
</tr>
<% if @issue.children? %>
<tr>
<td colspan="3" style="text-align:right;"><strong><%= t :label_running_total %></strong></td>
<td>
<strong>(<%= number_to_currency(@issue.descendant_line_items_total + total) %>)</strong>
</td>
</tr>
<% end %>
</tfoot>
</table>
</div>