{% extends "pretixcontrol/organizers/base.html" %} {% load i18n %} {% load bootstrap3 %} {% load money %} {% load static %} {% block title %} {% blocktrans trimmed with id=customer.identifier %} Customer #{{ id }} {% endblocktrans %} {% endblock %} {% block inner %}

{% blocktrans trimmed with id=customer.identifier %} Customer #{{ id }} {% endblocktrans %}

{% trans "Details" %}

{% csrf_token %}
{% trans "Customer ID" %}
#{{ customer.identifier }}
{% if customer.provider %}
{% trans "SSO provider" %}
{{ customer.provider.name }}
{% endif %} {% if customer.external_identifier %}
{% trans "External identifier" %}
{{ customer.external_identifier }}
{% endif %}
{% trans "Status" %}
{% if not customer.is_active %} {% trans "disabled" %} {% elif not customer.is_verified %} {% trans "not yet activated" %} {% else %} {% trans "active" %} {% endif %}
{% trans "Email" %}
{{ customer.email|default_if_none:"" }} {% if customer.email and not customer.provider %} {% endif %}
{% trans "Name" %}
{{ customer.name }}
{% if customer.phone %}
{% trans "Phone" %}
{{ customer.phone }}
{% endif %}
{% trans "Locale" %}
{{ display_locale }}
{% trans "Registration date" %}
{{ customer.date_joined|date:"SHORT_DATETIME_FORMAT" }}
{% trans "Last login" %}
{% if customer.last_login %}{{ customer.last_login|date:"SHORT_DATETIME_FORMAT" }}{% else %} –{% endif %}
{% if customer.notes %}
{% trans "Notes" %}
{{ customer.notes|linebreaks }}
{% endif %}
{% trans "Lifetime spending" %}
{% if lifetime_spending %} {% for s in lifetime_spending %} {% if s.spending >= 0 %}
{{ s.spending|money:s.currency }}
{% elif s.spending < 0 %}
{{ s.spending|money:s.currency }}
{% endif %} {% endfor %} {% else %}
{{ 0|floatformat:2 }}
{% endif %}

{% trans "Memberships" %}

{% for m in memberships %} {% endfor %}
{% trans "Membership type" %} {% trans "Valid from" %} {% trans "Valid until" %} {% trans "Order" %} {% trans "Attendee name" %} {% trans "Usages" %}
{% if m.canceled %} {% endif %} {{ m.membership_type.name }} {% if m.canceled %}{% endif %} {% if m.testmode %}{% trans "TEST MODE" %}{% endif %} {{ m.date_start|date:"SHORT_DATETIME_FORMAT" }} {{ m.date_end|date:"SHORT_DATETIME_FORMAT" }} {% if m.granted_in %} {{ m.granted_in.order.code }}-{{ m.granted_in.positionid }} {% endif %} {{ m.attendee_name|default_if_none:"" }}
{{ m.usages }} / {{ m.membership_type.max_usages|default_if_none:"∞" }}
{% if m.testmode %} {% endif %}
{% trans "Add membership" %}

{% trans "Orders" %}

{% for o in orders %} {% endfor %}
{% trans "Order code" %} {% trans "Event" %} {% trans "Order date" %} {% trans "Order paid / total" %} {% trans "Positions" %} {% trans "Status" %}
{{ o.code }} {% if o.testmode %} {% trans "TEST MODE" %} {% endif %} {{ o.event }} {% if "." in o.sales_channel.icon %} {% else %} {% endif %} {{ o.datetime|date:"SHORT_DATETIME_FORMAT" }} {% if o.customer_id != customer.pk %} {% endif %} {% if o.has_cancellation_request %} {% trans "CANCELLATION REQUESTED" %} {% endif %} {% if o.has_external_refund or o.has_pending_refund %} {% trans "REFUND PENDING" %} {% elif o.has_pending_refund %} {% trans "REFUND PENDING" %} {% endif %} {% if o.is_overpaid %} {% trans "OVERPAID" %} {% elif o.is_underpaid %} {% trans "UNDERPAID" %} {% elif o.is_pending_with_full_payment %} {% trans "FULLY PAID" %} {% endif %} {% if o.computed_payment_refund_sum == o.total or o.computed_payment_refund_sum == 0 %} {% endif %} {{ o.computed_payment_refund_sum|money:o.event.currency }} / {% if o.computed_payment_refund_sum == o.total or o.computed_payment_refund_sum == 0 %} {% endif %} {{ o.total|money:o.event.currency }} {% if o.status == "c" and o.icnt %}
{% trans "INVOICE NOT CANCELED" %} {% endif %}
{{ o.pcnt|default_if_none:"0" }} {% include "pretixcontrol/orders/fragment_order_status.html" with order=o %}
{% include "pretixcontrol/pagination.html" %}

{% trans "Customer history" %}

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