From fe03146bc691e5fb836d66865ba4e0a847510f64 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 25 Nov 2024 14:16:01 -0500 Subject: [PATCH] membershipworks: Suppress subtotals in event invoice when there is only one ticket type --- .../tables/invoice_table.dj.html | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/membershipworks/templates/membershipworks/tables/invoice_table.dj.html b/membershipworks/templates/membershipworks/tables/invoice_table.dj.html index 253c1ad..c49e167 100644 --- a/membershipworks/templates/membershipworks/tables/invoice_table.dj.html +++ b/membershipworks/templates/membershipworks/tables/invoice_table.dj.html @@ -2,20 +2,22 @@ {% block table.tfoot %} {% if table.has_footer %} - - - {% for column in table.columns %} - {% if forloop.first %} - - {{ column.footer }} - - {% else %} - - {{ column.footer }} - - {% endif %} - {% endfor %} - + {% if table.rows|length > 1 %} + + + {% for column in table.columns %} + {% if forloop.first %} + + {{ column.footer }} + + {% else %} + + {{ column.footer }} + + {% endif %} + {% endfor %} + + {% endif %} {% if table.event.instructor_flat_rate != 0 %}