2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-02-25 16:17:58 +00:00

Purchase price ordering (#11379)

* Support ordering stock by purchase price

* Enhanced error output

* Bump API version
This commit is contained in:
Oliver
2026-02-19 20:58:11 +11:00
committed by GitHub
parent 3dbe168939
commit 4e1862a860
3 changed files with 6 additions and 2 deletions

View File

@@ -1,11 +1,14 @@
"""InvenTree API version information.""" """InvenTree API version information."""
# InvenTree API version # InvenTree API version
INVENTREE_API_VERSION = 453 INVENTREE_API_VERSION = 454
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about.""" """Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
INVENTREE_API_TEXT = """ INVENTREE_API_TEXT = """
v454 -> 2026-02-19 : https://github.com/inventree/InvenTree/pull/11379
- Adds "purchase_price" ordering option to StockItem API endpoint
v453 -> 2026-02-11 : https://github.com/inventree/InvenTree/pull/11244 v453 -> 2026-02-11 : https://github.com/inventree/InvenTree/pull/11244
- Adds (internal) endpoint to end a observability tooling session - Adds (internal) endpoint to end a observability tooling session

View File

@@ -1278,6 +1278,7 @@ class StockList(
'part__name', 'part__name',
'part__IPN', 'part__IPN',
'updated', 'updated',
'purchase_price',
'stocktake_date', 'stocktake_date',
'expiry_date', 'expiry_date',
'packaging', 'packaging',

View File

@@ -487,7 +487,7 @@ export function InvenTreeTable<T extends Record<string, any>>({
setSortStatus(status); setSortStatus(status);
if (!status.columnAccessor) { if (!status.columnAccessor) {
console.error('Invalid column accessor provided for table sorting'); console.error(`Invalid column accessor provided for table ${cacheKey}`);
} }
setTableSorting(cacheKey)(status); setTableSorting(cacheKey)(status);