mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-05 14:57:59 +00:00
Determine if project codes are supported
This commit is contained in:
1 parent
95573a2784
commit
f253234b94
1 file changed
+3
@@ -300,6 +300,9 @@ class InvenTreeAPI {
|
|||||||
// Order barcodes API v107 or newer
|
// Order barcodes API v107 or newer
|
||||||
bool get supportsOrderBarcodes => isConnected() && apiVersion >= 107;
|
bool get supportsOrderBarcodes => isConnected() && apiVersion >= 107;
|
||||||
|
|
||||||
|
// Project codes require v109 or newer
|
||||||
|
bool get supportsProjectCodes => isConnected() && apiVersion >= 109;
|
||||||
|
|
||||||
// Are plugins enabled on the server?
|
// Are plugins enabled on the server?
|
||||||
bool _pluginsEnabled = false;
|
bool _pluginsEnabled = false;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user