mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 19:46:25 +00:00
Determine if project codes are supported
This commit is contained in:
parent
95573a2784
commit
f253234b94
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue