mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Adds a "stock items" view for a part category
- Shows any stock items for parts which exist in (or under) the selected category
This commit is contained in:
parent
86c7417296
commit
39a77f7f3a
@ -187,6 +187,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class='panel panel-hidden' id='panel-stock'>
|
||||||
|
<div class='panel-heading'>
|
||||||
|
<h4>{% trans "Stock Items" %}</h4>
|
||||||
|
</div>
|
||||||
|
<div class='panel-content'>
|
||||||
|
{% include "stock_table.html" %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class='panel panel-hidden' id='panel-parameters'>
|
<div class='panel panel-hidden' id='panel-parameters'>
|
||||||
<div class='panel-heading'>
|
<div class='panel-heading'>
|
||||||
<h4>{% trans "Part Parameters" %}</h4>
|
<h4>{% trans "Part Parameters" %}</h4>
|
||||||
@ -223,6 +232,21 @@
|
|||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|
||||||
{% if category %}
|
{% if category %}
|
||||||
|
|
||||||
|
onPanelLoad('stock', function() {
|
||||||
|
loadStockTable(
|
||||||
|
$('#stock-table'),
|
||||||
|
{
|
||||||
|
params: {
|
||||||
|
category: {{ category.pk }},
|
||||||
|
part_detail: true,
|
||||||
|
location_detail: true,
|
||||||
|
supplier_part_detail: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
onPanelLoad('parameters', function() {
|
onPanelLoad('parameters', function() {
|
||||||
loadParametricPartTable(
|
loadParametricPartTable(
|
||||||
"#parametric-part-table",
|
"#parametric-part-table",
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
{% include "sidebar_link.html" with url=url text=text icon="fa-file-upload" %}
|
{% include "sidebar_link.html" with url=url text=text icon="fa-file-upload" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if category %}
|
{% if category %}
|
||||||
|
{% trans "Stock Items" as text %}
|
||||||
|
{% include "sidebar_item.html" with label='stock' text=text icon='fa-boxes' %}
|
||||||
{% trans "Parameters" as text %}
|
{% trans "Parameters" as text %}
|
||||||
{% include "sidebar_item.html" with label="parameters" text=text icon="fa-tasks" %}
|
{% include "sidebar_item.html" with label="parameters" text=text icon="fa-tasks" %}
|
||||||
{% endif %}
|
{% endif %}
|
Loading…
x
Reference in New Issue
Block a user