Orders: Add bulk action to refund overpaid amount (#3721)

* add bulk action to refund overpaid amount

* display number of successful actions, use existing annotate method

* add tests, address review comments

* lint
This commit is contained in:
Julian Baumann
2023-11-23 09:48:28 +01:00
committed by GitHub
parent b639ac850f
commit 8c80200fc0
4 changed files with 93 additions and 2 deletions

View File

@@ -299,6 +299,13 @@
{% trans "Deny" %}
</button>
</li>
<li>
<button type="submit" class="btn"
formaction="{% url "control:event.orders.bulk.refund_overpaid" organizer=request.organizer.slug event=request.event.slug %}">
<i class="fa fa-money fa-fw text-danger"></i>
{% trans "Refund overpaid amount" %}
</button>
</li>
{% if not request.event.settings.payment_term_expire_automatically %}
<li>
<button type="submit" class="btn"