{% extends "base.html" %} {% block content %}
Партнер: {{ order.partner_name }}
Дата заказа: {{ order.order_date }}
{% 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 %}
№ Товар Количество Цена за ед. Базовая сумма Сумма с наценкой 10%
{{ loop.index }} {{ item.product_name }} {{ item.quantity }} {{ "%.2f"|format(item.price) }} ₽ {{ "%.2f"|format(item.base_subtotal) }} ₽ {{ "%.2f"|format(item.subtotal_with_markup) }} ₽
Итого без наценки: {{ "%.2f"|format(order.subtotal_without_markup) }} ₽
Наценка 10%: +{{ "%.2f"|format(order.subtotal_with_markup - order.subtotal_without_markup) }} ₽
Сумма с наценкой: {{ "%.2f"|format(order.subtotal_with_markup) }} ₽
Скидка ({{ order.discount_desc }}): -{{ "%.2f"|format(order.discount_amount) }} ₽
ИТОГО К ОПЛАТЕ: {{ "%.2f"|format(order.total) }} ₽
{% else %}

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

{% endif %}
{% endblock %}