{# One order: details on the left, the buttons you press on the right. Shown on its own page (in_dialog false) and in the window over the order list (in_dialog true). #}

{{ o.customer_name or ('Order #' ~ (o.order_number or '?')) }}

{% if o.customer_name %}Order #{{ o.order_number or '?' }}{% endif %} {{ o.platform or 'Not delivery' }} {% if o.confidence == 'low' %}Low confidence read{% endif %} {% if not o.delivered %}Sticker did not print{% endif %}
{% if has_clip %}
{% elif not in_dialog %}
{% if o.clip_status == 'pending' %}Saving clip {% elif o.clip_status == 'failed' %}No clip
{{ o.clip_error }} {% elif o.clip_status == 'expired' %}Clip deleted
{{ o.clip_error }} {% else %}No clip{% endif %}
{% endif %}
{% if o.item_list %}
    {% for item in o.item_list %}
  • {{ item.qty }}{{ item.name }} {% for mod in item.modifiers %}{{ mod }}{% endfor %}
  • {% endfor %}
{% else %}No items read{% endif %}
Customer{{ o.customer_name or '—' }}
Order ID{{ o.marketplace_id or '—' }}
Amount{{ o.amount_text or '—' }}
Sticker printed{{ o.received_at|dt }}
Time on sticker{{ o.printed_time or '—' }}
{% if o.clip_start and o.clip_status == 'done' %}
Clip covers{{ o.clip_start|clock }} to {{ o.clip_end|clock }}
{% endif %}
Items{{ o.item_count }}
{% if o.note_list or o.proxy_error %} {% endif %}
Sticker text {% if o.text %}
{{ o.text }}
{% else %}None{% endif %} {% if has_sticker %}

Sticker as sent to the printer

{% endif %} {% if has_raw %}

Download raw print job

{% endif %}
{% if has_clip %} Download clip Export evidence {% endif %} {% if has_thumb %}Bag photo{% endif %}
Clip{{ o.status_label }}
{% if in_dialog %} Open full page {% endif %}