mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Make part variant table columns sortable (#4004)
(cherry picked from commit f71081ccb5
)
This commit is contained in:
parent
7e21e77c5f
commit
aa9836e88e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user