mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-13 10:45:29 +00:00
Support barcode scan for purchase order (#298)
* Add functions for determining API support levels * Handle scanning of purchase orders
This commit is contained in:
12
lib/api.dart
12
lib/api.dart
@ -282,6 +282,18 @@ class InvenTreeAPI {
|
||||
// Consolidated search request API v102 or newer
|
||||
bool get supportsConsolidatedSearch => isConnected() && apiVersion >= 102;
|
||||
|
||||
// ReturnOrder supports API v104 or newer
|
||||
bool get supportsReturnOrders => isConnected() && apiVersion >= 104;
|
||||
|
||||
// Status label endpoints API v105 or newer
|
||||
bool get supportsStatusLabelEndpoints => isConnected() && apiVersion >= 105;
|
||||
|
||||
// Regex search API v106 or newer
|
||||
bool get supportsRegexSearch => isConnected() && apiVersion >= 106;
|
||||
|
||||
// Order barcodes API v107 or newer
|
||||
bool get supportsOrderBarcodes => isConnected() && apiVersion >= 107;
|
||||
|
||||
// Are plugins enabled on the server?
|
||||
bool _pluginsEnabled = false;
|
||||
|
||||
|
Reference in New Issue
Block a user