InvenTree/docs/docs
Bobbe ae063d2722
Add basic support for scanning vendor barcodes (#5509)
* Add support for scanning digikey and mouser barcodes

* added small fixes if no part is found

* made small style cleanups

* Separate out ecia 2d barcode parser, Add quantity, PO number to response

* Use model instead of name for mouser supplier, add auto detection magic

* Add lcsc barcode support

* Move barcode plugins to new suppliers subdirectory

* Add get_supplier_part helper, Refactor plugins in preparation for #3791

* Add __init__.py to suppliers directory

* Improve formatting

* Add barcode integration tests

* Add api-barcode-po-receive endpoint

* Refactor supplier_barcode.py helpers into BarcodeMixin

* Implement the api-barcode-po-receive endpoint for all suppliers

* Always include lineitem in api response

* Fix location in response, only include quantity and location if set

* Check if barcode has already been assigned, Fix tests

* FIx quantity and location not being in lineitem reponse

* Use part.get_default_location() instead of part.default_location

* Fix fomatting again

* Fix type annotations for python 3.8

* Add get_supplier_part helper, check for barcode_data being a str

* Fix naming clash

* Clarify return type for scan_receive_item

* Improve model access using first() in two places

* Refactor a bunch of checks

* Improve selection of line item, if multiple line items match the SKU

* Add new api version for this PR

* Fix error if no line item exists

* Add debug print to investigate why tests are failing

* Remove the test print again

* Fix pre formatted log messages

* Test removing all plugins

* Test only with digikey plugin

* Test with all plugins, but without mouser "model" setting

* Test again without tests

* Test with simple tests

* Test with simple receive test

* Test with even more receive tests

* Test second receive test

* Test third receive test

* Test 4th receive test with debug prints

* Try deleting the stock item and stock locations

* Disable the test again

* Add SupplierBarcodeMixin to minimize shared code between plugins

* Add TME supplier barcode plugin

* Remove the TME tests again

* If this works the tests are broken, if this doesn't work the tests are broken too

* Add TME tests again

* Add back all tests again

* Fix TME purchase order number

* Fix TME qrcode regex

* Add documentation for this feature

* Fix TME qrcode regex

* Use Decimal instead of int for quantity

* Refactor get_supplier_parts, Add get_supplier method

* Improve docstrings

* Fix None type access

* FIx TME barcode detection, Improve supplier barcode handling

* Try to retrigger pipeline

* Refactor get_supplier_parts to not use lists

* Add DEFAULT_SUPPLIER_NAME to mouser plugin

* Add SUPPLIER_ID setting to other suppliers

* Fix supplier plugins not inheriting from settings mixin

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
2023-10-19 23:28:21 +11:00
..
api Update python.md (#5264) 2023-07-18 09:04:58 +10:00
app Update app docs (#5032) 2023-06-13 21:04:17 +10:00
assets Exchange rate plugin (#5667) 2023-10-05 21:19:28 +11:00
barcodes Add basic support for scanning vendor barcodes (#5509) 2023-10-19 23:28:21 +11:00
build Version bump (#5740) 2023-10-18 07:27:28 +11:00
concepts Add database model for defining custom units (#5268) 2023-07-19 06:24:16 +10:00
develop Add worker task to VS Code (#5605) 2023-10-01 21:06:34 +11:00
extend Fix typo (#5715) 2023-10-17 12:12:22 +11:00
javascripts Documentation integration (#4653) 2023-04-22 22:40:29 +10:00
order Update docs to match reality (#5255) 2023-07-15 23:55:22 +10:00
part Add database model for defining custom units (#5268) 2023-07-19 06:24:16 +10:00
releases Simplify release notes docs (#5063) 2023-06-17 21:56:26 +10:00
report Fix typo (#5715) 2023-10-17 12:12:22 +11:00
settings Exchange rate plugin (#5667) 2023-10-05 21:19:28 +11:00
start Version bump (#5740) 2023-10-18 07:27:28 +11:00
stock Version bump (#5740) 2023-10-18 07:27:28 +11:00
stylesheets [Feature] Scrap Build Outputs (#4800) 2023-05-13 22:19:35 +10:00
webfonts Documentation integration (#4653) 2023-04-22 22:40:29 +10:00
__init__.py Fixes for docs building (#4659) 2023-04-22 23:35:25 +10:00
credits.md Fix common spelling mistakes (#4956) 2023-06-04 00:04:52 +10:00
demo.md Documentation integration (#4653) 2023-04-22 22:40:29 +10:00
faq.md Improve devdocs (#4813) 2023-06-09 10:16:30 +10:00
features.md Company docs updates (#4710) 2023-04-27 22:27:21 +10:00
hooks.py refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
index.md Documentation integration (#4653) 2023-04-22 22:40:29 +10:00
privacy.md Documentation integration (#4653) 2023-04-22 22:40:29 +10:00