From 7f30f753d793737e58667ade5284fe2fdcde3ce1 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 18 Aug 2020 13:57:35 +0200 Subject: [PATCH] Actually do not show date on invoices if not shown on frontpage --- src/pretix/base/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/invoice.py b/src/pretix/base/invoice.py index cf043ad175..a6a6f3c173 100644 --- a/src/pretix/base/invoice.py +++ b/src/pretix/base/invoice.py @@ -391,7 +391,7 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer): p_size = p.wrap(self.event_width, self.event_height) return txt - if not self.invoice.event.has_subevents or not self.invoice.event.settings.show_dates_on_frontpage: + if not self.invoice.event.has_subevents and self.invoice.event.settings.show_dates_on_frontpage: if self.invoice.event.settings.show_date_to and self.invoice.event.date_to: p_str = ( shorten(self.invoice.event.name) + '\n' +