Computes a flat shopping list from the current menu, recipes and purchase state.
Iterates over non-cooked menu items, looks up each recipe and accumulates
ingredient quantities (multiplied by the menu item count). Duplicate
ingredient names across recipes are merged into a single entry. Quantities
are parsed to numbers via parseQuantity, summed numerically and formatted
once at the end (rounded to six decimals to avoid binary floating point
artifacts). Ingredients that never carry a quantity keep an empty string
rather than "0".
Computes a flat shopping list from the current menu, recipes and purchase state.
Iterates over non-cooked menu items, looks up each recipe and accumulates ingredient quantities (multiplied by the menu item count). Duplicate ingredient names across recipes are merged into a single entry. Quantities are parsed to numbers via
parseQuantity, summed numerically and formatted once at the end (rounded to six decimals to avoid binary floating point artifacts). Ingredients that never carry a quantity keep an empty string rather than"0".