mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-06 10:21:18 +00:00
Fix default ordering for build orders (#3626)
- Order by reference - Show "newer" references first
This commit is contained in:
1 parent
7f5f101323
commit
0150afd7a7
2 files changed
+4
-2
No files matched your search
@@ -100,6 +100,8 @@ class BuildList(APIDownloadMixin, ListCreateAPI):
|
||||
'reference': ['reference_int', 'reference'],
|
||||
}
|
||||
|
||||
ordering = '-reference'
|
||||
|
||||
search_fields = [
|
||||
'reference',
|
||||
'title',
|
||||
|
||||
@@ -292,7 +292,7 @@ class PurchaseOrderList(APIDownloadMixin, ListCreateAPI):
|
||||
'status',
|
||||
]
|
||||
|
||||
ordering = '-creation_date'
|
||||
ordering = '-reference'
|
||||
|
||||
|
||||
class PurchaseOrderDetail(RetrieveUpdateDestroyAPI):
|
||||
@@ -733,7 +733,7 @@ class SalesOrderList(APIDownloadMixin, ListCreateAPI):
|
||||
'customer_reference',
|
||||
]
|
||||
|
||||
ordering = '-creation_date'
|
||||
ordering = '-reference'
|
||||
|
||||
|
||||
class SalesOrderDetail(RetrieveUpdateDestroyAPI):
|
||||
|
||||
Reference in new issue
Block a user