mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +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:
parent
fb0a383fff
commit
f7d3315c99
2 changed files with 40 additions and 2 deletions
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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue