diff --git a/app/views/line_items/_issue_line_items.html.erb b/app/views/line_items/_issue_line_items.html.erb index f48d4ce..4dbf322 100644 --- a/app/views/line_items/_issue_line_items.html.erb +++ b/app/views/line_items/_issue_line_items.html.erb @@ -1,42 +1,50 @@ -<% if @issue.line_items.any? %> +<% if @issue.line_items.any? || @issue.descendant_line_items_total > 0%>
<%= t :label_line_items %>
-| <%= t :label_description %> | -<%= t :label_qty %> | -<%= t :label_price %> | -<%= t :label_total %> | -||||
|---|---|---|---|---|---|---|---|
| <%= h item.description %> | -<%= item.quantity %> | -<%= number_to_currency(item.unit_price) %> | -<%= number_to_currency(line_total) %> | +<%= t :label_description %> | +<%= t :label_qty %> | +<%= t :label_price %> | +<%= t :label_total %> |
|---|---|---|---|---|---|---|---|
| <%= t :label_total %> | -- <%= number_to_currency(total) %> - | -||||||
| <%= h item.description %> | +<%= item.quantity %> | +<%= number_to_currency(item.unit_price) %> | +<%= number_to_currency(line_total) %> | +||||
| <%= t :label_total %> | ++ <%= number_to_currency(total) %> + | +||||||
| <%= t :label_running_total %> | |||||||