Display 'take_from' location on build detail page

This commit is contained in:
Oliver Walters 2019-05-10 19:07:38 +10:00
parent 3588161632
commit bbf46c4580

View File

@ -45,6 +45,16 @@ InvenTree | Build - {{ build }}
<tr> <tr>
<td>Quantity</td><td>{{ build.quantity }}</td> <td>Quantity</td><td>{{ build.quantity }}</td>
</tr> </tr>
<tr>
<td>Stock Source</td>
<td>
{% if build.take_from %}
<a href="{% url 'stock-location-detail' build.take_from.id %}">{{ build.take_from }}</a>
{% else %}
Stock can be taken from any available location.
{% endif %}
</td>
</tr>
<tr> <tr>
<td>Status</td><td>{% include "build_status.html" with build=build %}</td> <td>Status</td><td>{% include "build_status.html" with build=build %}</td>
</tr> </tr>