Inventory Product “Containers”
As described in the previous post, we can create Inventory “Sub-Products” by defining the Units of the Inventory Product. We did this with Meatballs when we defined Units for “Ball” and “Batch”, and with Chili, we defined “sub-product” Units of “Ounce” and Pot".
When we create Recipes for Inventory Products, the Units (or Sub-Products) become the Portion identifier in the Recipe. Quick recap picture…
There is an even grander usage case for Inventory Products (or rather Sub-Products) that lets us do some very cool things, allowing a great deal of flexibility. I don’t know if @emre ever intended for Inventory Sub-Products to be used in this way, but it can “simplify” Recipe building quite a bit.
At this point, I am going to coin a new term for Inventory Products and Sub-Products, because I am about to show you a use-case that I belielve to be “outside the intended use”. And because other terms like “Category” and “Group” are already used in many areas of SambaPOS, I want to use a different word to avoid confusion.
So the conceptual term for this idea henceforth will be Inventory Product “Containers”.
Take a look at these Inventory Product definitions, which I call “Containers” …
What can we do with that ^ crazy looking bunch of Inventory Products? Glad you asked - we create Recipes for all of them…
BREADS Container Recipe
The Recipe for the BREADS Container includes all of the types of Bread that could be used to build a sandwich or Wrap.
Because the ingredients in the Recipe are mapped to Order Tags, only the selected Order Tags will be consumed. In this example, the “Flour Tortilla” is the only Order Tag selected, so the Recipe will only “consume” a single Tortilla, and will NOT consume any of the other Breads from the Recipe.
MEATS Container Recipes
Recipes for MEATS.Slider and MEATS.Wrap
When you look at these Container Recipes, you notice that the Ingredients are the same. The only difference is the Inventory Product Unit (Portion) and the Quantity of Units for each Ingredient. Because of this, we can rapidly create Other Container Recipes by cloning an existing MEATS Container Recipe, and all we need to do is change a few things:
- Inventory Product (MEATS)
- Inventory Portion (the Container UNIT like Philly, Wrap, Slider, Dog, etc)
- Ingredient Quantities
CHEESES Container Recipes
Again, once we create ONE Container Recipe, we can CLONE it and change just the Portion and Ingredient Quantities.
Recipes for CHEESES.Slider and CHEESES.Wrap
Other “Container” Recipes
The rest of the “Container” Inventory Product Recipes are much the same, but contain related Ingredients for the Container, for example:
- Condiments contains things like Ketchup, Mustard, Relish, etc
- Produce contains things like Lettuce, Tomato, Onion, etc.
The variants in the Recipes (based on the Inventory Product Unit/Portion) is the Quantity of Ketchup or Mustard that goes on a Slider or Wrap, etc, and the Quantity of Lettuce or Tomato that goes on a Slider or Wrap, etc.
“MASTER” Menu Item Product Recipes
So there is a little more to it than what you see above, and we need one more step in our Inventory System… we need to define the “Master” Recipes for our Menu Item Products that we actually Sell.
But because we defined the “Container” Inventory Products and Recipes, we are a step ahead of the game, and our “Master” Menu Item Product Recipes are simplified greatly.
MASTER Recipes for Pulled Pork Wrap.Slider and Pulled Pork Wrap.Wrap
When you look at these “Master” Recipes, you notice they are identical other than the Menu Item Product PORTION and the Ingredient UNITS.
You might ask: "why go through all of this “complication of nested Products and Recipes?”.
Again, the answer is: because you can CLONE the Recipes. And when you do that, you only need to quickly change 3 things:
- Menu Item Product
- Menu Item Portion
- Ingredient Units of each of the Container Inventory Products
The rest of the “Recipe work” involving how much of this MEAT or that CHEESE which goes on this Bun or that Wrap has already been done in the Container Recipes.






