Sub-recipes
Sub-recipes are recipes that are used as components inside other recipes. They let you build your costing the same way you build your food - from the base up.
What sub-recipes are
A sub-recipe is simply a recipe that you reference as an ingredient within another recipe. Instead of listing every individual ingredient in a complex dish, you break it into logical components, each with its own cost.
Think of it like this: your burger has a bun, a patty, a sauce, and toppings. The sauce itself is made from multiple ingredients. Rather than listing every sauce ingredient inside the burger recipe, you create the sauce as its own recipe and then add "Burger sauce - 1 portion" as a single line in the burger recipe.
Common examples
Sub-recipes are everywhere in a professional kitchen:
| Sub-recipe | Used in |
|---|---|
| Pizza dough | Margherita, Pepperoni, Calzone |
| Bechamel sauce | Lasagne, Croque Monsieur, Fish pie |
| Pastry (shortcrust) | Quiche, Pies, Tarts |
| Simple syrup | Cocktails, Iced coffee, Lemonade |
| Burger sauce | Classic burger, Chicken burger |
| Granola mix | Granola bowl, Yoghurt parfait |
| Spice blend | Multiple curry dishes |
| Vanilla sponge base | Victoria sponge, Trifle, Layered cake |
| Stock (chicken) | Soups, Risotto, Gravy |
A good rule of thumb: if you make a component in advance and use it across multiple dishes, it should be a sub-recipe. This keeps your costings DRY (Don't Repeat Yourself) - update the sub-recipe once and every parent recipe updates automatically.
Creating a sub-recipe
Sub-recipes are created exactly like regular recipes:
- Go to CostingBrik > Recipes.
- Click Add recipe.
- Set Recipe type to Base recipe (used in other recipes), or to Both (menu item & base recipe) if you also sell it on its own. Only recipes of these two types can be added to another recipe.
- Build the recipe as normal, adding all ingredients with quantities.
- Set its Portioning - this is important because it decides what one portion of the sub-recipe costs when it is used elsewhere.
You can file it under any category you like, for example one called "Prep".
Example - Bechamel Sauce (makes 10 portions of 100 ml):
| Ingredient | Quantity | Unit | Cost |
|---|---|---|---|
| Unsalted butter | 60 | g | £0.19 |
| Plain flour | 60 | g | £0.04 |
| Whole milk | 1,000 | ml | £0.58 |
| Nutmeg (ground) | 2 | g | £0.03 |
| Salt | 5 | g | £0.01 |
| White pepper | 1 | g | £0.02 |
| Total | £0.87 |
With 10 portions, each portion costs £0.087, and the whole batch £0.87.
If the bechamel carries hands-on time, that time reaches the parent recipe as labour, never as ingredient cost. A dish taking a tenth of the batch carries a tenth of its minutes and a tenth of its labour money, reported separately from the £0.87. See Labour.
Using a sub-recipe inside another recipe
Sub-recipes have their own button in the parent recipe's ingredient list:
- In the parent recipe, click Add base recipe (under the ingredient lines, or in the empty list).
- Search for the sub-recipe by name (e.g. "Bechamel Sauce").
- Enter the quantity and choose its unit: portions, batches, grams or ml (see below).
- Brikly calculates the line's cost from the sub-recipe's cost.
Example - Lasagne (makes 6 portions):
| Component | Quantity | Unit | Cost |
|---|---|---|---|
| Bolognese sauce (sub-recipe) | 4 | portions | £3.20 |
| Bechamel sauce (sub-recipe) | 5 | portions | £0.44 |
| Lasagne sheets | 250 | g | £0.32 |
| Mozzarella | 200 | g | £1.10 |
| Parmesan | 50 | g | £0.65 |
| Total | £5.71 |
Cost per portion: £5.71 / 6 = £0.95
Which units a sub-recipe line can use
In the recipe editor, a sub-recipe line can always be measured in portions or batches. g is offered when the sub-recipe can be weighed: it has a finished weight, or a known weight for every ingredient in it. ml is offered when it can be measured by volume: a finished volume, or a known volume for every ingredient. If g or ml is not in the list, use portions or batches, or set a finished weight or volume on the sub-recipe. The editor does not offer kg or l. Brikly saves a line by weight only when the sub-recipe can be weighed, so an older line whose sub-recipe can no longer be weighed stops the save, and Brikly says so, for example "'Bechamel Sauce' can't be measured in g yet. Set a finished weight on it, or add weight conversion data to its ingredients."
Nesting recipes
You can nest sub-recipes multiple levels deep. For example:
- Lasagne contains Bolognese sauce.
- Bolognese sauce contains Soffritto base.
- Soffritto base contains onion, celery, and carrot.
Brikly traces the cost through every level. When the price of onions changes, the soffritto cost updates, which updates the Bolognese cost, which updates the lasagne cost - all automatically.
Sub-recipes can sit inside each other up to 5 levels below the recipe at the top. Brikly will not save a recipe that would go deeper, and tells you to use a simpler base recipe or remove a level. Most kitchens rarely go beyond two or three levels. If your recipe structure is getting overly complex, consider whether some sub-recipes could be simplified.
Avoiding circular references
Brikly prevents you from creating circular references - where Recipe A contains Recipe B, and Recipe B contains Recipe A. If you try, Brikly will not save the recipe and says "One of the base recipes you added already uses this recipe, which would make an endless loop. Remove it or pick a different base recipe."
Cost roll-up
One of the key benefits of sub-recipes is automatic cost roll-up. Here is how it works:
- Ingredient prices are updated (e.g. from a new invoice).
- Sub-recipes that use those ingredients are re-costed.
- Parent recipes that use those sub-recipes are re-costed.
- This continues up through every level of nesting.
You do not need to trigger this manually. When you open a recipe, its cost is worked out from the latest ingredient prices, rolled up through every sub-recipe layer. The figures stored for the recipe list catch up in the background shortly after a price changes.
Choosing Recalculate cost from the More actions menu on a sub-recipe's page re-costs every recipe that uses it, at every level.
Archived sub-recipes
If a sub-recipe is archived while other recipes still use it, those recipes keep the line, but Brikly will not save one of them until you restore that sub-recipe or remove the line. The message names the sub-recipe, for example "'Sponge base' is archived. Restore it or remove it from this recipe before saving." The same applies when you roll back to a version (see Version history) or approve a recipe draft that uses it.
If your kitchen changes how it produces a sub-recipe (e.g. making a smaller batch of sauce), remember to update the yield. An incorrect yield on a frequently used sub-recipe will cascade incorrect costs into every dish that uses it.