Display part stock in build detail window

This commit is contained in:
Oliver 2018-04-28 23:32:03 +10:00
parent 8d0789c37c
commit 55310be393

View File

@ -42,7 +42,7 @@
<tr>
<th>Part</th>
<th>Required</th>
<th>Available</th>
<th>Stock</th>
</tr>
</thead>
<tbody>
@ -50,7 +50,7 @@
<tr>
<td><a href="{% url 'part-detail' item.sub_part.id %}">{{ item.sub_part.name }}</a></td>
<td>{{ build.quantity }} &times {{ item.quantity }}</td>
<td>{{ item.sub_part.available_stock }}</td>
<td>{{ item.sub_part.total_stock }}</td>
</tr>
{% endfor %}
</tbody>