Building context menu for purchase order line item

This commit is contained in:
Oliver committed 2021-10-02 11:53:45 +10:00
1 parent d433e6327b
commit 86584b366f
4 files changed
+50 -2

No files matched your search

+6
View File
@@ -244,6 +244,12 @@ class InvenTreeAPI {
// Ensure we only ever create a single instance of the API class
static final InvenTreeAPI _api = InvenTreeAPI._internal();
bool supportPoReceive() {
// API endpoint for receiving purchase order line items was introduced in v12
return _apiVersion >= 12;
}
/*
* Connect to the remote InvenTree server:
*