mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
GiftcarD Only allow reversal for refunds
This commit is contained in:
@@ -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 %}">
|
<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 }}
|
{{ t.order.full_code }}
|
||||||
</a>
|
</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 }}"
|
<button type="submit" name="revert" value="{{ t.pk }}"
|
||||||
class="btn btn-default btn-xs" data-toggle="tooltip"
|
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." %}">
|
title="{% trans "Create a payment on the respective order that cancels out with this transaction. The order will then likely be overpaid." %}">
|
||||||
|
|||||||
Reference in New Issue
Block a user