2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Display 'net stock' value on front page

This commit is contained in:
Oliver Walters
2019-06-11 21:58:20 +10:00
parent 50bab299c5
commit 8e82488f70
3 changed files with 20 additions and 3 deletions

View File

@ -2,9 +2,9 @@
<tr>
<th>Part</th>
<th>Description</th>
<th>Required</th>
<th>In Stock</th>
<th>On Order</th>
<th>Allocted</th>
<th>Net Stock</th>
</tr>
{% for part in parts %}
@ -14,10 +14,10 @@
<a href="{% url 'part-detail' part.id %}">{{ part.full_name }}</a>
</td>
<td>{{ part.description }}</td>
<td>{{ part.allocation_count }}</td>
<td>{{ part.total_stock }}</td>
<td>{{ part.on_order }}</td>
<td>{{ part.available_stock }}</td>
<td>{{ part.allocation_count }}</td>
<td{% if part.net_stock < 0 %} class='red-cell'{% endif %}>{{ part.net_stock }}</td>
</tr>
{% endfor %}
</table>