diff --git a/doc/api/resources/orders.rst b/doc/api/resources/orders.rst index 8bd118d011..7f543518da 100644 --- a/doc/api/resources/orders.rst +++ b/doc/api/resources/orders.rst @@ -1082,6 +1082,9 @@ Order state operations will instead stay paid, but all positions will be removed (or marked as canceled) and replaced by the cancellation fee as the only component of the order. + You can control whether the customer is notified through ``send_email`` (defaults to ``true``). + You can pass a ``comment`` that can be visible to the user if it is used in the email template. + **Example request**: .. sourcecode:: http @@ -1093,6 +1096,7 @@ Order state operations { "send_email": true, + "comment": "Event was canceled.", "cancellation_fee": null } diff --git a/src/pretix/api/views/order.py b/src/pretix/api/views/order.py index be168cce21..6711bf3452 100644 --- a/src/pretix/api/views/order.py +++ b/src/pretix/api/views/order.py @@ -345,6 +345,7 @@ class OrderViewSet(viewsets.ModelViewSet): @action(detail=True, methods=['POST']) def mark_canceled(self, request, **kwargs): send_mail = request.data.get('send_email', True) + comment = request.data.get('comment', None) cancellation_fee = request.data.get('cancellation_fee', None) if cancellation_fee: try: @@ -367,6 +368,7 @@ class OrderViewSet(viewsets.ModelViewSet): device=request.auth if isinstance(request.auth, Device) else None, oauth_application=request.auth.application if isinstance(request.auth, OAuthAccessToken) else None, send_mail=send_mail, + email_comment=comment, cancellation_fee=cancellation_fee ) except OrderError as e: diff --git a/src/pretix/base/services/orders.py b/src/pretix/base/services/orders.py index 7b8679d2e0..bc0ebe18b1 100644 --- a/src/pretix/base/services/orders.py +++ b/src/pretix/base/services/orders.py @@ -384,7 +384,7 @@ def deny_order(order, comment='', user=None, send_mail: bool=True, auth=None): def _cancel_order(order, user=None, send_mail: bool=True, api_token=None, device=None, oauth_application=None, - cancellation_fee=None, keep_fees=None, cancel_invoice=True): + cancellation_fee=None, keep_fees=None, cancel_invoice=True, comment=None): """ Mark this order as canceled :param order: The order to change @@ -481,7 +481,7 @@ def _cancel_order(order, user=None, send_mail: bool=True, api_token=None, device Voucher.objects.filter(pk=position.voucher.pk).update(redeemed=Greatest(0, F('redeemed') - 1)) order.log_action('pretix.event.order.canceled', user=user, auth=api_token or oauth_application or device, - data={'cancellation_fee': cancellation_fee}) + data={'cancellation_fee': cancellation_fee, 'comment': comment}) order.cancellation_requests.all().delete() order.create_transactions() @@ -489,7 +489,7 @@ def _cancel_order(order, user=None, send_mail: bool=True, api_token=None, device if send_mail: email_template = order.event.settings.mail_text_order_canceled with language(order.locale, order.event.settings.region): - email_context = get_email_context(event=order.event, order=order) + email_context = get_email_context(event=order.event, order=order, comment=comment or "") email_subject = _('Order canceled: %(code)s') % {'code': order.code} try: order.send_mail( @@ -2506,15 +2506,15 @@ def _try_auto_refund(order, auto_refund=True, manual_refund=False, allow_partial @app.task(base=ProfiledTask, bind=True, max_retries=5, default_retry_delay=1, throws=(OrderError,)) @scopes_disabled() def cancel_order(self, order: int, user: int=None, send_mail: bool=True, api_token=None, oauth_application=None, - device=None, cancellation_fee=None, try_auto_refund=False, refund_as_giftcard=False, comment=None, - cancel_invoice=True): + device=None, cancellation_fee=None, try_auto_refund=False, refund_as_giftcard=False, + email_comment=None, refund_comment=None, cancel_invoice=True): try: try: ret = _cancel_order(order, user, send_mail, api_token, device, oauth_application, - cancellation_fee, cancel_invoice=cancel_invoice) + cancellation_fee, cancel_invoice=cancel_invoice, comment=email_comment) if try_auto_refund: _try_auto_refund(order, refund_as_giftcard=refund_as_giftcard, - comment=comment) + comment=refund_comment) return ret except LockTimeoutException: self.retry() diff --git a/src/pretix/base/settings.py b/src/pretix/base/settings.py index 30f3d1d32f..d225a2590c 100644 --- a/src/pretix/base/settings.py +++ b/src/pretix/base/settings.py @@ -1914,6 +1914,8 @@ Your {event} team""")) your order {code} for {event} has been canceled. +{comment} + You can view the details of your order at {url} diff --git a/src/pretix/control/forms/event.py b/src/pretix/control/forms/event.py index 87a1ee2479..22aadcb416 100644 --- a/src/pretix/control/forms/event.py +++ b/src/pretix/control/forms/event.py @@ -1075,7 +1075,7 @@ class MailSettingsForm(SettingsForm): 'mail_text_order_free': ['event', 'order'], 'mail_text_order_free_attendee': ['event', 'order', 'position'], 'mail_text_order_changed': ['event', 'order'], - 'mail_text_order_canceled': ['event', 'order'], + 'mail_text_order_canceled': ['event', 'order', 'comment'], 'mail_text_order_expire_warning': ['event', 'order'], 'mail_text_order_custom_mail': ['event', 'order'], 'mail_text_download_reminder': ['event', 'order'], diff --git a/src/pretix/control/forms/orders.py b/src/pretix/control/forms/orders.py index 79dad7b665..c864ab055c 100644 --- a/src/pretix/control/forms/orders.py +++ b/src/pretix/control/forms/orders.py @@ -167,6 +167,12 @@ class CancelForm(ForceQuotaConfirmationForm): initial=True, required=False ) + comment = forms.CharField( + label=_('Comment (will be sent to the user)'), + help_text=_('Will be included in the notification email when the respective placeholder is present in the ' + 'configured email text.'), + required=False, + ) def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) diff --git a/src/pretix/control/logdisplay.py b/src/pretix/control/logdisplay.py index d68d487889..c4f56e9e7c 100644 --- a/src/pretix/control/logdisplay.py +++ b/src/pretix/control/logdisplay.py @@ -341,7 +341,6 @@ def pretixcontrol_logentry_display(sender: Event, logentry: LogEntry, **kwargs): 'pretix.event.order.paid': _('The order has been marked as paid.'), 'pretix.event.order.cancellationrequest.deleted': _('The cancellation request has been deleted.'), 'pretix.event.order.refunded': _('The order has been refunded.'), - 'pretix.event.order.canceled': _('The order has been canceled.'), 'pretix.event.order.reactivated': _('The order has been reactivated.'), 'pretix.event.order.deleted': _('The test mode order {code} has been deleted.'), 'pretix.event.order.placed': _('The order has been created.'), @@ -532,6 +531,13 @@ def pretixcontrol_logentry_display(sender: Event, logentry: LogEntry, **kwargs): bleach.clean(logentry.parsed_data.get('msg'), tags=[], strip=True) ) + if logentry.action_type == 'pretix.event.order.canceled': + comment = logentry.parsed_data.get('comment') + if comment: + return _('The order has been canceled (comment: "{}").').format(comment) + else: + return _('The order has been canceled.') + if logentry.action_type in ('pretix.control.views.checkin.reverted', 'pretix.event.checkin.reverted'): if 'list' in data: try: diff --git a/src/pretix/control/templates/pretixcontrol/order/cancel.html b/src/pretix/control/templates/pretixcontrol/order/cancel.html index 688fec9496..158cce737c 100644 --- a/src/pretix/control/templates/pretixcontrol/order/cancel.html +++ b/src/pretix/control/templates/pretixcontrol/order/cancel.html @@ -35,6 +35,7 @@ {% bootstrap_field form.cancellation_fee layout='' %} {% endif %} {% bootstrap_field form.send_email layout='' %} + {% bootstrap_field form.comment layout='' %} {% if form.cancel_invoice %} {% bootstrap_field form.cancel_invoice layout='' %} {% endif %} diff --git a/src/pretix/control/views/orders.py b/src/pretix/control/views/orders.py index e1eb4522af..350a9b2ca9 100644 --- a/src/pretix/control/views/orders.py +++ b/src/pretix/control/views/orders.py @@ -1266,6 +1266,7 @@ class OrderTransition(OrderView): elif self.order.cancel_allowed() and to == 'c' and self.mark_canceled_form.is_valid(): try: cancel_order(self.order.pk, user=self.request.user, + email_comment=self.mark_canceled_form.cleaned_data['comment'], send_mail=self.mark_canceled_form.cleaned_data['send_email'], cancel_invoice=self.mark_canceled_form.cleaned_data.get('cancel_invoice', True), cancellation_fee=self.mark_canceled_form.cleaned_data.get('cancellation_fee')) diff --git a/src/pretix/locale/ar/LC_MESSAGES/django.po b/src/pretix/locale/ar/LC_MESSAGES/django.po index 9862a3df31..293c06f067 100644 --- a/src/pretix/locale/ar/LC_MESSAGES/django.po +++ b/src/pretix/locale/ar/LC_MESSAGES/django.po @@ -8106,6 +8106,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -8116,6 +8118,8 @@ msgstr "" "\n" "تم إلغاء طلبك {code} الخاص ب {event}.\n" "\n" +"{comment}\n" +"\n" "يمكنك عرض تفاصيل طلبك من خلال:\n" "{url}\n" "\n" diff --git a/src/pretix/locale/ca/LC_MESSAGES/django.po b/src/pretix/locale/ca/LC_MESSAGES/django.po index 725188104f..89e0bad924 100644 --- a/src/pretix/locale/ca/LC_MESSAGES/django.po +++ b/src/pretix/locale/ca/LC_MESSAGES/django.po @@ -8340,6 +8340,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -8350,6 +8352,8 @@ msgstr "" "\n" "s'ha cancel·lat la vostra comanda {code} per {event}.\n" "\n" +"{comment}\n" +"\n" "Podeu veure els detalls de la vostra comanda a\n" "{url}\n" "\n" diff --git a/src/pretix/locale/cs/LC_MESSAGES/django.po b/src/pretix/locale/cs/LC_MESSAGES/django.po index 188072142c..69c0f26492 100644 --- a/src/pretix/locale/cs/LC_MESSAGES/django.po +++ b/src/pretix/locale/cs/LC_MESSAGES/django.po @@ -7501,6 +7501,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/da/LC_MESSAGES/django.po b/src/pretix/locale/da/LC_MESSAGES/django.po index 94fc04005e..cbd986a4e5 100644 --- a/src/pretix/locale/da/LC_MESSAGES/django.po +++ b/src/pretix/locale/da/LC_MESSAGES/django.po @@ -7976,6 +7976,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -7986,6 +7988,8 @@ msgstr "" "\n" "Din bestilling {code} til {event} er blevet annulleret.\n" "\n" +"{comment}\n" +"\n" "Du kan se detaljerne for din bestilling på\n" "{url}\n" "\n" diff --git a/src/pretix/locale/de/LC_MESSAGES/django.po b/src/pretix/locale/de/LC_MESSAGES/django.po index ce4dea51db..3a5e249e16 100644 --- a/src/pretix/locale/de/LC_MESSAGES/django.po +++ b/src/pretix/locale/de/LC_MESSAGES/django.po @@ -8303,6 +8303,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -8313,6 +8315,8 @@ msgstr "" "\n" "Ihre Bestellung {code} für {event} wurde storniert.\n" "\n" +"{comment}\n" +"\n" "Sie können Ihre Bestellung unter folgender Adresse einsehen:\n" "{url}\n" "\n" diff --git a/src/pretix/locale/de_Informal/LC_MESSAGES/django.po b/src/pretix/locale/de_Informal/LC_MESSAGES/django.po index 6869254e9d..498798909b 100644 --- a/src/pretix/locale/de_Informal/LC_MESSAGES/django.po +++ b/src/pretix/locale/de_Informal/LC_MESSAGES/django.po @@ -8291,6 +8291,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -8301,6 +8303,8 @@ msgstr "" "\n" "deine Bestellung {code} für {event} wurde storniert.\n" "\n" +"{comment}\n" +"\n" "Du kannst deine Bestellung unter folgender Adresse einsehen:\n" "{url}\n" "\n" diff --git a/src/pretix/locale/el/LC_MESSAGES/django.po b/src/pretix/locale/el/LC_MESSAGES/django.po index 2ea1173292..2602c5cdb0 100644 --- a/src/pretix/locale/el/LC_MESSAGES/django.po +++ b/src/pretix/locale/el/LC_MESSAGES/django.po @@ -8697,6 +8697,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -8707,6 +8709,8 @@ msgstr "" "\n" "η παραγγελία σας {code} για {event} έχει ακυρωθεί.\n" "\n" +"{comment}\n" +"\n" "Μπορείτε να δείτε τις λεπτομέρειες της παραγγελίας σας στο\n" "{url}\n" "\n" diff --git a/src/pretix/locale/es/LC_MESSAGES/django.po b/src/pretix/locale/es/LC_MESSAGES/django.po index cef931e6dd..e19be9e114 100644 --- a/src/pretix/locale/es/LC_MESSAGES/django.po +++ b/src/pretix/locale/es/LC_MESSAGES/django.po @@ -8554,6 +8554,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -8564,6 +8566,8 @@ msgstr "" "\n" "su pedido {code} para {event} ha sido cancelado. \n" "\n" +"{comment}\n" +"\n" "Puede ver los detalles de su pedido en\n" "{url}. \n" "\n" diff --git a/src/pretix/locale/fi/LC_MESSAGES/django.po b/src/pretix/locale/fi/LC_MESSAGES/django.po index bfc2bed488..dc901dcc60 100644 --- a/src/pretix/locale/fi/LC_MESSAGES/django.po +++ b/src/pretix/locale/fi/LC_MESSAGES/django.po @@ -7392,6 +7392,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/fr/LC_MESSAGES/django.po b/src/pretix/locale/fr/LC_MESSAGES/django.po index 56649e5604..dc599372bc 100644 --- a/src/pretix/locale/fr/LC_MESSAGES/django.po +++ b/src/pretix/locale/fr/LC_MESSAGES/django.po @@ -8798,6 +8798,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -8808,6 +8810,8 @@ msgstr "" "\n" "votre commande {code} pour {event} a été annulée.\n" "\n" +"{comment}\n" +"\n" "Vous pouvez consulter les détails de votre commande à l'adresse suivante\n" "{url}\n" "\n" diff --git a/src/pretix/locale/gl/LC_MESSAGES/django.po b/src/pretix/locale/gl/LC_MESSAGES/django.po index b2f68b60ef..513bea51cf 100644 --- a/src/pretix/locale/gl/LC_MESSAGES/django.po +++ b/src/pretix/locale/gl/LC_MESSAGES/django.po @@ -8753,6 +8753,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -8763,6 +8765,8 @@ msgstr "" "\n" "su pedido {code} para {event} ha sido cancelado. \n" "\n" +"{comment}\n" +"\n" "Puede ver los detalles de su pedido en\n" "{url}. \n" "\n" diff --git a/src/pretix/locale/he/LC_MESSAGES/django.po b/src/pretix/locale/he/LC_MESSAGES/django.po index 21ba5725cb..c474db0827 100644 --- a/src/pretix/locale/he/LC_MESSAGES/django.po +++ b/src/pretix/locale/he/LC_MESSAGES/django.po @@ -7341,6 +7341,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/hu/LC_MESSAGES/django.po b/src/pretix/locale/hu/LC_MESSAGES/django.po index b459c54381..07f812bbff 100644 --- a/src/pretix/locale/hu/LC_MESSAGES/django.po +++ b/src/pretix/locale/hu/LC_MESSAGES/django.po @@ -7435,6 +7435,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/it/LC_MESSAGES/django.po b/src/pretix/locale/it/LC_MESSAGES/django.po index d563ce2d13..8c7f01575b 100644 --- a/src/pretix/locale/it/LC_MESSAGES/django.po +++ b/src/pretix/locale/it/LC_MESSAGES/django.po @@ -7673,6 +7673,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -7683,6 +7685,8 @@ msgstr "" "\n" "il tuo ordine {code} per {event} è stato cancellato.\n" "\n" +"{comment}\n" +"\n" "Puoi vedere i dettagli del tuo ordine qui:\n" "{url}\n" "\n" diff --git a/src/pretix/locale/ja/LC_MESSAGES/django.po b/src/pretix/locale/ja/LC_MESSAGES/django.po index 899ef057db..65b3b07334 100644 --- a/src/pretix/locale/ja/LC_MESSAGES/django.po +++ b/src/pretix/locale/ja/LC_MESSAGES/django.po @@ -7361,6 +7361,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/lv/LC_MESSAGES/django.po b/src/pretix/locale/lv/LC_MESSAGES/django.po index 265df96997..cffa47c93c 100644 --- a/src/pretix/locale/lv/LC_MESSAGES/django.po +++ b/src/pretix/locale/lv/LC_MESSAGES/django.po @@ -7698,6 +7698,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/nb_NO/LC_MESSAGES/django.po b/src/pretix/locale/nb_NO/LC_MESSAGES/django.po index db8c6ec0f1..6368c55abb 100644 --- a/src/pretix/locale/nb_NO/LC_MESSAGES/django.po +++ b/src/pretix/locale/nb_NO/LC_MESSAGES/django.po @@ -7390,6 +7390,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/nl/LC_MESSAGES/django.po b/src/pretix/locale/nl/LC_MESSAGES/django.po index a1a673d0e7..450da01c71 100644 --- a/src/pretix/locale/nl/LC_MESSAGES/django.po +++ b/src/pretix/locale/nl/LC_MESSAGES/django.po @@ -8302,6 +8302,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -8312,6 +8314,8 @@ msgstr "" "\n" "Uw bestelling {code} voor {event} is geannuleerd.\n" "\n" +"{comment}\n" +"\n" "U kunt de gegevens van uw bestelling bekijken op\n" "{url}\n" "\n" diff --git a/src/pretix/locale/nl_BE/LC_MESSAGES/django.po b/src/pretix/locale/nl_BE/LC_MESSAGES/django.po index 95ad8b7c38..de0e2436de 100644 --- a/src/pretix/locale/nl_BE/LC_MESSAGES/django.po +++ b/src/pretix/locale/nl_BE/LC_MESSAGES/django.po @@ -7339,6 +7339,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/nl_Informal/LC_MESSAGES/django.po b/src/pretix/locale/nl_Informal/LC_MESSAGES/django.po index e6839c1175..20170be24e 100644 --- a/src/pretix/locale/nl_Informal/LC_MESSAGES/django.po +++ b/src/pretix/locale/nl_Informal/LC_MESSAGES/django.po @@ -8323,6 +8323,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -8333,6 +8335,8 @@ msgstr "" "\n" "Je bestelling {code} voor {event} is geannuleerd.\n" "\n" +"{comment}\n" +"\n" "Je kan de gegevens van je bestelling bekijken op {url}\n" "\n" "Met vriendelijke groeten,\n" diff --git a/src/pretix/locale/pl/LC_MESSAGES/django.po b/src/pretix/locale/pl/LC_MESSAGES/django.po index 44b3abdc33..08ab640b1d 100644 --- a/src/pretix/locale/pl/LC_MESSAGES/django.po +++ b/src/pretix/locale/pl/LC_MESSAGES/django.po @@ -7902,6 +7902,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/pl_Informal/LC_MESSAGES/django.po b/src/pretix/locale/pl_Informal/LC_MESSAGES/django.po index c72aafa490..ef24c61597 100644 --- a/src/pretix/locale/pl_Informal/LC_MESSAGES/django.po +++ b/src/pretix/locale/pl_Informal/LC_MESSAGES/django.po @@ -7340,6 +7340,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/pt/LC_MESSAGES/django.po b/src/pretix/locale/pt/LC_MESSAGES/django.po index b6f1c03630..90f23e169c 100644 --- a/src/pretix/locale/pt/LC_MESSAGES/django.po +++ b/src/pretix/locale/pt/LC_MESSAGES/django.po @@ -7380,6 +7380,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/pt_BR/LC_MESSAGES/django.po b/src/pretix/locale/pt_BR/LC_MESSAGES/django.po index 1e4df1cd59..32065c1b1f 100644 --- a/src/pretix/locale/pt_BR/LC_MESSAGES/django.po +++ b/src/pretix/locale/pt_BR/LC_MESSAGES/django.po @@ -8011,6 +8011,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/pt_PT/LC_MESSAGES/django.po b/src/pretix/locale/pt_PT/LC_MESSAGES/django.po index 6040c6b25a..1bfd31acf5 100644 --- a/src/pretix/locale/pt_PT/LC_MESSAGES/django.po +++ b/src/pretix/locale/pt_PT/LC_MESSAGES/django.po @@ -8383,6 +8383,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -8393,6 +8395,8 @@ msgstr "" "\n" "a sua encomenda {code} para {event} foi cancelada.\n" "\n" +"{comment}\n" +"\n" "Pode ver os detalhes da sua encomenda em\n" "{url}\n" "\n" diff --git a/src/pretix/locale/ro/LC_MESSAGES/django.po b/src/pretix/locale/ro/LC_MESSAGES/django.po index c5575ee47f..52d6ec0f89 100644 --- a/src/pretix/locale/ro/LC_MESSAGES/django.po +++ b/src/pretix/locale/ro/LC_MESSAGES/django.po @@ -7342,6 +7342,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/ru/LC_MESSAGES/django.po b/src/pretix/locale/ru/LC_MESSAGES/django.po index a07f17b32f..53951e870a 100644 --- a/src/pretix/locale/ru/LC_MESSAGES/django.po +++ b/src/pretix/locale/ru/LC_MESSAGES/django.po @@ -8076,6 +8076,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/si/LC_MESSAGES/django.po b/src/pretix/locale/si/LC_MESSAGES/django.po index ff138e635d..cc9d90d423 100644 --- a/src/pretix/locale/si/LC_MESSAGES/django.po +++ b/src/pretix/locale/si/LC_MESSAGES/django.po @@ -7346,6 +7346,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/sl/LC_MESSAGES/django.po b/src/pretix/locale/sl/LC_MESSAGES/django.po index 1f875e5e0c..eeae86960d 100644 --- a/src/pretix/locale/sl/LC_MESSAGES/django.po +++ b/src/pretix/locale/sl/LC_MESSAGES/django.po @@ -7997,6 +7997,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/sv/LC_MESSAGES/django.po b/src/pretix/locale/sv/LC_MESSAGES/django.po index cb11e81230..f7e91876d3 100644 --- a/src/pretix/locale/sv/LC_MESSAGES/django.po +++ b/src/pretix/locale/sv/LC_MESSAGES/django.po @@ -7949,6 +7949,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -7959,6 +7961,8 @@ msgstr "" "\n" "din beställning {code} för {event} har annullerats.\n" "\n" +"{comment}\n" +"\n" "Du kan se detaljerna för din beställning på\n" "{url}\n" "\n" diff --git a/src/pretix/locale/tr/LC_MESSAGES/django.po b/src/pretix/locale/tr/LC_MESSAGES/django.po index 03566cacbd..a1a77c14dc 100644 --- a/src/pretix/locale/tr/LC_MESSAGES/django.po +++ b/src/pretix/locale/tr/LC_MESSAGES/django.po @@ -8773,6 +8773,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -8783,6 +8785,8 @@ msgstr "" "\n" "{event} için {code} sipraşiniz iptal edilmiştir.\n" "\n" +"{comment}\n" +"\n" "Sipraşinizinin detaylarını bu adresten inceleyebilirsiniz\n" "{url}\n" "\n" diff --git a/src/pretix/locale/uk/LC_MESSAGES/django.po b/src/pretix/locale/uk/LC_MESSAGES/django.po index 86613f6a3e..dc3cf56bed 100644 --- a/src/pretix/locale/uk/LC_MESSAGES/django.po +++ b/src/pretix/locale/uk/LC_MESSAGES/django.po @@ -7340,6 +7340,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" diff --git a/src/pretix/locale/zh_Hans/LC_MESSAGES/django.po b/src/pretix/locale/zh_Hans/LC_MESSAGES/django.po index 8187fb1096..665578c2f1 100644 --- a/src/pretix/locale/zh_Hans/LC_MESSAGES/django.po +++ b/src/pretix/locale/zh_Hans/LC_MESSAGES/django.po @@ -8150,6 +8150,8 @@ msgid "" "\n" "your order {code} for {event} has been canceled.\n" "\n" +"{comment}\n" +"\n" "You can view the details of your order at\n" "{url}\n" "\n" @@ -8160,6 +8162,8 @@ msgstr "" "\n" "您{event}的订单{code}已被取消。\n" "\n" +"{comment}\n" +"\n" "您可以在{url}查看订单的详细信息\n" "\n" "致敬,\n" diff --git a/src/pretix/presale/views/order.py b/src/pretix/presale/views/order.py index e3435a6d25..d9545a7907 100644 --- a/src/pretix/presale/views/order.py +++ b/src/pretix/presale/views/order.py @@ -953,7 +953,7 @@ class OrderCancelDo(EventViewMixin, OrderDetailMixin, AsyncAction, View): else: comment = gettext('Canceled by customer') return self.do(self.order.pk, cancellation_fee=fee, try_auto_refund=auto_refund, refund_as_giftcard=giftcard, - comment=comment) + refund_comment=comment) def get_context_data(self, **kwargs): ctx = super().get_context_data(**kwargs)