2
0
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:
Oliver
2023-04-05 22:43:29 +10:00
committed by GitHub
parent fb0a383fff
commit f7d3315c99
2 changed files with 40 additions and 2 deletions

View File

@ -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;