mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Adds messages both pre- and post-update explaining to the user that the invoice itself will not be automatically regenerated and that support interaction is required for this step. Might reduce user frustration.
This commit is contained in:
committed by
Raphael Michel
parent
854fb1218e
commit
96dbfc304a
@@ -12,6 +12,12 @@
|
||||
{% csrf_token %}
|
||||
<div class="panel-group" id="questions_accordion">
|
||||
{% if event.settings.invoice_address_asked %}
|
||||
<div class="alert alert-info">
|
||||
{% blocktrans trimmed %}
|
||||
Modifying your invoice address will not automatically generate a new invoice.
|
||||
Please contact us if you need a new invoice.
|
||||
{% endblocktrans %}
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
|
||||
@@ -264,6 +264,10 @@ class OrderModify(EventViewMixin, OrderDetailMixin, QuestionsViewMixin, Template
|
||||
return self.get(request, *args, **kwargs)
|
||||
self.invoice_form.save()
|
||||
self.order.log_action('pretix.event.order.modified')
|
||||
if self.invoice_form.has_changed():
|
||||
success_message = ('Your invoice address has been updated. Please contact us if you need us '
|
||||
'to regenerate your invoice.')
|
||||
messages.success(self.request, _(success_message))
|
||||
return redirect(self.get_order_url())
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user