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

Use 'on_order' count in calculation for parts we need to order

This commit is contained in:
Oliver Walters
2019-06-10 23:05:14 +10:00
parent 04a9b1a980
commit 3954b33fb7
3 changed files with 7 additions and 3 deletions

View File

@ -2,16 +2,18 @@
<tr>
<th>Part</th>
<th>Description</th>
<th>Required</th>
<th>In Stock</th>
<th>Allocated</th>
<th>On Order</th>
<th>Net Stock</th>
</tr>
{% for part in parts %}
<tr>
<td><a href="{% url 'part-detail' part.id %}">{{ part.full_name }}</a></td>
<td>{{ part.description }}</td>
<td>{{ part.total_stock }}</td>
<td>{{ part.allocation_count }}</td>
<td>{{ part.total_stock }}</td>
<td>{{ part.on_order }}</td>
<td>{{ part.available_stock }}</td>
</tr>
{% endfor %}