{% extends "base.html" %} {% block title %}Orders{% endblock %} {% block content %}
| Date | Order ID | Product | Customer | Licence URL | Country | Type | Amount | Qty |
|---|---|---|---|---|---|---|---|---|
| {{ o.order_date.strftime('%Y-%m-%d') if o.order_date else '--' }} | {# Order ID #}{{ o.id_order or o.provider_order_id }} | {# Product: icon + name #}
{% if o.product_type == 'business_care' %}
BC
{% elif o.pico_url %}
|
{# Customer hash (truncated) #}
{% if o.customer_hash %} {{ o.customer_hash[:12] }}... {% else %} -- {% endif %} | {# Licence URL (customer website) + online status #}
{% if o.customer_website %}
{% set ws_href = o.customer_website if o.customer_website.startswith('http') else 'https://' + o.customer_website %}
{% set oss = site_status.get(o.id) %}
{% if oss and oss.is_online == true %}
{% set tip = 'Online' %}
{% if oss.error_message %}{% set tip = 'Online (' ~ oss.http_status ~ ' — ' ~ oss.error_message ~ ')' %}
{% elif oss.http_status %}{% set tip = 'Online (' ~ oss.http_status ~ ', ' ~ (oss.response_time_ms or '?') ~ 'ms)' %}{% endif %}
{% elif oss and oss.is_online == false %}
{% set tip = 'Offline' %}
{% if oss.error_message %}{% set tip = 'Offline — ' ~ oss.error_message %}{% endif %}
{% endif %}
{{ o.customer_website | truncate(28) }}
{% else %}
--
{% endif %}
|
{# Country #}
{{ o.iso_code or '--' }} | {# Type badge #}{% if o.transaction_type == 'income' %} income {% elif o.transaction_type == 'payment' %} payment {% else %} {{ o.transaction_type or '--' }} {% endif %} | {# Amount (green for income, red for payment) #}{% if o.transaction_type == 'income' %} €{{ o.amount or '0' }} {% elif o.transaction_type == 'payment' %} €{{ o.amount or '0' }} {% else %} €{{ o.amount or '0' }} {% endif %} | {# Qty #}{{ o.product_quantity or 1 }} |
Page {{ page }} of {{ total_pages }}
No orders found.
Try adjusting your filters or sync orders first.