{% extends "base.html" %} {% block title %}{{ customer.display_name }} — Customer{% 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 %} {{ t.priority | upper }} {% 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.strftime('%Y-%m-%d') if t.last_activity_at else '--' }} |
No support threads