mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-01 17:41:33 +00:00
- Fixed URL / view (use class views) - Better slug lookup - Better table rendering using ol' mate bootstrap
36 lines
877 B
HTML
36 lines
877 B
HTML
{% extends "part/part_base.html" %}
|
|
|
|
{% block details %}
|
|
|
|
{% include 'part/tabs.html' with tab='stock' %}
|
|
|
|
<br>
|
|
Total in stock: {{ part.stock }}
|
|
<br>
|
|
|
|
<table class="table table-striped">
|
|
<tr>
|
|
<th>Quantity</th>
|
|
<th>Location</th>
|
|
<th>Supplier part</th>
|
|
<th>Stocktake</th>
|
|
<th>Notes</th>
|
|
</tr>
|
|
{% for stock in part.locations.all %}
|
|
<tr>
|
|
<td>{{ stock.quantity }}</td>
|
|
<td><a href="/stock/list/?location={{ stock.location.id }}">{{ stock.location.name }}</a></td>
|
|
<td>
|
|
{% if stock.supplier_part %}
|
|
<a href="{% url 'supplier-part-detail' stock.supplier_part.id %}">
|
|
{{ stock.supplier_part.supplier.name }} | {{ stock.supplier_part.SKU }}
|
|
</a>
|
|
{% endif %}
|
|
</td>
|
|
<td>{% if stock.stocktake_date %}{{ stock.stocktake_date }}{% endif %}</td>
|
|
<td>{{ stock.notes }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
{% endblock %} |