2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 10:45:29 +00:00

Po barcode scan (#458)

* Refactor existing barcode scan endpoint

- Break out into new file just for purchase orders

* Handle scanning of salesorder

* Add new handler for adding items to PO via barcode

* Allocate with barcode

* Add new string
This commit is contained in:
Oliver
2023-11-20 23:48:42 +11:00
committed by GitHub
parent 0a85441131
commit bf3df770c7
8 changed files with 250 additions and 114 deletions

View File

@ -330,8 +330,12 @@ class InvenTreeAPI {
// Does the server support extra fields on stock adjustment actions?
bool get supportsStockAdjustExtraFields => isConnected() && apiVersion >= 133;
// Does the server support receiving items against a PO using barcodes?
bool get supportsBarcodePOReceiveEndpoint => isConnected() && apiVersion >= 139;
// Does the server support adding line items to a PO using barcodes?
bool get supportsBarcodePOAddLineEndpoint => isConnected() && apiVersion >= 153;
// Cached list of plugins (refreshed when we connect to the server)
List<InvenTreePlugin> _plugins = [];