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: {
|
params: {
|
||||||
location_detail: true,
|
location_detail: true,
|
||||||
part_detail: true,
|
part_detail: true,
|
||||||
|
supplier_part_detail: true,
|
||||||
build: {{ build.id }},
|
build: {{ build.id }},
|
||||||
},
|
},
|
||||||
groupByField: 'location',
|
groupByField: 'location',
|
||||||
|
@ -29,6 +29,7 @@ loadStockTable($("#stock-table"), {
|
|||||||
params: {
|
params: {
|
||||||
customer: {{ company.id }},
|
customer: {{ company.id }},
|
||||||
part_detail: true,
|
part_detail: true,
|
||||||
|
supplier_part_detail: true,
|
||||||
location_detail: true,
|
location_detail: true,
|
||||||
},
|
},
|
||||||
url: "{% url 'api-stock-list' %}",
|
url: "{% url 'api-stock-list' %}",
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
company: {{ company.id }},
|
company: {{ company.id }},
|
||||||
part_detail: true,
|
part_detail: true,
|
||||||
supplier_detail: true,
|
supplier_detail: true,
|
||||||
|
supplier_part_detail: true,
|
||||||
location_detail: true,
|
location_detail: true,
|
||||||
},
|
},
|
||||||
buttons: [
|
buttons: [
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
supplier_part: {{ part.id }},
|
supplier_part: {{ part.id }},
|
||||||
location_detail: true,
|
location_detail: true,
|
||||||
part_detail: false,
|
part_detail: false,
|
||||||
|
supplier_part_detail: true,
|
||||||
},
|
},
|
||||||
groupByField: 'location',
|
groupByField: 'location',
|
||||||
buttons: ['#stock-options'],
|
buttons: ['#stock-options'],
|
||||||
|
@ -26,6 +26,7 @@ loadStockTable($("#stock-table"), {
|
|||||||
purchase_order: {{ order.id }},
|
purchase_order: {{ order.id }},
|
||||||
part_detail: true,
|
part_detail: true,
|
||||||
supplier_detail: true,
|
supplier_detail: true,
|
||||||
|
supplier_part_detail: true,
|
||||||
location_detail: true,
|
location_detail: true,
|
||||||
},
|
},
|
||||||
buttons: [
|
buttons: [
|
||||||
|
@ -31,6 +31,7 @@ loadStockTable($("#stock-table"), {
|
|||||||
params: {
|
params: {
|
||||||
location_detail: true,
|
location_detail: true,
|
||||||
part_detail: false,
|
part_detail: false,
|
||||||
|
supplier_part_detail: true,
|
||||||
ancestor: {{ item.id }},
|
ancestor: {{ item.id }},
|
||||||
},
|
},
|
||||||
name: 'item-childs',
|
name: 'item-childs',
|
||||||
|
@ -265,6 +265,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
part_detail: true,
|
part_detail: true,
|
||||||
location_detail: true,
|
location_detail: true,
|
||||||
|
supplier_part_detail: true,
|
||||||
},
|
},
|
||||||
url: "{% url 'api-stock-list' %}",
|
url: "{% url 'api-stock-list' %}",
|
||||||
});
|
});
|
||||||
|
@ -134,6 +134,7 @@ addHeaderAction('stock-to-build', '{% trans "Required for Build Orders" %}', 'fa
|
|||||||
loadStockTable($('#table-recently-updated-stock'), {
|
loadStockTable($('#table-recently-updated-stock'), {
|
||||||
params: {
|
params: {
|
||||||
part_detail: true,
|
part_detail: true,
|
||||||
|
supplier_part_detail: true,
|
||||||
ordering: "-updated",
|
ordering: "-updated",
|
||||||
max_results: {% settings_value "STOCK_RECENT_COUNT" %},
|
max_results: {% settings_value "STOCK_RECENT_COUNT" %},
|
||||||
},
|
},
|
||||||
@ -151,6 +152,7 @@ loadStockTable($("#table-expired-stock"), {
|
|||||||
expired: true,
|
expired: true,
|
||||||
location_detail: true,
|
location_detail: true,
|
||||||
part_detail: true,
|
part_detail: true,
|
||||||
|
supplier_part_detail: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -160,6 +162,7 @@ loadStockTable($("#table-stale-stock"), {
|
|||||||
expired: false,
|
expired: false,
|
||||||
location_detail: true,
|
location_detail: true,
|
||||||
part_detail: true,
|
part_detail: true,
|
||||||
|
supplier_part_detail: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user