membershipworks: Suppress subtotals in event invoice when there is only one ticket type

This commit is contained in:
Adam Goldsmith 2024-11-25 14:16:01 -05:00
parent d96de225bd
commit fe03146bc6

View File

@ -2,20 +2,22 @@
{% block table.tfoot %}
{% if table.has_footer %}
<tfoot {{ table.attrs.tfoot.as_html }}>
<tr>
{% for column in table.columns %}
{% if forloop.first %}
<th for="row" {{ column.attrs.tf.as_html }}>
{{ column.footer }}
</th>
{% else %}
<td {{ column.attrs.tf.as_html }}>
{{ column.footer }}
</td>
{% endif %}
{% endfor %}
</tr>
{% if table.rows|length > 1 %}
<tfoot {{ table.attrs.tfoot.as_html }}>
<tr>
{% for column in table.columns %}
{% if forloop.first %}
<th for="row" {{ column.attrs.tf.as_html }}>
{{ column.footer }}
</th>
{% else %}
<td {{ column.attrs.tf.as_html }}>
{{ column.footer }}
</td>
{% endif %}
{% endfor %}
</tr>
{% endif %}
{% if table.event.instructor_flat_rate != 0 %}
<tr class="text-end">
<td colspan="{{ table.columns|length|add:-2 }}"></td>