{% extends "base.html" %} {% block content %}
Партнер: {{ order.partner_name }}
Дата заказа: {{ order.order_date }}
Статус: {{ order.status }}
{% if order.notes %}
Примечания: {{ order.notes }}
{% endif %}

Состав заказа

{% if order.items and order.items|length > 0 %} {% for item in order.items %} {% endfor %} {% if order.discount_percent and order.discount_percent > 0 %} {% endif %}
№ Товар Количество Цена за ед. Сумма
{{ loop.index }} {{ item.product_name }} {{ item.quantity }} {{ "%.2f"|format(item.price) }} ₽ {{ "%.2f"|format(item.subtotal) }} ₽
Сумма без скидки: {{ "%.2f"|format(order.subtotal) }} ₽
Скидка ({{ order.discount_desc }}): -{{ "%.2f"|format(order.discount_amount) }} ₽
ИТОГО: {{ "%.2f"|format(order.total) }} ₽
{% else %}

В заказе нет товаров

Добавить товары
{% endif %}
{% endblock %}