mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 04:56:45 +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>
|
<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>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Part</th>
|
<th>Part</th>
|
||||||
|
@ -10,7 +10,11 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th data-sortable='false'>Link</th>
|
<th data-sortable='false'>Link</th>
|
||||||
|
{% if part.trackable %}
|
||||||
|
<th>Serial Number</th>
|
||||||
|
{% else %}
|
||||||
<th>Quantity</th>
|
<th>Quantity</th>
|
||||||
|
{% endif %}
|
||||||
<th>Location</th>
|
<th>Location</th>
|
||||||
<th>Supplier part</th>
|
<th>Supplier part</th>
|
||||||
<th>Stocktake</th>
|
<th>Stocktake</th>
|
||||||
@ -21,7 +25,13 @@
|
|||||||
{% for stock in part.locations.all %}
|
{% for stock in part.locations.all %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{% url 'stock-item-detail' stock.id %}">Click</a></td>
|
<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>
|
<td>
|
||||||
{% if stock.location %}
|
{% if stock.location %}
|
||||||
<a href="{% url 'stock-location-detail' stock.location.id %}">{{ stock.location.name }}</a>
|
<a href="{% url 'stock-location-detail' stock.location.id %}">{{ stock.location.name }}</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user