Checking Recipe Calculations
The system calculates results based on the calculations defined in the Configure Recipe Calculations app.
Prerequisites
The administrator has configured the necessary calculations in the Configure Recipe Calculations app. For more information, see Configuring Recipe Calculations.
Calculation Types
You can view calculation results for the following calculation types in a recipe. The available calculations and their order in the dropdown list are defined by your administrator in the Configure Recipe Calculations app.
Ingredients
The system uses this calculation type to identify the ingredients in the recipe that are needed to produce the primary output. The system uses the quantities specified in the recipe formula.
Ingredients (With Explosion)
If a recipe formula includes explosion recipes, you can view a more detailed list of ingredients for the start recipe. Instead of showing calculations only for the ingredients defined directly in the start recipe, the system uses the items from the included explosion recipes and displays them as part of the calculation results.
To access the expanded list of ingredients, go to the Calculations tab and select a calculation with the Ingredients (With Explosion) type.
This calculation reflects all ingredient items taken from the explosion recipes assigned to the formula input items, giving you a complete view of the components needed for the start recipe.
Whenever you open a start recipe, the system performs the explosion logic and refreshes the Ingredients (With Explosion) calculation—even in display mode. If an assigned explosion recipe has been modified, the updated exploded ingredient results appear immediately when you open the start recipe. No switch to edit mode is required.
Analytical Composition
The system uses this calculation type to determine the composition of the primary output and describe its properties.
The composition describes the primary output as the result of a specific process. The system determines the associated quantities as the proportions in which ingredients are contained in the current primary output. To do this, it uses the quantities specified in the recipe and composition.
Analytical Composition (With Explosion)
The system uses this calculation type to determine the composition of the recipe's primary output, including analytical composition data from assigned explosion recipes.
In other words, if a formula item has an assigned explosion recipe, the calculation uses the formula items from that explosion recipe instead of the formula item itself. The analytical composition is then determined based on the composition data of those exploded formula items.
Quantitative/Qualitative Composition
This calculation type is used to determine quantitative values (for example, nutrients) and qualitative properties (for example, allergens) for the recipe, based on the specifications assigned to the formula items.
-
Nutrients: For each input ingredient in the formula, the system checks for nutrients specified in the relevant specification property. For every nutrient, it calculates the respective quantity based on the formula input items and primary output composition.
-
Allergens: For each input ingredient in the formula, the system checks for allergens specified in the relevant specification property. For every allergen, it determines the qualitative statement that describes the allergens presence in the ingredient. To determine the presence of allergens in the primary output of the recipe, the system aggregates allergen data from all input ingredient specifications and selects the qualitative statement with the highest priority.
Estimated Price
This calculation type determines the estimated price of the recipe’s primary output in relation to its output quantity. It evaluates the unit prices of formula items together with their corresponding quantities.
-
Manual Price
Uses the price data that you manually enter for formula items.
-
Specification Price
Uses price data maintained in the specific attribute property of the specification linked to a formula item.
Calculation Results
Each time you navigate to the Calculations tab in a recipe while in edit mode, the system recalculates all recipe values.
Because you cannot edit calculated data directly, you need to change the formula data or adjust the calculation parameters in the Configure Recipe Calculations app to get new results. The system performs the calculations again.
Aggregation
For calculations of Ingredients, Ingredients (With Explosion), Analytical Composition and Analytical Composition (With Explosion) types, the aggregation function is available. When you turn on the Aggregate Items toggle, the system combines all items with the same assigned specification version into one item. You can undo this aggregation by turning off the toggle
Reference Quantity
For calculations of the Quantitative/Qualitative Composition and Estimated Price types, there's the Reference Quantity field with the value defined in the Configure Recipe Calculations app. You can adjust it as needed here, and the data will be recalculated.
If you change the reference quantity value while editing a recipe in the Manage Recipes app and then save the recipe, the updated reference quantity value will only apply to that specific recipe.
Country/Region Validity
The country/region validity defines the geographical area where the recipe data applies. This can be a single country, a region, or a group of countries and regions.
-
The Country/Region Validities section, where you can create and manage validity areas.
-
The Country/Region Validity filter, which enables you to select one of the defined validity areas to enable the relevant calculations.
You can also define, update, or view the validity from any tab in the recipe by using the Country/Region Validity field located in the recipe header.
Currency
For calculations of the Estimated Price type, a Currency filter is available. It is pre‑populated with a default value defined by an administrator in the Configure Recipe Calculations app. You can change this value in both edit and display mode as needed.