diff --git a/InvenTree/part/templates/part/allocation.html b/InvenTree/part/templates/part/allocation.html
index 6d2826775e..e78456ea3a 100644
--- a/InvenTree/part/templates/part/allocation.html
+++ b/InvenTree/part/templates/part/allocation.html
@@ -8,43 +8,30 @@
{% endblock %}
{% block heading %}
-{% trans "Part Stock Allocations" %}
+{% trans "Build Order Allocations" %}
{% endblock %}
{% block details %}
-
{% trans "Build Order Allocations" %}
-
-{% trans "Sales Order Allocations" %}
+{% endblock %}
-
+{% block pre_content_panel %}
-
+
+
+
{% trans "Sales Order Allocations" %}
+
+
+
+
{% endblock %}
+
{% block js_ready %}
{{ block.super }}
@@ -54,21 +41,10 @@
}
});
- $("#build-table").inventreeTable({
- columns: [
- {
- title: '{% trans "Order" %}',
- sortable: true,
- },
- {
- title: '{% trans "Stock Item" %}',
- sortable: true,
- },
- {
- title: '{% trans "Quantity" %}',
- sortable: true,
- }
- ]
+ loadBuildOrderAllocationTable("#build-order-table", {
+ params: {
+ part: {{ part.id }},
+ }
});
{% endblock %}
diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html
index 2e1cb2e71f..7e1d33bdea 100644
--- a/InvenTree/part/templates/part/part_base.html
+++ b/InvenTree/part/templates/part/part_base.html
@@ -195,8 +195,13 @@
+{% block pre_content_panel %}
+
+{% endblock %}
+
+
{% block heading %}
@@ -210,7 +215,11 @@
{% endblock %}
+
+{% block post_content_panel %}
+
+{% endblock %}
{% endblock %}
diff --git a/InvenTree/templates/js/build.js b/InvenTree/templates/js/build.js
index ab787e207d..e8af981817 100644
--- a/InvenTree/templates/js/build.js
+++ b/InvenTree/templates/js/build.js
@@ -177,6 +177,8 @@ function loadBuildOrderAllocationTable(table, options={}) {
queryParams: filters,
name: 'buildorderallocation',
groupBy: false,
+ search: false,
+ paginationVAlign: 'bottom',
original: options.params,
formatNoMatches: function() {
return '{% trans "No build order allocations found" %}'
@@ -189,6 +191,7 @@ function loadBuildOrderAllocationTable(table, options={}) {
},
{
field: 'build',
+ switchable: false,
title: '{% trans "Build Order" %}',
formatter: function(value, row) {
var prefix = "{% settings_value 'BUILDORDER_REFERENCE_PREFIX' %}";
diff --git a/InvenTree/templates/js/order.js b/InvenTree/templates/js/order.js
index acfec1b7da..649357b083 100644
--- a/InvenTree/templates/js/order.js
+++ b/InvenTree/templates/js/order.js
@@ -337,6 +337,8 @@ function loadSalesOrderAllocationTable(table, options={}) {
queryParams: filters,
name: 'salesorderallocation',
groupBy: false,
+ search: false,
+ paginationVAlign: 'bottom',
original: options.params,
formatNoMatches: function() { return '{% trans "No sales order allocations found" %}'; },
columns: [
@@ -347,6 +349,7 @@ function loadSalesOrderAllocationTable(table, options={}) {
},
{
field: 'order',
+ switchable: false,
title: '{% trans "Order" %}',
switchable: false,
formatter: function(value, row) {
diff --git a/InvenTree/templates/js/tables.js b/InvenTree/templates/js/tables.js
index 26d7ee4da9..645e54fcbb 100644
--- a/InvenTree/templates/js/tables.js
+++ b/InvenTree/templates/js/tables.js
@@ -135,7 +135,7 @@ $.fn.inventreeTable = function(options) {
// Pagingation options (can be server-side or client-side as specified by the caller)
options.pagination = true;
- options.paginationVAlign = 'both';
+ options.paginationVAlign = options.paginationVAlign || 'both';
options.pageSize = inventreeLoad(varName, 25);
options.pageList = [25, 50, 100, 250, 'all'];
options.totalField = 'count';