Default filters (#755)

* Bug fix for filters

- Fix key shadowing

* Adjust default filters for stock list

* Adjust default filter values

* Add "active" filter for stock items

* Code formatting

* Add "default ordering" option

* Enable pathstring sorting

* dart format
This commit is contained in:
Oliver 2026-01-20 09:11:40 +11:00 committed by GitHub
parent 74f468dc1b
commit 97e4c98e46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 33 additions and 13 deletions

View file

@ -52,10 +52,14 @@ class _PaginatedStockLocationListState
@override
Map<String, String> get orderingOptions => {
"name": L10().name,
"pathstring": L10().path,
"items": L10().stockItems,
"level": L10().level,
};
@override
String get defaultOrdering => "pathstring";
@override
Map<String, Map<String, dynamic>> get filterOptions => {
"cascade": {