fetching supplier part for stock tables

This commit is contained in:
Matthias 2021-07-04 23:45:04 +02:00
parent 20b0e399c0
commit eaf191dc8d
8 changed files with 10 additions and 0 deletions

View File

@ -72,6 +72,7 @@ loadStockTable($("#stock-table"), {
params: {
location_detail: true,
part_detail: true,
supplier_part_detail: true,
build: {{ build.id }},
},
groupByField: 'location',

View File

@ -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' %}",

View File

@ -24,6 +24,7 @@
company: {{ company.id }},
part_detail: true,
supplier_detail: true,
supplier_part_detail: true,
location_detail: true,
},
buttons: [

View File

@ -23,6 +23,7 @@
supplier_part: {{ part.id }},
location_detail: true,
part_detail: false,
supplier_part_detail: true,
},
groupByField: 'location',
buttons: ['#stock-options'],

View File

@ -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: [

View File

@ -31,6 +31,7 @@ loadStockTable($("#stock-table"), {
params: {
location_detail: true,
part_detail: false,
supplier_part_detail: true,
ancestor: {{ item.id }},
},
name: 'item-childs',

View File

@ -265,6 +265,7 @@
{% endif %}
part_detail: true,
location_detail: true,
supplier_part_detail: true,
},
url: "{% url 'api-stock-list' %}",
});

View File

@ -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 %}