{% extends "pretixcontrol/event/base.html" %} {% load i18n %} {% load bootstrap3 %} {% load eventurl %} {% block title %} {% blocktrans trimmed with code=order.code %} Order details: {{ code }} {% endblocktrans %} {% endblock %} {% block content %}

{% blocktrans trimmed with code=order.code %} Order details: {{ code }} {% endblocktrans %} {% include "pretixcontrol/orders/fragment_order_status.html" with order=order class="pull-right" %}

{% if 'can_change_orders' in request.eventpermset %} {% if order.status == 'n' or order.status == 'p' or order.status == 'e' %}
{% csrf_token %}
{% endif %} {% endif %} {% if order.is_expired_by_time %}
{% csrf_token %}
{% trans "The payment for this order is overdue, but you have configured not to expire orders automatically. To free quota capacity, you can mark it as expired manually." %}
{% endif %}

{% trans "Order details" %}

{% trans "Order code" %}
{{ order.code }}
{% trans "Order date" %}
{{ order.datetime }}
{% trans "Order locale" %}
{{ display_locale }}
{% if order.status == "p" %}
{% trans "Payment date" %}
{{ order.payment_date }}
{% elif order.status == "n" %}
{% trans "Expiry date" %}
{{ order.expires }}
{% endif %}
{% trans "User" %}
{{ order.email }}   {% if order.status != "c" %}
{% csrf_token %}
{% endif %}
{% if invoices %}
{% trans "Invoices" %}
{% for i in invoices %} {% if i.is_cancellation %}{% trans "Cancellation" %}{% else %}{% trans "Invoice" %}{% endif %} {{ i.number }} ({{ i.date|date:"SHORT_DATE_FORMAT" }}) {% if not i.canceled %}
{% csrf_token %}
{% if not i.is_cancellation %}
{% csrf_token %}
{% endif %} {% endif %} {% if forloop.revcounter0 > 0 %}
{% endif %} {% endfor %}
{% elif can_generate_invoice %}
{% trans "Invoices" %}
{% csrf_token %}
{% endif %}
{% if order.changable and 'can_change_orders' in request.eventpermset %} {% trans "Change products" %} {% endif %}

{% trans "Ordered items" %}

{% for line in items.positions %}
{% if line.addon_to %} + {% else %} #{{ line.positionid }} – {% endif %} {{ line.item.name }} {% if line.variation %} – {{ line.variation }} {% endif %} {% if line.checkins.all %} {% endif %} {% if line.voucher %}
{% trans "Voucher code used:" %} {{ line.voucher.code }} {% endif %} {% if line.has_questions %}
{% if line.item.admission and event.settings.attendee_names_asked %}
{% trans "Attendee name" %}
{% if line.attendee_name %}{{ line.attendee_name }}{% else %} {% trans "not answered" %}{% endif %}
{% endif %} {% if line.item.admission and event.settings.attendee_emails_asked %}
{% trans "Attendee email" %}
{% if line.attendee_email %}{{ line.attendee_email }}{% else %} {% trans "not answered" %}{% endif %}
{% endif %} {% for q in line.questions %}
{{ q.question }}
{% if q.answer %}{{ q.answer|linebreaksbr }}{% else %} {% trans "not answered" %}{% endif %}
{% endfor %}
{% endif %}
{% if event.settings.display_net_prices %} {{ event.currency }} {{ line.net_price|floatformat:2 }} {% if line.tax_rate %}
{% blocktrans trimmed with rate=line.tax_rate %} plus {{ rate }}% taxes {% endblocktrans %} {% endif %} {% else %} {{ event.currency }} {{ line.price|floatformat:2 }} {% if line.tax_rate %}
{% blocktrans trimmed with rate=line.tax_rate %} incl. {{ rate }}% taxes {% endblocktrans %} {% endif %} {% endif %}
{% endfor %} {% if items.payment_fee %}
{% trans "Payment method fee" %}
{% if event.settings.display_net_prices %} {{ event.currency }} {{ order.payment_fee_net|floatformat:2 }} {% if order.payment_fee_tax_rate %}
{% blocktrans trimmed with rate=order.payment_fee_tax_rate %} plus {{ rate }}% taxes {% endblocktrans %} {% endif %} {% else %} {{ event.currency }} {{ items.payment_fee|floatformat:2 }} {% if order.payment_fee_tax_rate %}
{% blocktrans trimmed with rate=order.payment_fee_tax_rate %} incl. {{ rate }}% taxes {% endblocktrans %} {% endif %} {% endif %}
{% endif %} {% if event.settings.display_net_prices %}
{% trans "Net total" %}
{{ event.currency }} {{ items.net_total|floatformat:2 }}
{% trans "Taxes" %}
{{ event.currency }} {{ items.tax_total|floatformat:2 }}
{% endif %}
{% trans "Total" %}
{{ event.currency }} {{ items.total|floatformat:2 }}

{% trans "Payment information" %}

{% if order.payment_manual %}
{% trans "The payment state of this order was manually modified." %}
{% endif %} {{ payment }} {% if order.status == 'n' %}

{% blocktrans trimmed with date=order.expires %} The payment has to be completed before {{ date }}. {% endblocktrans %}

{% endif %}
{% if request.event.settings.invoice_address_asked %}

{% trans "Invoice information" %}

{% trans "Company" %}
{{ order.invoice_address.company }}
{% trans "Name" %}
{{ order.invoice_address.name }}
{% trans "Address" %}
{{ order.invoice_address.street|linebreaksbr }}
{% trans "ZIP code and city" %}
{{ order.invoice_address.zipcode }} {{ order.invoice_address.city }}
{% trans "Country" %}
{{ order.invoice_address.country }}
{% if request.event.settings.invoice_address_vatid %}
{% trans "VAT ID" %}
{{ order.invoice_address.vat_id }}
{% endif %}
{% endif %}

{% trans "Internal comment" %}

{% csrf_token %}
{% bootstrap_field comment_form.comment layout="horizontal" show_help=True show_label=False horizontal_field_class="col-md-12" %}

{% trans "Order history" %}

{% include "pretixcontrol/includes/logs.html" with obj=order %}
{% endblock %}