Enhance RecipePreview and RecipesService with additional inventory item properties and conversion logic

This commit is contained in:
Nils-Johan Gynther
2026-04-09 22:09:19 +02:00
parent 4fd3c8dc20
commit 29910130f0
3 changed files with 41 additions and 18 deletions
+2
View File
@@ -221,6 +221,8 @@ export class RecipesService {
quantity: item.quantity,
unit: item.unit,
location: item.location,
brand: item.brand || null,
bestBeforeDate: item.bestBeforeDate || null,
})),
otherInventoryItems: otherUnitItems.map((item: any) => {
// Kolla om konvertering är möjlig (samma enhetskategori)