Display customer in stock item

This commit is contained in:
Oliver Walters 2020-06-04 19:13:37 +10:00
parent fbd21827fb
commit d907136264

View File

@ -131,6 +131,13 @@ InvenTree | {% trans "Stock Item" %} - {{ item }}
<a href="{% url 'part-stock' item.part.id %}">{{ item.part.full_name }} <a href="{% url 'part-stock' item.part.id %}">{{ item.part.full_name }}
</td> </td>
</tr> </tr>
{% if item.customer %}
<tr>
<td><span class='fas fa-user-tie'></span></td>
<td>{% trans "Customer" %}</td>
<td><a href="{% url 'company-detail' item.customer.id %}">{{ item.customer.name }}</a></td>
</tr>
{% endif %}
{% if item.belongs_to %} {% if item.belongs_to %}
<tr> <tr>
<td><span class='fas fa-box'></span></td> <td><span class='fas fa-box'></span></td>