{% if index != 0 %}
        
    {% endif %}
    
        
            Название сделки: {{ deal.name }}
        
     
    
    
        Дата создания: {{ now().strftime("%d.%m.%Y, %H:%M") }}
    
    
        Текущий статус: {{ data.deal_status_str[deal.current_status] }}
    
    
        {% if deal.comment %}
            Комментарий к сделке: {{ deal.comment }}
        {% endif %}
    
    
    
    
    
        Клиент: {{ deal.client.name }}
    
    
        Дата отгрузки:
        {% if deal.delivery_date %}
            {{ deal.delivery_date.strftime("%d.%m.%Y") }}
        {% else %}
            Не указана
        {% endif %}
    
    {% 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 %}
                
                    | {{ service.service.name }} | 
                    {{ '{:,}'.format(service.quantity) }} шт. | 
                
            {% endfor %}
            
        
    {% else %}
        
    {% endif %}