This commit is contained in:
Raphael Michel
2025-09-08 18:17:48 +02:00
parent 50d724f9e3
commit dabdac6ff2
2 changed files with 4 additions and 3 deletions

View File

@@ -533,7 +533,7 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
self.invoice.event.date_to.astimezone(tz).date() != self.invoice.event.date_from.astimezone(tz).date() self.invoice.event.date_to.astimezone(tz).date() != self.invoice.event.date_from.astimezone(tz).date()
) )
if show_end_date: if show_end_date:
return self.invoice.event.date_from.astimezone(tz).date(), self.invoice.event.date_to.astimezone(tz).date return self.invoice.event.date_from.astimezone(tz).date(), self.invoice.event.date_to.astimezone(tz).date()
else: else:
return self.invoice.event.date_from.astimezone(tz).date(), None return self.invoice.event.date_from.astimezone(tz).date(), None
@@ -741,7 +741,7 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
period_line = "" period_line = ""
else: else:
period_line = f"\n{date_format(day(period_start), 'SHORT_DATE_FORMAT')} {date_format(day(period_end), 'SHORT_END_FORMAT')}" period_line = f"\n{date_format(day(period_start), 'SHORT_DATE_FORMAT')} {date_format(day(period_end), 'SHORT_DATE_FORMAT')}"
elif period_start or period_end: elif period_start or period_end:
# It's a single-day period # It's a single-day period
@@ -765,7 +765,7 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
period_line = "" period_line = ""
else: else:
period_line = f"\n{date_format(day(delivery_day), 'SHORT_DATE_FORMAT')}" period_line = f"\n{date_format(delivery_day, 'SHORT_DATE_FORMAT')}"
else: else:
# No period known # No period known
period_line = "" period_line = ""

View File

@@ -19,6 +19,7 @@
# You should have received a copy of the GNU Affero General Public License along with this program. If not, see # You should have received a copy of the GNU Affero General Public License along with this program. If not, see
# <https://www.gnu.org/licenses/>. # <https://www.gnu.org/licenses/>.
# #
# This file is based on an earlier version of pretix which was released under the Apache License 2.0. The full text of # This file is based on an earlier version of pretix which was released under the Apache License 2.0. The full text of
# the Apache License 2.0 can be obtained at <http://www.apache.org/licenses/LICENSE-2.0>. # the Apache License 2.0 can be obtained at <http://www.apache.org/licenses/LICENSE-2.0>.
# #