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,6 +2,7 @@
{% block table.tfoot %} {% block table.tfoot %}
{% if table.has_footer %} {% if table.has_footer %}
{% if table.rows|length > 1 %}
<tfoot {{ table.attrs.tfoot.as_html }}> <tfoot {{ table.attrs.tfoot.as_html }}>
<tr> <tr>
{% for column in table.columns %} {% for column in table.columns %}
@ -16,6 +17,7 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</tr> </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>