diet.odb (26.8 KB) [fixed, 3rd version]
Download and open the document, open the input form therein.
The input form stores recipe names in the yellow table, ingredients of the selected meal in the green table (including a quantity factor).
The upper white boxes show the nutrition values of a recipe, the boxes right of the ingredient list shows the details of the selected ingredient.
2025-01-21: 3rd version fixed another bug in the form (too hasty, too late in the evening).
The form has 5 sections now:
- Enter name and multi-line description of a meal (yellow).
- Enter quantities and select ingredients of the selected meal (green).
- View and edit details of a selected ingredient.
- Show nutritional values calculated for the whole meal with button for manual update (white).
- A form to add new ingredients (white, top-right).
When the listbox in form 2 lacks some ingredient, you can add one or more new ingredients with names and values in the top-right form. Then focus the listbox in the green form and update the listbox by pushing the second refresh button on the fixed navigation bar above the green form. Now you have the new ingredient in the listbox to be assigned to your meals.
I added a simple report as well. It presents all meals with ingredients, values and sums of values in a printable Writer layout.