mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-13 10:45:29 +00:00
Filter fix (#473)
* Add check for "null" top level locations and categories * Fix API - Top level location and category broken after API 174 - Ref: https://github.com/inventree/InvenTree/pull/6536
This commit is contained in:
@ -339,6 +339,9 @@ class InvenTreeAPI {
|
||||
// Does the server support allocating stock to sales order using barcodes?
|
||||
bool get supportsBarcodeSOAllocateEndpoint => isConnected() && apiVersion >= 160;
|
||||
|
||||
// Does the server support "null" top-level filtering for PartCategory and StockLocation endpoints?
|
||||
bool get supportsNullTopLevelFiltering => isConnected() && apiVersion < 174;
|
||||
|
||||
// Cached list of plugins (refreshed when we connect to the server)
|
||||
List<InvenTreePlugin> _plugins = [];
|
||||
|
||||
|
Reference in New Issue
Block a user