You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix unit conversion: EL/TL/Prise/Bund support, proper kg↔g deduction
units.ts:
- EL/Esslöffel → 15ml, TL/Teelöffel → 5ml, Prise → 0.5g, Bund → 1 Stück
- Now "2 EL Olivenöl" correctly matches inventory "500 ml Olivenöl"
/api/recipes/cook:
- Full unit conversion before deduction (was comparing raw numbers)
- 1kg recipe vs 1000g inventory now correctly deducts 1000g
- Convert back to original unit after deduction for DB consistency
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments