mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
Sort currency API
This commit is contained in:
@ -15,6 +15,9 @@
|
||||
|
||||
$("#currency-table").bootstrapTable({
|
||||
url: "{% url 'api-currency-list' %}",
|
||||
queryParams: {
|
||||
ordering: 'suffix'
|
||||
},
|
||||
sortable: true,
|
||||
search: true,
|
||||
formatNoMatches: function() { return "No currencies found"; },
|
||||
@ -38,14 +41,17 @@
|
||||
{
|
||||
field: 'suffix',
|
||||
title: 'Currency',
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
field: 'description',
|
||||
title: 'Description',
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
field: 'value',
|
||||
title: 'Value',
|
||||
sortable: true,
|
||||
}
|
||||
]
|
||||
});
|
||||
|
Reference in New Issue
Block a user