Specify sale value in inventory
This commit is contained in:
1 parent
18012d081a
commit
85218c6120
1 file changed
+5
-4
@@ -18,32 +18,33 @@
|
|||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Sist oppdatert</th>
|
|
||||||
<th>Vare</th>
|
<th>Vare</th>
|
||||||
<th>Beholdning</th>
|
<th>Beholdning</th>
|
||||||
<th>Pris (intern)</th>
|
<th>Pris (intern)</th>
|
||||||
<th>Verdi</th>
|
<th>Salgsverdi (intern)</th>
|
||||||
<th>I salg</th>
|
<th>I salg</th>
|
||||||
|
<th>Sist oppdatert</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for product in products %}
|
{% for product in products %}
|
||||||
<tr class="{% if not product.active %}info inactive{% elif product.inventory_amount <= 0 %}warning{% else %}success{% endif %}">
|
<tr class="{% if not product.active %}info inactive{% elif product.inventory_amount <= 0 %}warning{% else %}success{% endif %}">
|
||||||
<td>{{ product.updated }}</td>
|
|
||||||
<td>{{ product.name }}</td>
|
<td>{{ product.name }}</td>
|
||||||
<td class="product-amount">{{ product.inventory_amount }}</td>
|
<td class="product-amount">{{ product.inventory_amount }}</td>
|
||||||
<td>{{ product.sale_price_int }}</td>
|
<td>{{ product.sale_price_int }}</td>
|
||||||
<td>{{ product.inventory_value }}</td>
|
<td>{{ product.inventory_value }}</td>
|
||||||
<td class="product-active">{% if product.active %}<i class="glyphicon glyphicon-ok"></i>{% endif %}</td>
|
<td class="product-active">{% if product.active %}<i class="glyphicon glyphicon-ok"></i>{% endif %}</td>
|
||||||
|
<td>{{ product.updated }}</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><em>Sum</em></td>
|
<td><em>Sum</em></td>
|
||||||
<td></td>
|
|
||||||
<td> {{ num_products }}</td>
|
<td> {{ num_products }}</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><b>{{ inventory_value }}</b></td>
|
<td><b>{{ inventory_value }}</b></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in new issue
Block a user