mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-06 23:32:11 +00:00
Remove support for legacy stock transfer API code
- Relies on modern API now - Checks for error messages against hidden fields in stock items
This commit is contained in:
1 parent
55f713e3aa
commit
850c2b8c12
5 files changed
+189
-353
No files matched your search
+1
-4
@@ -144,7 +144,7 @@ class InvenTreeAPI {
|
||||
InvenTreeAPI._internal();
|
||||
|
||||
// Minimum required API version for server
|
||||
static const _minApiVersion = 7;
|
||||
static const _minApiVersion = 20;
|
||||
|
||||
bool _strictHttps = false;
|
||||
|
||||
@@ -294,9 +294,6 @@ class InvenTreeAPI {
|
||||
// API endpoint for receiving purchase order line items was introduced in v12
|
||||
bool get supportsPoReceive => apiVersion >= 12;
|
||||
|
||||
// "Modern" API transactions were implemented in API v14
|
||||
bool get supportsModernStockTransactions => apiVersion >= 14;
|
||||
|
||||
/*
|
||||
* Connect to the remote InvenTree server:
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user