mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
If date isn't shown on front page, don't show it on invoices
This commit is contained in:
@@ -391,7 +391,7 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
|
|||||||
p_size = p.wrap(self.event_width, self.event_height)
|
p_size = p.wrap(self.event_width, self.event_height)
|
||||||
return txt
|
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:
|
if self.invoice.event.settings.show_date_to and self.invoice.event.date_to:
|
||||||
p_str = (
|
p_str = (
|
||||||
shorten(self.invoice.event.name) + '\n' +
|
shorten(self.invoice.event.name) + '\n' +
|
||||||
|
|||||||
Reference in New Issue
Block a user