Order {{ order.id }}
{% if (current_user.id == order.courrier_id or current_user.is_admin()) and not order.stoptime -%}
Close
{%- endif %}
Courrier: {{ order.courrier.username }}
{% if order.courrier == None %}
Volunteer
{% endif %}
Location:
{{ order.location.name }}
Starttime: {{ order.starttime }}
Stoptime: {{ order.stoptime }}
Total price: {{ total_price|euro }}
Orders
{% for item in order.orders %}
{{ item.user.username }} - {{ item.food.name }} - {{ item.food.price|euro }}
{% if item.can_delete(order.id, current_user.id) -%}
{%- endif %}
{% endfor %}
Debts
{% for key, value in total_payments.items() %}
{{ key.username }} - {{ value|euro }}
{% endfor %}