feat: tech specification for a group of deals
This commit is contained in:
@@ -1,62 +1,67 @@
|
||||
<!--#region Header -->
|
||||
<div class="deal-name-id-container">
|
||||
<div class="medium-text bold">
|
||||
Название сделки: {{ data.deal.name }}
|
||||
<div style="page-break-inside: avoid">
|
||||
{% if index != 0 %}
|
||||
<hr/>
|
||||
{% endif %}
|
||||
<div class="deal-name-id-container">
|
||||
<div class="medium-text bold">
|
||||
Название сделки: {{ deal.name }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr/>
|
||||
<div class="medium-text">
|
||||
Дата создания: {{ now().strftime("%d.%m.%Y, %H:%M") }}
|
||||
</div>
|
||||
<div class="medium-text">
|
||||
Текущий статус: {{ data.current_status_str }}
|
||||
</div>
|
||||
<div class="medium-text">
|
||||
{% if data.deal.comment %}
|
||||
Комментарий к сделке: {{ data.deal.comment }}
|
||||
{% endif %}
|
||||
</div>
|
||||
<hr/>
|
||||
<!--#endregion -->
|
||||
<!--#region General services -->
|
||||
<div class="large-text bold">
|
||||
Клиент: {{ data.deal.client.name }}
|
||||
</div>
|
||||
<div class="medium-text bold">
|
||||
<hr/>
|
||||
<div class="medium-text">
|
||||
Дата создания: {{ now().strftime("%d.%m.%Y, %H:%M") }}
|
||||
</div>
|
||||
<div class="medium-text">
|
||||
Текущий статус: {{ data.deal_status_str[deal.current_status] }}
|
||||
</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">
|
||||
|
||||
Дата отгрузки:
|
||||
{% if data.deal.delivery_date %}
|
||||
{{ data.deal.delivery_date.strftime("%d.%m.%Y") }}
|
||||
Дата отгрузки:
|
||||
{% if deal.delivery_date %}
|
||||
{{ deal.delivery_date.strftime("%d.%m.%Y") }}
|
||||
{% else %}
|
||||
Не указана
|
||||
{% endif %}
|
||||
</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 style="margin-bottom: 40px">
|
||||
<thead>
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
Не указана
|
||||
<div style="margin-bottom: 40px"></div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if data.deal.base_marketplace.name %}
|
||||
<div class="medium-text bold">Маркетплейс: {{ data.deal.base_marketplace.name }}</div>
|
||||
{% endif %}
|
||||
{% if data.deal.shipping_warehouse.name %}
|
||||
<div class="medium-text bold">Склад отгрузки: {{ data.deal.shipping_warehouse.name }}</div>
|
||||
{% endif %}
|
||||
{% if data.deal.services|length > 0 %}
|
||||
<table style="margin-bottom: 40px">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Общие услуги</th>
|
||||
<th>Количество</th>
|
||||
</tr>
|
||||
<tfoot>
|
||||
</tfoot>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for service in data.deal.services %}
|
||||
<tr>
|
||||
<td>{{ service.service.name }}</td>
|
||||
<td>{{ '{:,}'.format(service.quantity) }} шт.</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<div style="margin-bottom: 40px"></div>
|
||||
{% endif %}
|
||||
<!--#endregion -->
|
||||
Reference in New Issue
Block a user