mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Stock table filters now arranged in alphabetical order
This commit is contained in:
parent
099f56e779
commit
96a3f2920d
@ -32,35 +32,30 @@ function getAvailableTableFilters(tableKey) {
|
|||||||
// Filters for the "Stock" table
|
// Filters for the "Stock" table
|
||||||
if (tableKey == 'stock') {
|
if (tableKey == 'stock') {
|
||||||
return {
|
return {
|
||||||
in_stock: {
|
active: {
|
||||||
type: 'bool',
|
type: 'bool',
|
||||||
title: '{% trans "In Stock" %}',
|
title: '{% trans "Active parts" %}',
|
||||||
description: '{% trans "Show items which are in stock" %}',
|
description: '{% trans "Show stock for active parts" %}',
|
||||||
|
},
|
||||||
|
allocated: {
|
||||||
|
type: 'bool',
|
||||||
|
title: '{% trans "Is allocated" %}',
|
||||||
|
description: '{% trans "Item has been alloacted" %}',
|
||||||
},
|
},
|
||||||
cascade: {
|
cascade: {
|
||||||
type: 'bool',
|
type: 'bool',
|
||||||
title: '{% trans "Include sublocations" %}',
|
title: '{% trans "Include sublocations" %}',
|
||||||
description: '{% trans "Include stock in sublocations" %}',
|
description: '{% trans "Include stock in sublocations" %}',
|
||||||
},
|
},
|
||||||
active: {
|
|
||||||
type: 'bool',
|
|
||||||
title: '{% trans "Active parts" %}',
|
|
||||||
description: '{% trans "Show stock for active parts" %}',
|
|
||||||
},
|
|
||||||
depleted: {
|
depleted: {
|
||||||
type: 'bool',
|
type: 'bool',
|
||||||
title: '{% trans "Depleted" %}',
|
title: '{% trans "Depleted" %}',
|
||||||
description: '{% trans "Show stock items which are depleted" %}',
|
description: '{% trans "Show stock items which are depleted" %}',
|
||||||
},
|
},
|
||||||
status: {
|
in_stock: {
|
||||||
options: stockCodes,
|
|
||||||
title: '{% trans "Stock status" %}',
|
|
||||||
description: '{% trans "Stock status" %}',
|
|
||||||
},
|
|
||||||
allocated: {
|
|
||||||
type: 'bool',
|
type: 'bool',
|
||||||
title: '{% trans "Is allocated" %}',
|
title: '{% trans "In Stock" %}',
|
||||||
description: '{% trans "Item has been alloacted" %}',
|
description: '{% trans "Show items which are in stock" %}',
|
||||||
},
|
},
|
||||||
serialized: {
|
serialized: {
|
||||||
type: 'bool',
|
type: 'bool',
|
||||||
@ -74,6 +69,11 @@ function getAvailableTableFilters(tableKey) {
|
|||||||
title: "{% trans "Serial number LTE" %}",
|
title: "{% trans "Serial number LTE" %}",
|
||||||
description: "{% trans "Serial number less than or equal to" %}",
|
description: "{% trans "Serial number less than or equal to" %}",
|
||||||
},
|
},
|
||||||
|
status: {
|
||||||
|
options: stockCodes,
|
||||||
|
title: '{% trans "Stock status" %}',
|
||||||
|
description: '{% trans "Stock status" %}',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user