Fixed recipe consume stock fulfillment checking (frontend and API) (fixes #1781)

This commit is contained in:
Bernd Bestel
2022-02-12 22:08:10 +01:00
parent 8e3a9d6c04
commit 1344e84534
4 changed files with 79 additions and 8 deletions

View File

@@ -0,0 +1,55 @@
> ⚠️ xxxBREAKING CHANGESxxx
> ❗ xxxImportant upgrade informationXXX
### New feature: xxxx
- xxx
### Stock
- xxx
### Shopping list
- xxx
### Recipes
- Fixed that consuming recipes was possible when not all ingredients were in-stock (and this potentially consumed some of the in-stock ingredients; not matching the message "nothing removed")
### Meal plan
- xxx
### Chores
- xxx
### Calendar
- xxx
### Tasks
- xxx
### Batteries
- xxx
### Equipment
- xxx
### Userfields
- xxx
### General
- xxx
### API
- Endpoint `/recipes/{recipeId}/consume`: Fixed that consuming partially fulfilled recipes was possible, although an error was already returned in that case (and potentially some of the in-stock ingredients were consumed in fact)