{% extends admin_base_template %} {% set order = model %} {% set client = order.client %} {% set delivery_address = order.shipping_info.address %} {% set billing_address = order.billing_address %} {% set shipping_fee = order.shipping_option.price %} {% block head %} {{ super() }} {% endblock %} {% block body %}
COMMANDE N°{{ order.id }}
Statut : {{ order.step }}
Date : {% if order.date %}{{ order.date.strftime("%d/%m/%Y") }}{% endif %}
DÉTAIL DE LA COMMANDE
Produits {% for item in order.items %} {% set product = item.product %}
{{ item.qty }} x {{ product.name }} - Réf: {{ product.code }} {{ item.get_total_price()|ttc }}€
{% endfor %}
Transport{{ shipping_fee|ttc }}€
Total{{ order.get_total(with_shipping=True)|ttc }}€
Mode de Paiement{{ order.payment_mean|upper }}
ADRESSE DE FACTURATION

{% for line in billing_address.lines %} {{ line }}
{% endfor %}

INFORMATIONS CLIENT
{{ client.first_name|upper }} {{ client.last_name|upper }}
{{ client.email }}
Compte créé le {% if client.created_on %}{{ client.created_on.strftime("%d/%m/%Y") }}{% endif %}
Commandes validées: {{ client.orders_nb }}
Total payé depuis la création du compte: {{ client.total_payed|ttc }}€
INFORMATIONS TRANSPORT
{{ order.shipping_option }}
ADRESSE DE LIVRAISON

{% for line in delivery_address.lines %} {{ line }}
{% endfor %}

{% endblock %} {% block tail %} {{ super() }} {% endblock %}