2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-15 11:45:31 +00:00

Determine if project codes are supported

This commit is contained in:
Oliver Walters
2023-04-21 19:37:36 +10:00
parent 95573a2784
commit f253234b94

View File

@ -300,6 +300,9 @@ class InvenTreeAPI {
// Order barcodes API v107 or newer
bool get supportsOrderBarcodes => isConnected() && apiVersion >= 107;
// Project codes require v109 or newer
bool get supportsProjectCodes => isConnected() && apiVersion >= 109;
// Are plugins enabled on the server?
bool _pluginsEnabled = false;