If date isn't shown on front page, don't show it on invoices

This commit is contained in:
Raphael Michel
2020-06-08 14:47:45 +02:00
parent 7d41922274
commit 60c0b7da12

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:
if not self.invoice.event.has_subevents or not 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' +