feat: products table in bill of payment
This commit is contained in:
@@ -39,10 +39,38 @@
|
||||
</h2>
|
||||
<hr/>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Артикул</th>
|
||||
{% if is_size_needed %}
|
||||
<th>Размер</th>
|
||||
{% endif %}
|
||||
<th style="white-space: nowrap">Кол-во</th>
|
||||
<th>Цена</th>
|
||||
<th>Сумма</th>
|
||||
</tr>
|
||||
<tfoot>
|
||||
</tfoot>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for product in products %}
|
||||
<tr>
|
||||
<td>{{ product.article }}</td>
|
||||
{% if is_size_needed %}
|
||||
<td>{{ product.size }}</td>
|
||||
{% endif %}
|
||||
<td>{{ '{:,}'.format(product.quantity) }} шт.</td>
|
||||
<td>{{ '{:,}'.format(product.price).replace(',', ' ') }} ₽</td>
|
||||
<td>{{ '{:,}'.format(product.price * product.quantity).replace(',', ' ') }} ₽</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<table style="margin-top: 10px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Наименование товара (работы, услуги)</th>
|
||||
<th>Количество</th>
|
||||
<th style="white-space: nowrap">Кол-во</th>
|
||||
<th>Цена</th>
|
||||
<th>Сумма</th>
|
||||
</tr>
|
||||
@@ -53,9 +81,9 @@
|
||||
{% for service in services %}
|
||||
<tr>
|
||||
<td>{{ service.name }}</td>
|
||||
<td>{{ '{:,}'.format(service.amount) }} шт.</td>
|
||||
<td>{{ '{:,}'.format(service.quantity) }} шт.</td>
|
||||
<td>{{ '{:,}'.format(service.price).replace(',', ' ') }} ₽</td>
|
||||
<td>{{ '{:,}'.format(service.price * service.amount).replace(',', ' ') }} ₽</td>
|
||||
<td>{{ '{:,}'.format(service.price * service.quantity).replace(',', ' ') }} ₽</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user