Название сделки: {{ deal.name }}

Дата создания: {{ now().strftime("%d.%m.%Y, %H:%M") }}
Текущий статус: {{ current_status_str }}
{% if deal.comment %} Комментарий к сделке: {{ deal.comment }} {% endif %}

Клиент: {{ deal.client.name }}
Дата отгрузки: {{ last_status.next_status_deadline.strftime("%d.%m.%Y") }}
{% if deal.base_marketplace.name %}
Маркетплейс: {{ deal.base_marketplace.name }}
{% endif %} {% if deal.shipping_warehouse.name %}
Склад отгрузки: {{ deal.shipping_warehouse.name }}
{% endif %} {% if deal.services|length > 0 %} {% for service in deal.services %} {% endfor %}
Общие услуги Количество Сумма
{{ service.service.name }} {{ '{:,}'.format(service.quantity) }} шт. {{ '{:,}'.format(service.price * service.quantity).replace(',', ' ') }} Р
Итого: {{ general_services_total }} Р
{% else %}
{% endif %}