mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add lookup-by-sn on part page, too
This commit is contained in:
parent
98bbee8159
commit
e96ff7fbba
@ -322,7 +322,14 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><span class='fas fa-hashtag'></span></td>
|
<td><span class='fas fa-hashtag'></span></td>
|
||||||
<td>{% trans "Latest Serial Number" %}</td>
|
<td>{% trans "Latest Serial Number" %}</td>
|
||||||
<td>{{ part.getLatestSerialNumber }}{% include "clip.html"%}</td>
|
<td>
|
||||||
|
{{ part.getLatestSerialNumber }}
|
||||||
|
<div class='btn-group float-right' role='group'>
|
||||||
|
<a class='btn btn-small btn-outline-secondary text-sm' href='#' id='serial-number-search' title='{% trans "Search for serial number" %}'>
|
||||||
|
<span class='fas fa-search'></span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if part.default_location %}
|
{% if part.default_location %}
|
||||||
@ -577,4 +584,8 @@
|
|||||||
$('#collapse-part-details').collapse('show');
|
$('#collapse-part-details').collapse('show');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('#serial-number-search').click(function() {
|
||||||
|
findStockItemBySerialNumber({{ part.pk }});
|
||||||
|
});
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user