{% extends "pretixcontrol/event/base.html" %} {% load i18n %} {% load bootstrap3 %} {% load eventurl %} {% load money %} {% load rich_text %} {% load safelink %} {% load eventsignal %} {% load l10n %} {% load phone_format %} {% block title %} {% blocktrans trimmed with code=order.code %} Order details: {{ code }} {% endblocktrans %} {% endblock %} {% block content %} {% blocktrans asvar s_taxes %}taxes{% endblocktrans %}

{% 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 %}
{% csrf_token %}
{% 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 %} {% if overpaid > 0 %}
{% csrf_token %} {% localize off %} {% endlocalize %}
{% blocktrans trimmed with amount=overpaid|money:request.event.currency %} This order is currently overpaid by {{ amount }}. {% 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 %}
{% trans "Cancellation fee" %}
{{ cr.cancellation_fee|money:request.event.currency }}
{% endfor %}

{% trans "Order details" %}

{% trans "Order code" %}
{{ order.code }}
{% trans "Order date" %}
{{ order.datetime|date:"SHORT_DATETIME_FORMAT" }}
{% if order.cancellation_date %}
{% trans "Cancellation date" %}
{{ order.cancellation_date|date:"SHORT_DATETIME_FORMAT" }}
{% endif %} {% if sales_channel %}
{% trans "Sales channel" %}
{{ sales_channel.verbose_name }}
{% endif %}
{% trans "Order locale" %}
{{ display_locale }}
{% if order.status == "n" %}
{% trans "Expiry date" %}
{{ order.expires|date:"SHORT_DATETIME_FORMAT" }} {% if has_cancellation_fee and request.event.settings.payment_term_expire_automatically %} {% endif %}
{% endif %} {% if request.organizer.settings.customer_accounts %}
{% trans "Customer account" %}
{% if order.customer %} {{ order.customer.identifier }} – {{ order.customer.email }} {% endif %}
{% endif %}
{% trans "Contact email" %}
{{ order.email|default_if_none:"" }} {% if order.email and order.email_known_to_work %} {% endif %} {% if order.email %} {% if order.status != "c" %}
{% csrf_token %}
{% endif %} {% endif %}
{% if order.phone or request.event.settings.order_phone_asked %}
{% trans "Phone number" %}
{{ order.phone|default_if_none:""|phone_format }}
{% endif %} {% if invoices %}
{% trans "Invoices" %}
{% for i in invoices %} {% if i.is_cancellation %}{% trans "Cancellation" context "invoice" %}{% else %}{% trans "Invoice" %}{% endif %} {{ i.number }} ({{ i.date|date:"SHORT_DATE_FORMAT" }}) {% if i.sent_to_customer.year == 1970 %} {% elif i.sent_to_customer %} {% else %} {% endif %} {% if not i.canceled %} {% if request.event.settings.invoice_regenerate_allowed %}
{% csrf_token %}
{% endif %} {% if not i.is_cancellation %}
{% csrf_token %}
{% endif %} {% endif %} {% if forloop.revcounter0 > 0 %}
{% endif %} {% endfor %} {% if invoices_send_link %}
{% trans "Email invoices" %} {% endif %} {% if can_generate_invoice %}
{% csrf_token %}
{% endif %}
{% elif can_generate_invoice %}
{% trans "Invoices" %}
{% csrf_token %}
{% endif %}
{% trans "Change answers" %} {% if '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 }} {% if line.variation %} – {{ line.variation }} {% endif %} {% if line.checkins.all %} {% for c in line.all_checkins.all %} {% if not c.successful %} {% elif c.type == "exit" %} {% if c.auto_checked_in %} {% else %} {% endif %} {% elif c.forced %} {% elif c.auto_checked_in %} {% else %} {% endif %} {% endfor %} {% endif %} {% if line.seat %}
{{ line.seat }} {% endif %} {% if line.voucher %}
{% trans "Voucher code used:" %} {{ line.voucher.code }} {% endif %} {% if line.subevent %}
{{ line.subevent.name }} · {{ line.subevent.get_date_range_display }} {% if event.settings.show_times %} {{ line.subevent.date_from|date:"TIME_FORMAT" }} {% endif %} {% endif %} {% if line.used_membership %}
{{ line.used_membership }} {% endif %} {% if line.discount %}
{{ line.discount.internal_name }} {% endif %} {% if not line.canceled %}
{% if line.generate_ticket %} {% for b in download_buttons %}
{% csrf_token %}
{% endfor %} {% endif %} {% if not line.addon_to %} {% trans "Ticket page" %} {% endif %} {% eventsignal event "pretix.control.signals.order_position_buttons" order=order position=line request=request %}
{% endif %} {% if line.issued_gift_cards %}
{% for gc in line.issued_gift_cards.all %}
{% trans "Gift card code" %}
{{ gc.secret }}
{% endfor %}
{% 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 }} {% if not line.addon_to %}
{% csrf_token %}
{% endif %} {% else %} {% trans "not answered" %} {% endif %}
{% endif %} {% if line.item.admission and event.settings.attendee_company_asked %}
{% trans "Attendee company" %}
{% if line.company %}{{ line.company }}{% else %}{% trans "not answered" %}{% endif %}
{% endif %} {% if line.item.admission and event.settings.attendee_addresses_asked %}
{% trans "Attendee address" %}
{% if line.street or line.zipcode or line.city or line.country %} {{ line.street|default_if_none:""|linebreaksbr }}
{{ line.zipcode|default_if_none:"" }} {{ line.city|default_if_none:"" }}
{{ line.country.name|default_if_none:"" }} {% if line.state %}
{{ line.state }}{% endif %} {% else %} {% trans "not answered" %} {% endif %}
{% endif %} {% for q in line.questions %}
{{ q.question }} {% if q.ask_during_checkin %} {% endif %}
{% if q.answer %} {% if q.answer.file %} {{ q.answer.file_name }} {% trans "UNSAFE" %} {% if q.answer.is_image %}
{% endif %} {% elif q.type == "M" %} {{ q.answer|rich_text_snippet }} {% else %} {{ q.answer|linebreaksbr }} {% endif %} {% else %} {% trans "not answered" %} {% endif %}
{% endfor %} {% for q in line.additional_fields %}
{{ q.question }}
{% if q.answer %}{{ q.answer|linebreaksbr }}{% else %} {% trans "not answered" %}{% endif %}
{% endfor %}
{% endif %}
{% if event.settings.display_net_prices %} {{ line.net_price|money:event.currency }} {% if line.tax_rate %}
{% blocktrans trimmed with rate=line.tax_rate|floatformat:-2 taxname=line.tax_rule.name|default:s_taxes %} plus {{ rate }}% {{ taxname }} {% endblocktrans %} {% endif %} {% else %} {{ line.price|money:event.currency }} {% if line.tax_rate and line.price %}
{% blocktrans trimmed with rate=line.tax_rate|floatformat:-2 taxname=line.tax_rule.name|default:s_taxes %} incl. {{ rate }}% {{ taxname }} {% endblocktrans %} {% endif %} {% endif %}
{% endfor %} {% for fee in items.fees %}
{{ fee.get_fee_type_display }} {% if fee.description %} – {{ fee.description }} {% endif %}
{% if event.settings.display_net_prices %} {{ fee.net_value|money:event.currency }} {% if fee.tax_rate %}
{% blocktrans trimmed with rate=fee.tax_rate|floatformat:-2 taxname=fee.tax_rule.name|default:s_taxes %} plus {{ rate }}% {{ taxname }} {% endblocktrans %} {% endif %} {% else %} {{ fee.value|money:event.currency }} {% if fee.tax_rate %}
{% blocktrans trimmed with rate=fee.tax_rate|floatformat:-2 taxname=fee.tax_rule.name|default:s_taxes %} incl. {{ rate }}% {{ taxname }} {% endblocktrans %} {% endif %} {% endif %}
{% endfor %}
{% trans "Net total" %}
{{ items.net_total|money:event.currency }}
{% trans "Taxes" %}
{{ items.tax_total|money:event.currency }}
{% trans "Total" %}
{{ items.total|money:event.currency }}
{% if order.status != "c" and order.total != payment_refund_sum %}
{% trans "Successful payments" %}
{{ payment_refund_sum|money:event.currency }}
{% trans "Pending total" %}
{{ order.pending_sum|money:event.currency }}
{% endif %}
{% eventsignal event "pretix.control.signals.order_info" order=order request=request %}

