2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-10-24 09:57:40 +00:00

Allow adjument of build outputs (#10600)

* Auto-select location

* Allow stock adjustments for "in production" items

* Tweak stock move check

* Allow splitting of production stock

* Update CHANGELOG.md
This commit is contained in:
Oliver
2025-10-17 11:53:51 +11:00
committed by GitHub
parent 485aa6324c
commit 759c882a95
4 changed files with 10 additions and 5 deletions

View File

@@ -712,6 +712,9 @@ function stockTransferFields(items: any[]): ApiFormFieldSet {
const records = Object.fromEntries(items.map((item) => [item.pk, item]));
// Extract all location values from the items
const locations = [...new Set(items.map((item) => item.location))];
const fields: ApiFormFieldSet = {
items: {
field_type: 'table',
@@ -740,6 +743,7 @@ function stockTransferFields(items: any[]): ApiFormFieldSet {
]
},
location: {
value: locations.length === 1 ? locations[0] : undefined,
filters: {
structural: false
}