mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Properly restrict refunds to full payment amount
This commit is contained in:
@@ -50,10 +50,7 @@
|
||||
{% trans "Cancel order" %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if order.status == 'p' %}
|
||||
<button name="status" value="n" class="btn btn-default">{% trans "Mark as not paid" %}</button>
|
||||
{% endif %}
|
||||
{% if overpaid|add:order.total != 0 %}
|
||||
{% if order.payment_refund_sum > 0 %}
|
||||
<a href="{% url "control:event.order.refunds.start" event=request.event.slug organizer=request.event.organizer.slug code=order.code %}" class="btn btn-default">
|
||||
{% trans "Create a refund" %}
|
||||
</a>
|
||||
|
||||
@@ -35,10 +35,12 @@
|
||||
</div>
|
||||
</fieldset>
|
||||
<p> </p>
|
||||
<fieldset class="form-inline form-order-change">
|
||||
<legend>{% trans "What should happen to the order?" %}</legend>
|
||||
{% bootstrap_field form.action layout='horizontal' horizontal_label_class='sr-only' horizontal_field_class='' %}
|
||||
</fieldset>
|
||||
{% if form.action %}
|
||||
<fieldset class="form-inline form-order-change">
|
||||
<legend>{% trans "What should happen to the order?" %}</legend>
|
||||
{% bootstrap_field form.action layout='horizontal' horizontal_label_class='sr-only' horizontal_field_class='' %}
|
||||
</fieldset>
|
||||
{% endif %}
|
||||
<p> </p>
|
||||
|
||||
{% csrf_token %}
|
||||
|
||||
Reference in New Issue
Block a user