mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fetching supplier part for stock tables
This commit is contained in:
parent
20b0e399c0
commit
eaf191dc8d
@ -72,6 +72,7 @@ loadStockTable($("#stock-table"), {
|
||||
params: {
|
||||
location_detail: true,
|
||||
part_detail: true,
|
||||
supplier_part_detail: true,
|
||||
build: {{ build.id }},
|
||||
},
|
||||
groupByField: 'location',
|
||||
|
@ -29,6 +29,7 @@ loadStockTable($("#stock-table"), {
|
||||
params: {
|
||||
customer: {{ company.id }},
|
||||
part_detail: true,
|
||||
supplier_part_detail: true,
|
||||
location_detail: true,
|
||||
},
|
||||
url: "{% url 'api-stock-list' %}",
|
||||
|
@ -24,6 +24,7 @@
|
||||
company: {{ company.id }},
|
||||
part_detail: true,
|
||||
supplier_detail: true,
|
||||
supplier_part_detail: true,
|
||||
location_detail: true,
|
||||
},
|
||||
buttons: [
|
||||
|
@ -23,6 +23,7 @@
|
||||
supplier_part: {{ part.id }},
|
||||
location_detail: true,
|
||||
part_detail: false,
|
||||
supplier_part_detail: true,
|
||||
},
|
||||
groupByField: 'location',
|
||||
buttons: ['#stock-options'],
|
||||
|
@ -26,6 +26,7 @@ loadStockTable($("#stock-table"), {
|
||||
purchase_order: {{ order.id }},
|
||||
part_detail: true,
|
||||
supplier_detail: true,
|
||||
supplier_part_detail: true,
|
||||
location_detail: true,
|
||||
},
|
||||
buttons: [
|
||||
|
@ -31,6 +31,7 @@ loadStockTable($("#stock-table"), {
|
||||
params: {
|
||||
location_detail: true,
|
||||
part_detail: false,
|
||||
supplier_part_detail: true,
|
||||
ancestor: {{ item.id }},
|
||||
},
|
||||
name: 'item-childs',
|
||||
|
@ -265,6 +265,7 @@
|
||||
{% endif %}
|
||||
part_detail: true,
|
||||
location_detail: true,
|
||||
supplier_part_detail: true,
|
||||
},
|
||||
url: "{% url 'api-stock-list' %}",
|
||||
});
|
||||
|
@ -134,6 +134,7 @@ addHeaderAction('stock-to-build', '{% trans "Required for Build Orders" %}', 'fa
|
||||
loadStockTable($('#table-recently-updated-stock'), {
|
||||
params: {
|
||||
part_detail: true,
|
||||
supplier_part_detail: true,
|
||||
ordering: "-updated",
|
||||
max_results: {% settings_value "STOCK_RECENT_COUNT" %},
|
||||
},
|
||||
@ -151,6 +152,7 @@ loadStockTable($("#table-expired-stock"), {
|
||||
expired: true,
|
||||
location_detail: true,
|
||||
part_detail: true,
|
||||
supplier_part_detail: true,
|
||||
},
|
||||
});
|
||||
|
||||
@ -160,6 +162,7 @@ loadStockTable($("#table-stale-stock"), {
|
||||
expired: false,
|
||||
location_detail: true,
|
||||
part_detail: true,
|
||||
supplier_part_detail: true,
|
||||
},
|
||||
});
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user