{% extends "base.html" %} {% block title %}{% trans name=customer.display_name %}{{ name }} — Customer{% endtrans %}{% endblock %} {% block content %}
{{ _("Revenue") }}
€{{ customer.total_revenue }}
{{ _("Orders") }}
{{ customer.total_orders }}
{{ _("Products") }}
{{ customer.total_products }}
{{ _("Tickets") }}
{{ customer.total_threads }}
{{ _("No Business Care subscription") }}
{% endif %}{{ _("No support data available") }}
{% endif %}| {{ _("Date") }} | {{ _("Order ID") }} | {{ _("Product") }} | {{ _("Type") }} | {{ _("Amount") }} |
|---|---|---|---|---|
| {{ o.order_date.strftime('%Y-%m-%d') if o.order_date else '--' }} | {{ o.id_order or o.provider_order_id }} |
{% if o.product_type == 'business_care' %}
{{ _("BC") }}
{% elif o.pico_url %}
|
{% if o.transaction_type == 'income' %} {{ _("income") }} {% elif o.transaction_type == 'payment' %} {{ _("payment") }} {% else %} {{ o.transaction_type or '--' }} {% endif %} | {% if o.transaction_type == 'income' %} €{{ o.amount or '0' }} {% elif o.transaction_type == 'payment' %} €{{ o.amount or '0' }} {% else %} €{{ o.amount or '0' }} {% endif %} |
{{ _("No purchase history") }}
| {{ _("Subject") }} | {{ _("Product") }} | {{ _("Status") }} | {{ _("Priority") }} | {{ _("Support") }} | {{ _("Last Activity") }} |
|---|---|---|---|---|---|
| {% if t.ticket_id %} {{ t.subject | truncate(50) }} {% else %} {{ t.subject | truncate(50) }} {% endif %} | {{ t.product_name or '--' }} | {% if t.status == 'open' %} {{ _("open") }} {% elif t.status == 'in_progress' %} {{ _("in progress") }} {% elif t.status == 'waiting_customer' %} {{ _("waiting") }} {% elif t.status == 'closed' %} {{ _("closed") }} {% else %} -- {% endif %} | {% if t.priority %} {% if t.priority == 'p1' %}{{ _("Critical") }}{% elif t.priority == 'p2' %}{{ _("High") }}{% elif t.priority == 'p3' %}{{ _("Normal") }}{% else %}{{ _("Low") }}{% endif %} {% else %} -- {% endif %} | {% if t.is_support_expired %} {{ _("expired") }} {% elif t.has_support %} {{ _("active") }} {% elif t.has_support == false %} {{ _("none") }} {% else %} -- {% endif %} | {{ t.last_activity_at|localdt('%Y-%m-%d') if t.last_activity_at else '--' }} |
{{ _("No support threads") }}