diff --git a/InvenTree/templates/js/translated/bom.js b/InvenTree/templates/js/translated/bom.js index eb5da71bb7..ee45ac2d9c 100644 --- a/InvenTree/templates/js/translated/bom.js +++ b/InvenTree/templates/js/translated/bom.js @@ -1086,7 +1086,8 @@ function loadBomTable(table, options={}) { } if (any_pricing) { - var html = formatCurrency(min_price) + ' - ' + formatCurrency(max_price); + + var html = formatPriceRange(min_price, max_price); if (complete_pricing) { html += makeIconBadge( diff --git a/InvenTree/templates/js/translated/part.js b/InvenTree/templates/js/translated/part.js index fed831e571..90a075aca6 100644 --- a/InvenTree/templates/js/translated/part.js +++ b/InvenTree/templates/js/translated/part.js @@ -710,6 +710,7 @@ function loadPartVariantTable(table, partId, options={}) { field: 'name', title: '{% trans "Name" %}', switchable: false, + sortable: true, formatter: function(value, row) { var html = ''; @@ -760,10 +761,12 @@ function loadPartVariantTable(table, partId, options={}) { { field: 'IPN', title: '{% trans "IPN" %}', + sortable: true, }, { field: 'revision', title: '{% trans "Revision" %}', + sortable: true, }, { field: 'description', @@ -772,6 +775,7 @@ function loadPartVariantTable(table, partId, options={}) { { field: 'in_stock', title: '{% trans "Stock" %}', + sortable: true, formatter: function(value, row) { var base_stock = row.in_stock;