From 4c0e8f69eaedbf021012831f5648e6d999e78982 Mon Sep 17 00:00:00 2001
From: Raphael Michel
Date: Thu, 4 Apr 2019 09:57:44 +0200
Subject: [PATCH] Cancellation: Do not display refund notices if not required
---
.../pretixpresale/event/order_cancel.html | 30 ++++++++++---------
src/pretix/presale/views/order.py | 2 +-
2 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/src/pretix/presale/templates/pretixpresale/event/order_cancel.html b/src/pretix/presale/templates/pretixpresale/event/order_cancel.html
index b110891b3e..d45972f95b 100644
--- a/src/pretix/presale/templates/pretixpresale/event/order_cancel.html
+++ b/src/pretix/presale/templates/pretixpresale/event/order_cancel.html
@@ -15,22 +15,24 @@
{% endblocktrans %}
{% trans "This will invalidate all of your tickets." %}
- {% if can_auto_refund %}
-
-
+ {% if refund_amount %}
+ {% if can_auto_refund %}
+
+
+ {% blocktrans trimmed with amount=refund_amount|money:request.event.currency %}
+ The refund amount of {{ amount }} will automatically be sent back to your original payment method. Depending on the payment method,
+ please allow for up to two weeks before this appears on your statement.
+ {% endblocktrans %}
+
+
+ {% else %}
+
{% blocktrans trimmed with amount=refund_amount|money:request.event.currency %}
- The refund amount of {{ amount }} will automatically be sent back to your original payment method. Depending on the payment method,
- please allow for up to two weeks before this appears on your statement.
+ With to the payment method you used, the refund amount of {{ amount }}
can not be sent back to you automatically. Instead, the
+ event organizer will need to initiate the transfer manually. Please be patient as this might take a bit longer.
{% endblocktrans %}
-
-
- {% else %}
-
- {% blocktrans trimmed with amount=refund_amount|money:request.event.currency %}
- With to the payment method you used, the refund amount of {{ amount }} can not be sent back to you automatically. Instead, the
- event organizer will need to initiate the transfer manually. Please be patient as this might take a bit longer.
- {% endblocktrans %}
-
+
+ {% endif %}
{% endif %}