InvenTree/docs/docs
Oliver e93d9c4a74
Batch code generation (#7000)
* Refactor framework for generating batch codes

- Provide additional kwargs to plugin
- Move into new file
- Error handling

* Implement API endpoint for generating a new batch code

* Fixes

* Refactor into stock.generators

* Fix API endpoint

* Pass time context through to plugins

* Generate batch code when receiving items

* Create useGenerator hook

- Build up a dataset and query server whenever it changes
- Look for result in response data
- For now, just used for generating batch codes
- may be used for more in the future

* Refactor PurchaseOrderForms to use new generator hook

* Refactor StockForms implementation

* Remove dead code

* add OAS diff

* fix ref

* fix ref again

* wrong branch, sorry

* Update src/frontend/src/hooks/UseGenerator.tsx

Co-authored-by: Lukas <76838159+wolflu05@users.noreply.github.com>

* Bump API version

* Do not override batch code if already generated

* Add serial number generator

- Move to /generate/ API endpoint
- Move batch code generator too

* Update PUI endpoints

* Add debouncing to useGenerator hook

* Refactor useGenerator func

* Add serial number generator to stock form

* Add batch code genereator to build order form

* Update buildfields

* Use build batch code when creating new output

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
Co-authored-by: Lukas <76838159+wolflu05@users.noreply.github.com>
2024-05-20 23:56:45 +10:00
..
api Render API docs (#6463) 2024-03-02 11:28:37 +11:00
app Sales order barcode allocate (#6072) 2023-12-14 11:13:50 +11:00
assets Adds "active" field for Company model (#7024) 2024-04-20 23:18:25 +10: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 Feet and inches (#6674) 2024-03-12 03:04:10 +00:00
develop Docs: Update plugins and compose (#7263) 2024-05-20 14:02:27 +10:00
extend Batch code generation (#7000) 2024-05-20 23:56:45 +10:00
javascripts Documentation integration (#4653) 2023-04-22 22:40:29 +10:00
order Adds "active" field for Company model (#7024) 2024-04-20 23:18:25 +10:00
part Render API docs (#6463) 2024-03-02 11:28:37 +11:00
releases Render API docs (#6463) 2024-03-02 11:28:37 +11:00
report Update broken links (#7019) 2024-04-17 19:42:59 +10:00
settings SSO config docs (#6297) 2024-01-20 15:31:17 +11:00
start Nginx example (#7207) 2024-05-13 14:15:45 +10:00
stock Render API docs (#6463) 2024-03-02 11:28:37 +11:00
stylesheets Render API docs (#6463) 2024-03-02 11:28:37 +11: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 Remove coveralls integration (#7099) 2024-04-23 08:42:31 +10:00
demo.md Documentation integration (#4653) 2023-04-22 22:40:29 +10:00
faq.md Pin hashes in requirements (#7081) 2024-04-23 17:15:52 +10:00
features.md Company docs updates (#4710) 2023-04-27 22:27:21 +10:00
hooks.py [CI] docstrings (#6172) 2024-01-11 14:40:07 +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
security.md Remove coveralls integration (#7099) 2024-04-23 08:42:31 +10:00