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

This commit is contained in:
2026-04-17 21:13:33 -04:00
parent b939d834e9
commit c9d2a47a92
3 changed files with 36 additions and 1 deletions
@@ -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>