Tweaks for part page(s)

This commit is contained in:
Oliver 2018-04-30 01:16:57 +10:00
parent d68b51e007
commit f988c9af87
2 changed files with 12 additions and 2 deletions

View File

@ -13,7 +13,7 @@
<h3>Bill of Materials</h3>
<table class="table table-striped" id='bom-table' data-sorting='true'>
<table class="table table-striped" id='bom-table' data-filtering='true' data-sorting='true'>
<thead>
<tr>
<th>Part</th>

View File

@ -10,7 +10,11 @@
<thead>
<tr>
<th data-sortable='false'>Link</th>
{% if part.trackable %}
<th>Serial Number</th>
{% else %}
<th>Quantity</th>
{% endif %}
<th>Location</th>
<th>Supplier part</th>
<th>Stocktake</th>
@ -21,7 +25,13 @@
{% for stock in part.locations.all %}
<tr>
<td><a href="{% url 'stock-item-detail' stock.id %}">Click</a></td>
<td>{{ stock.quantity }}</td>
<td>
{% if part.trackable %}
{{ stock.serial }}
{% else %}
{{ stock.quantity }}
{% endif %}
</td>
<td>
{% if stock.location %}
<a href="{% url 'stock-location-detail' stock.location.id %}">{{ stock.location.name }}</a>