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
..
2023-04-22 22:40:29 +10:00
2023-04-27 22:27:21 +10:00
2023-05-16 21:25:02 +10:00
2023-05-05 23:59:30 +10:00
2023-04-27 22:27:21 +10:00
2023-04-27 22:27:21 +10:00
2023-04-28 06:54:31 +10:00
2023-05-12 17:13:48 +10:00
2023-04-22 23:35:25 +10:00
2023-04-22 22:40:29 +10:00
2023-04-22 22:40:29 +10:00
2023-04-27 22:27:21 +10:00
2023-04-22 22:40:29 +10:00
2023-04-22 22:40:29 +10:00
2023-04-22 22:40:29 +10:00
2023-05-16 21:25:02 +10:00