mirror of
https://github.com/pretix/pretix.git
synced 2026-05-15 16:54:00 +00:00
Fix typo
This commit is contained in:
@@ -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 = ""
|
||||||
|
|||||||
@@ -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>.
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user