Fix Docker setup: add gunicorn, fix permissions, update docker-compose and entrypoint, add deployment instructions
This commit is contained in:
@@ -187,7 +187,7 @@
|
||||
<th>Себестоимость:</th>
|
||||
<td>
|
||||
<strong class="fs-5">{{ product.cost_price }} руб.</strong>
|
||||
{% if product.cost_price_details.batches %}
|
||||
{% if cost_price_details.batches %}
|
||||
<button class="btn btn-sm btn-outline-info ms-2" type="button" data-bs-toggle="collapse" data-bs-target="#costDetails" aria-expanded="false" aria-controls="costDetails">
|
||||
<i class="bi bi-info-circle"></i> Детали расчета
|
||||
</button>
|
||||
@@ -196,7 +196,7 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% if product.cost_price_details.batches %}
|
||||
{% if cost_price_details.batches %}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div class="collapse" id="costDetails">
|
||||
@@ -206,13 +206,13 @@
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-6">
|
||||
<div class="alert alert-info mb-0">
|
||||
<small><strong>Кешированная стоимость:</strong> {{ product.cost_price_details.cached_cost }} руб.</small>
|
||||
<small><strong>Кешированная стоимость:</strong> {{ cost_price_details.cached_cost }} руб.</small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="alert alert-{% if product.cost_price_details.is_synced %}success{% else %}warning{% endif %} mb-0">
|
||||
<small><strong>Рассчитанная стоимость:</strong> {{ product.cost_price_details.calculated_cost }} руб.</small>
|
||||
{% if not product.cost_price_details.is_synced %}
|
||||
<div class="alert alert-{% if cost_price_details.is_synced %}success{% else %}warning{% endif %} mb-0">
|
||||
<small><strong>Рассчитанная стоимость:</strong> {{ cost_price_details.calculated_cost }} руб.</small>
|
||||
{% if not cost_price_details.is_synced %}
|
||||
<br><small class="text-danger">⚠ Требуется синхронизация!</small>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -231,7 +231,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for batch in product.cost_price_details.batches %}
|
||||
{% for batch in cost_price_details.batches %}
|
||||
<tr>
|
||||
<td>{{ batch.warehouse_name }}</td>
|
||||
<td class="text-end">{{ batch.quantity }}</td>
|
||||
@@ -244,9 +244,9 @@
|
||||
<tfoot class="table-secondary">
|
||||
<tr>
|
||||
<th>Итого:</th>
|
||||
<th class="text-end">{{ product.cost_price_details.total_quantity }}</th>
|
||||
<th class="text-end">{{ cost_price_details.total_quantity }}</th>
|
||||
<th class="text-end" colspan="3">
|
||||
<strong>Средневзвешенная: {{ product.cost_price_details.calculated_cost }} руб.</strong>
|
||||
<strong>Средневзвешенная: {{ cost_price_details.calculated_cost }} руб.</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
Reference in New Issue
Block a user