Actually do not show date on invoices if not shown on frontpage

This commit is contained in:
Raphael Michel
2020-08-18 13:57:35 +02:00
parent 8789a42dc1
commit 7f30f753d7

View File

@@ -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' +