Fix #585 -- Creating invoices for refunded orders

This commit is contained in:
Raphael Michel
2017-09-04 20:36:19 +02:00
parent b9b4ccb180
commit ea7ec2b5fc
3 changed files with 14 additions and 3 deletions

View File

@@ -131,7 +131,11 @@
action="{% url "control:event.order.reissueinvoice" event=request.event.slug organizer=request.event.organizer.slug code=order.code id=i.pk %}">
{% csrf_token %}
<button class="btn btn-default btn-xs">
{% trans "Cancel and reissue" %}
{% if order.status == "r" or order.status == "c" %}
{% trans "Generate cancellation" %}
{% else %}
{% trans "Cancel and reissue" %}
{% endif %}
</button>
</form>
{% endif %}