{% trans "Payments" %}

{% for p in payments %} {% if p.html_info %} {% elif staff_session %} {% endif %} {% endfor %}
# {% trans "Start date" %} {% trans "Confirmation date" %} {% trans "Payment method" %} {% trans "Status" %} {% trans "Amount" %}
{{ p.full_id }} {% if p.migrated %} {% trans "MIGRATED" %} {% else %} {{ p.created|date:"SHORT_DATETIME_FORMAT" }} {% endif %} {{ p.payment_date|date:"SHORT_DATETIME_FORMAT" }} {{ p.payment_provider.verbose_name }} {% if p.state == "pending" or p.state == "created" %} {% endif %} {{ p.get_state_display }} {{ p.amount|money:request.event.currency }}
{{ p.html_info|safe }} {% if staff_session %}

{% trans "Inspect" %}

{% endif %}
{% trans "Inspect" %}
{% if order.payment_refund_sum > 0 %} {% trans "Create a refund" %} {% endif %}
{% if refunds %}

{% trans "Refunds" %}

{% for r in refunds %} {% if r.html_info or staff_session or r.comment %} {% endif %} {% endfor %}
# {% trans "Start date" %} {% trans "Completion date" %} {% trans "Source" %} {% trans "Payment method" %} {% trans "Payment" %} {% trans "Status" %} {% trans "Amount" %}
{{ r.full_id }} {{ r.created|date:"SHORT_DATETIME_FORMAT" }} {{ r.execution_date|date:"SHORT_DATETIME_FORMAT" }} {{ r.get_source_display }} {{ r.payment_provider.verbose_name }} {% if r.payment %} {{ r.payment.full_id }} {% endif %} {{ r.get_state_display }} {{ r.amount|money:request.event.currency }} {% if r.state == "transit" or r.state == "created" %} {% elif r.state == "external" %} {% trans "Ignore" %} {% trans "Process refund" %} {% endif %}
{% if r.comment %}
{% trans "Comment" %}
{{ r.comment }}
{% endif %} {% if r.html_info %} {{ r.html_info|safe }} {% endif %} {% if staff_session %}

