2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 10:45:29 +00:00

Add sorting options for the StockItem list

This commit is contained in:
Oliver Walters
2022-07-06 21:07:19 +10:00
parent 6192932322
commit a450154bac
3 changed files with 26 additions and 0 deletions

View File

@ -50,6 +50,15 @@ class _PaginatedPartCategoryListState extends PaginatedSearchState<PaginatedPart
_PaginatedPartCategoryListState(Map<String, String> filters) : super(filters);
@override
String get prefix => "category_";
@override
Map<String, String> get orderingOptions => {
"name": L10().name,
"level": L10().level,
};
@override
Future<InvenTreePageResponse?> requestPage(int limit, int offset, Map<String, String> params) async {