mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Enable ordering for purchase order list
This commit is contained in:
parent
2e7abf8a1e
commit
847fda7652
2 changed files with 14 additions and 0 deletions
|
|
@ -58,6 +58,17 @@ class _PaginatedPurchaseOrderListState extends PaginatedSearchState<PaginatedPur
|
|||
// Purchase order prefix
|
||||
String _poPrefix = "";
|
||||
|
||||
@override
|
||||
String get prefix => "po_";
|
||||
|
||||
@override
|
||||
Map<String, String> get orderingOptions => {
|
||||
"reference": L10().reference,
|
||||
"supplier__name": L10().supplier,
|
||||
"status": L10().status,
|
||||
"target_date": L10().targetDate,
|
||||
};
|
||||
|
||||
@override
|
||||
Future<InvenTreePageResponse?> requestPage(int limit, int offset, Map<String, String> params) async {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue