Show refund amount in refund choice screen

This commit is contained in:
Raphael Michel
2022-03-23 09:15:10 +01:00
parent ee9bf25ae1
commit 2486c3d205
2 changed files with 2 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
{% block content %}
<h1>
{% trans "Refund order" %}
<small class="text-muted">{{ full_refund|money:request.event.currency }}</small>
<a class="btn btn-link btn-lg"
href="{% url "control:event.order" event=request.event.slug organizer=request.event.organizer.slug code=order.code %}">
{% blocktrans trimmed with order=order.code %}

View File

@@ -1123,6 +1123,7 @@ class OrderRefundView(OrderView):
return render(self.request, 'pretixcontrol/order/refund_choose.html', {
'payments': payments,
'new_refunds': new_refunds,
'full_refund': full_refund,
'remainder': to_refund,
'order': self.order,
'comment': comment,