{% blocktrans trimmed with code=order.code %}
Order details: {{ code }}
{% endblocktrans %}
{% if order.testmode %}
{% trans "TEST MODE" %}
{% endif %}
{% include "pretixcontrol/orders/fragment_order_status.html" with order=order class="pull-right flip" %}
{% if 'can_change_orders' in request.eventpermset %}
{% endif %}
{% if order.is_expired_by_time %}
{% endif %}
{% if overpaid > 0 %}
{% elif order.status == "e" and order.payment_refund_sum != 0 %}
{% blocktrans trimmed with amount=order.payment_refund_sum|money:request.event.currency %}
This order is expired even though it received payments of {{ amount }}. You can choose to refund
the money below or reactivate it by extending the payment deadline.
{% endblocktrans %}
{% endif %}
{% for cr in order.cancellation_requests.all %}
{% trans "Cancellation request" %}
{% trans "The customer asked you to cancel the order with the following settings:" %}
{% trans "Refund method" %}
{% if cr.refund_as_giftcard %}
{% trans "Gift card" %}
{% else %}
{% trans "Original payment method" %}
{% endif %}