InvenTree/InvenTree/company
Oliver 397419f365
Build consume stock (#4817)
* Adds "consumed_by" field to the StockItem model.

- Points to a BuildOrder instance which "consumed" this stock
- Marks item as unavailable
- Allows filtering against build order

* Allow API filtering

* Adds table of "consumed stock items" to build order page

* Update stock table to show "consumed by" stock status

* Add "consumed_by" link to stock item detail

* Optionally add 'buildorder' details to installStockItem method

* Update methodology for completing a build item

- Instead of deleting stock, mark as "consumed by"

* Fix history entry for splitting stock

* Bug fix

* track "consumed_by" field for tracked items also

* Update build docs

* Update allocation documentation

* Update terminology.md

* Unit test updates

* Fix conflicting migrations

* revert change
2023-05-16 21:25:02 +10:00
..
fixtures Add flag to API which allows using pack size (#4741) 2023-05-13 21:32:25 +10:00
migrations Allow tag fields to be empty (#4816) 2023-05-15 10:57:12 +10:00
templates/company Build consume stock (#4817) 2023-05-16 21:25:02 +10:00
__init__.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
admin.py Code style improvements (#4683) 2023-04-28 20:49:53 +10:00
api.py Add 'Tag' management (#4367) 2023-05-04 09:02:48 +10:00
apps.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
models.py Allow tag fields to be empty (#4816) 2023-05-15 10:57:12 +10:00
serializers.py Add 'Tag' management (#4367) 2023-05-04 09:02:48 +10:00
test_api.py [Feature] Add RMA support (#4488) 2023-03-29 10:35:43 +11:00
test_migrations.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
test_views.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
tests.py Metadata fix (#4725) 2023-05-05 14:06:19 +10:00
urls.py [Feature] Add RMA support (#4488) 2023-03-29 10:35:43 +11:00
views.py Client side QR Codes (#4357) 2023-02-17 13:33:36 +11:00