{% trans "Inspect" %}

{% endif %}
{% endif %}
{% if request.event.settings.invoice_address_asked or order.invoice_address %}
{% if 'can_change_orders' in request.eventpermset %} {% trans "Change" %} {% endif %}

{% 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.name|default:order.invoice_address.country_old }}
{% if order.invoice_address.state %}
{% trans "State" context "address" %}
{{ order.invoice_address.state_name }}
{% endif %} {% if request.event.settings.invoice_address_vatid %}
{% trans "VAT ID" %}
{{ order.invoice_address.vat_id }} {% if order.invoice_address.vat_id_validated %} {% elif order.invoice_address.vat_id %}
{% csrf_token %}
{% endif %}
{% endif %} {% if request.event.settings.invoice_address_custom_field and order.invoice_address.custom_field %}
{{ request.event.settings.invoice_address_custom_field }}
{{ order.invoice_address.custom_field }}
{% endif %}
{% trans "Internal reference" %}
{{ order.invoice_address.internal_reference }}
{% endif %}

{% trans "Internal comment" %}

{% csrf_token %} {% bootstrap_field comment_form.comment show_help=True show_label=False %} {% bootstrap_field comment_form.custom_followup_at %} {% bootstrap_field comment_form.checkin_attention show_help=True show_label=False %}

{% trans "Order history" %}

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