InvenTree/InvenTree/stock
Oliver 1b421fb59a
Adds 'consumable' field to BomItem model (#2890)
* Adds 'consumable' field to BomItem model

* Add consumable field to API

* Consumable items always count as "allocated" for a build

* Add new BOM fields to BOM item checksum calculation

* Display 'consumable' status in BOM table

* Fix order of database migrations

* Update unit tests

* Fix for BOM table

* Remove "infinite" field from StockItem model

- Not used anywhere for functionality
- Hidden from the user
- Now replaced by the "consumable" concept in the BuildOrder model

* Update build order allocation table display

* Prevent auto-allocation of stock to consumable BOM items

* Ignore consumable BOM items when allocating stock to a build order

* Reimplmement "footer" row for BOM table

* Fix "can_build" calculation

- Ignore "consumable" BOM items

* Unrelated typo fix

* Tweak BOM table

* More visual tweaks to BOM table

* Add unit test for consumable field
2022-09-24 23:45:56 +10:00
..
fixtures Barcode Refactor (#3640) 2022-09-15 14:14:51 +10:00
migrations Adds 'consumable' field to BomItem model (#2890) 2022-09-24 23:45:56 +10:00
templates/stock Barcode Refactor (#3640) 2022-09-15 14:14:51 +10:00
__init__.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
admin.py Merge pull request from GHSA-7rq4-qcpw-74gq 2022-06-15 18:32:35 +10:00
api.py Fix: Treegrid is loading an eternity for huge amounts of data (#3451) 2022-08-05 08:07:12 +10:00
apps.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
filters.py Tree query improvements (#3443) 2022-08-01 13:43:27 +10:00
models.py Adds 'consumable' field to BomItem model (#2890) 2022-09-24 23:45:56 +10:00
serializers.py Barcode Refactor (#3640) 2022-09-15 14:14:51 +10:00
test_api.py Tests/stocklocation and partcategory (#3473) 2022-08-05 10:58:01 +10:00
test_migrations.py Int migration fix (#3323) 2022-07-15 11:57:27 +10:00
test_views.py Null units fix (#3663) 2022-09-08 15:18:43 +10:00
tests.py Path name bug fix (#3694) 2022-09-20 19:02:08 +10:00
urls.py Migrate "Convert to Variant" form to the API (#3183) 2022-06-12 16:06:11 +10:00
views.py Migrate "Convert to Variant" form to the API (#3183) 2022-06-12 16:06:11 +10:00