mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Tweaks for part page(s)
This commit is contained in:
parent
d68b51e007
commit
f988c9af87
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user