mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
Show recently updated stock items on the index page
This commit is contained in:
parent
949a541ee0
commit
571a03043e
@ -125,8 +125,19 @@ loadSimplePartTable("#table-bom-validation", "{% url 'api-part-list' %}", {
|
|||||||
|
|
||||||
{% if roles.stock.view %}
|
{% if roles.stock.view %}
|
||||||
addHeaderTitle('{% trans "Stock" %}');
|
addHeaderTitle('{% trans "Stock" %}');
|
||||||
|
addHeaderAction('recently-updated-stock', '{% trans "Recently Updated" %}', 'fa-clock');
|
||||||
addHeaderAction('low-stock', '{% trans "Low Stock" %}', 'fa-shopping-cart');
|
addHeaderAction('low-stock', '{% trans "Low Stock" %}', 'fa-shopping-cart');
|
||||||
addHeaderAction('stock-to-build', '{% trans "Required for Build Orders" %}', 'fa-bullhorn');
|
addHeaderAction('stock-to-build', '{% trans "Required for Build Orders" %}', 'fa-bullhorn');
|
||||||
|
|
||||||
|
loadStockTable($('#table-recently-updated-stock'), {
|
||||||
|
params: {
|
||||||
|
ordering: "-updated",
|
||||||
|
limit: 10,
|
||||||
|
},
|
||||||
|
name: 'recently-updated-stock',
|
||||||
|
grouping: false,
|
||||||
|
});
|
||||||
|
|
||||||
{% settings_value "STOCK_ENABLE_EXPIRY" as expiry %}
|
{% settings_value "STOCK_ENABLE_EXPIRY" as expiry %}
|
||||||
{% if expiry %}
|
{% if expiry %}
|
||||||
addHeaderAction('expired-stock', '{% trans "Expired Stock" %}', 'fa-calendar-times');
|
addHeaderAction('expired-stock', '{% trans "Expired Stock" %}', 'fa-calendar-times');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user