Fix state changes on stock items (#7976)

* Revert changes from https://github.com/inventree/InvenTree/pull/7965

* Add error handling for wrong key

* Add e2e test case for error condition
Fixes #7964

* Better code code / flow

* [BUG] Order of states in schema descriptions is not stable
Fixes #7977
This commit is contained in:
Matthias Mair
2024-08-24 09:18:09 +10:00
committed by GitHub
parent df8efa902e
commit ed2da62a46
4 changed files with 30 additions and 14 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ export function useStockFields({
value: batchCode,
onValueChange: (value) => setBatchCode(value)
},
status: {},
status_custom_key: {},
expiry_date: {
// TODO: icon
},