GiftcarD Only allow reversal for refunds

This commit is contained in:
Raphael Michel
2020-04-22 09:34:15 +02:00
parent 50bb66a32b
commit 27d6e49c4a

View File

@@ -74,7 +74,7 @@
<a href="{% url "control:event.order" event=t.order.event.slug organizer=t.order.event.organizer.slug code=t.order.code %}">
{{ t.order.full_code }}
</a>
{% if t.value > 0 and t.value <= card.value %}
{% if t.refund and t.value > 0 and t.value <= card.value %}
<button type="submit" name="revert" value="{{ t.pk }}"
class="btn btn-default btn-xs" data-toggle="tooltip"
title="{% trans "Create a payment on the respective order that cancels out with this transaction. The order will then likely be overpaid." %}">