mirror of
https://github.com/rickbarrette/redmine_qbo_lineitems.git
synced 2026-07-01 16:51:07 -04:00
Added running total calculated using subtask totals from the entire issue tree
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user