feat: spacers between barcodes of diff products, avoid product cut in deal document, deal document refactoring
This commit is contained in:
		
							
								
								
									
										62
									
								
								templates/documents/deal/deal-services.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										62
									
								
								templates/documents/deal/deal-services.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,62 @@
 | 
			
		||||
<!--#region Header  -->
 | 
			
		||||
<div class="deal-name-id-container">
 | 
			
		||||
    <div class="medium-text bold">
 | 
			
		||||
        Название сделки: {{ deal.name }}
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
<hr/>
 | 
			
		||||
<div class="medium-text">
 | 
			
		||||
    Дата создания: {{ now().strftime("%d.%m.%Y, %H:%M") }}
 | 
			
		||||
</div>
 | 
			
		||||
<div class="medium-text">
 | 
			
		||||
    Текущий статус: {{ current_status_str }}
 | 
			
		||||
</div>
 | 
			
		||||
<div class="medium-text">
 | 
			
		||||
    {% if deal.comment %}
 | 
			
		||||
        Комментарий к сделке: {{ deal.comment }}
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</div>
 | 
			
		||||
<hr/>
 | 
			
		||||
<!--#endregion -->
 | 
			
		||||
<!--#region General services -->
 | 
			
		||||
<div class="large-text bold">
 | 
			
		||||
    Клиент: {{ deal.client.name }}
 | 
			
		||||
</div>
 | 
			
		||||
<div class="medium-text bold">
 | 
			
		||||
    Дата отгрузки: {{ last_status.next_status_deadline.strftime("%d.%m.%Y") }}
 | 
			
		||||
</div>
 | 
			
		||||
{% if deal.base_marketplace.name %}
 | 
			
		||||
    <div class="medium-text bold">Маркетплейс: {{ deal.base_marketplace.name }}</div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% if deal.shipping_warehouse.name %}
 | 
			
		||||
    <div class="medium-text bold">Склад отгрузки: {{ deal.shipping_warehouse.name }}</div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% if deal.services|length > 0 %}
 | 
			
		||||
    <table>
 | 
			
		||||
        <thead>
 | 
			
		||||
        <tr>
 | 
			
		||||
            <th>Общие услуги</th>
 | 
			
		||||
            <th>Количество</th>
 | 
			
		||||
            <th>Сумма</th>
 | 
			
		||||
        </tr>
 | 
			
		||||
        <tfoot>
 | 
			
		||||
        </tfoot>
 | 
			
		||||
        </thead>
 | 
			
		||||
        <tbody>
 | 
			
		||||
        {% for service in deal.services %}
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>{{ service.service.name }}</td>
 | 
			
		||||
                <td>{{ '{:,}'.format(service.quantity) }} шт.</td>
 | 
			
		||||
                <td>{{ '{:,}'.format(service.price * service.quantity).replace(',', ' ') }} Р</td>
 | 
			
		||||
            </tr>
 | 
			
		||||
        {% endfor %}
 | 
			
		||||
        </tbody>
 | 
			
		||||
    </table>
 | 
			
		||||
    <div class="medium-text total align-right bold">
 | 
			
		||||
        Итого: {{ general_services_total }} Р
 | 
			
		||||
    </div>
 | 
			
		||||
{% else %}
 | 
			
		||||
    <div class="medium-text total align-right bold">
 | 
			
		||||
    </div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
<!--#endregion -->
 | 
			
		||||
		Reference in New Issue
	
	Block a user