mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix default ordering for build orders (#3626)
- Order by reference - Show "newer" references first
This commit is contained in:
parent
7f5f101323
commit
0150afd7a7
@ -100,6 +100,8 @@ class BuildList(APIDownloadMixin, ListCreateAPI):
|
|||||||
'reference': ['reference_int', 'reference'],
|
'reference': ['reference_int', 'reference'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ordering = '-reference'
|
||||||
|
|
||||||
search_fields = [
|
search_fields = [
|
||||||
'reference',
|
'reference',
|
||||||
'title',
|
'title',
|
||||||
|
@ -292,7 +292,7 @@ class PurchaseOrderList(APIDownloadMixin, ListCreateAPI):
|
|||||||
'status',
|
'status',
|
||||||
]
|
]
|
||||||
|
|
||||||
ordering = '-creation_date'
|
ordering = '-reference'
|
||||||
|
|
||||||
|
|
||||||
class PurchaseOrderDetail(RetrieveUpdateDestroyAPI):
|
class PurchaseOrderDetail(RetrieveUpdateDestroyAPI):
|
||||||
@ -733,7 +733,7 @@ class SalesOrderList(APIDownloadMixin, ListCreateAPI):
|
|||||||
'customer_reference',
|
'customer_reference',
|
||||||
]
|
]
|
||||||
|
|
||||||
ordering = '-creation_date'
|
ordering = '-reference'
|
||||||
|
|
||||||
|
|
||||||
class SalesOrderDetail(RetrieveUpdateDestroyAPI):
|
class SalesOrderDetail(RetrieveUpdateDestroyAPI):
|
||||||
|
Loading…
Reference in New Issue
Block a user