Order cancel: Show refund methods

This commit is contained in:
Raphael Michel
2021-01-07 17:55:30 +01:00
parent 2dee222482
commit 1c769f2876
2 changed files with 24 additions and 0 deletions

View File

@@ -119,6 +119,16 @@
statement.
{% endblocktrans %}
</p>
<p class="help-block">
{% blocktrans trimmed %}
The following payment methods will be used to refund the money to you:
{% endblocktrans %}
</p>
<ul class="help-block">
{% for prop in proposals %}
<li>{{ prop }}</li>
{% endfor %}
</ul>
{% else %}
<p class="help-block">
{% blocktrans trimmed %}
@@ -140,6 +150,16 @@
{% endblocktrans %}
</strong>
</p>
<p>
{% blocktrans trimmed %}
The following payment methods will be used to refund the money to you:
{% endblocktrans %}
</p>
<ul>
{% for prop in proposals %}
<li>{{ prop }}</li>
{% endfor %}
</ul>
{% else %}
<p>
{% blocktrans trimmed %}

View File

@@ -792,6 +792,10 @@ class OrderCancel(EventViewMixin, OrderDetailMixin, TemplateView):
ctx['cancel_fee'] = fee
ctx['refund_amount'] = refund_amount
ctx['can_auto_refund'] = sum(proposals.values()) == refund_amount
ctx['proposals'] = [
p.payment_provider.payment_presale_render(payment=p)
for p in proposals
]
return ctx