fix(dashboard): Fix broken number input in adjust inventory form (#10416)

This commit is contained in:
Kasper Fabricius Kristensen
2024-12-03 18:36:20 +01:00
committed by GitHub
parent 4e7d242a78
commit 18583ed567
4 changed files with 80 additions and 27 deletions
@@ -3267,6 +3267,27 @@
],
"additionalProperties": false
},
"adjustInventory": {
"type": "object",
"properties": {
"errors": {
"type": "object",
"properties": {
"stockedQuantity": {
"type": "string"
}
},
"required": [
"stockedQuantity"
],
"additionalProperties": false
}
},
"required": [
"errors"
],
"additionalProperties": false
},
"toast": {
"type": "object",
"properties": {
@@ -3300,6 +3321,7 @@
"editItemDetails",
"create",
"reservation",
"adjustInventory",
"toast"
],
"additionalProperties": false
@@ -790,6 +790,11 @@
"quantityOutOfRange": "Minimum quantity is 1 and maximum quantity is {{max}}"
}
},
"adjustInventory": {
"errors": {
"stockedQuantity": "Stocked quantity cannot be updated to less than the reserved quantity of {{quantity}}."
}
},
"toast": {
"updateLocations": "Locations updated successfully.",
"updateLevel": "Inventory level updated successfully.",