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