mirror of
https://github.com/inventree/InvenTree.git
synced 2025-09-13 14:11:37 +00:00
[refactor] Stock return API endpoints (#10132)
* Add "StockReturn" API endpoint - Provide multiple items - Provide quantity for each item * Add frontend form * update frontend forms * Refactor frontend * Allow splitting quantity * Refactoring backend endpoints * cleanup * Update unit test * unit tests * Bump API version * Fix unit test * Add tests for returning build items to stock * Playwright tests * Enhanced unit tests * Add docs
This commit is contained in:
BIN
docs/docs/assets/images/build/build_return_stock.png
Normal file
BIN
docs/docs/assets/images/build/build_return_stock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 103 KiB |
BIN
docs/docs/assets/images/build/build_return_stock_dialog.png
Normal file
BIN
docs/docs/assets/images/build/build_return_stock_dialog.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
@@ -146,6 +146,16 @@ The *Consumed Stock* tab displays all stock items which have been *consumed* by
|
||||
!!! info "No BOM"
|
||||
If the part being built does not have a BOM, then the *Consumed Stock* tab will not be displayed.
|
||||
|
||||
#### Return to Stock
|
||||
|
||||
After stock items have been *consumed* by a build order, it may be required to recover some of that stock back into the inventory. This can be done by selecting the desired items, and pressing the *Return to Stock* button:
|
||||
|
||||
{{ image("build/build_return_stock.png", title="Return Stock") }}
|
||||
|
||||
This will open the following dialog, which allows the user to specify the quantity of stock to return, and the location where the stock should be returned:
|
||||
|
||||
{{ image("build/build_return_stock_dialog.png", title="Return Stock Dialog") }}
|
||||
|
||||
### Incomplete Outputs
|
||||
|
||||
The *Incomplete Outputs* panel shows the list of in-progress [build outputs](./output.md) (created stock items) associated with this build.
|
||||
|
Reference in New Issue
Block a user