Skip to content · Zum Inhalt

Roll the allergens up through the production BOM

When an item has a production BOM, the app gathers the allergens of every component of that BOM — through as many levels as the structure has — and shows one row per allergen.

Before you start

  • The components of the BOM carry their own allergens, see Assign allergens to an item.
  • The BOM has a certified version that is valid on the work date; a BOM without versions uses its lines as they are.

See the allergens a production BOM brings in

  1. Open the Item Card of the finished item, for example IC-006 Artisan Sourdough Bread, and note its Production BOM No.
  2. Choose Allergens on the action bar.
  3. Because the item has a production BOM, the read-only page Allergen Roll-up opens instead of the item's own allergen lines.
  4. Read one row per allergen with its Presence.

The allergens a production BOM brings into the item

Correct the allergens of a component

  1. Open the Item Allergens page of a component item, for example IC-001 All-Purpose Flour.
  2. Read the allergen lines that the component contributes to every BOM that uses it.
  3. Correct a line here when the component changes; the roll-up of the finished item follows the next time it is opened.

The allergen lines of a component item

Note: The roll-up is calculated when you open it and nothing is stored. A corrected component, a new BOM version or another work date shows up the next time the page opens.

Tip: Record allergens on your purchased components first. Every roll-up is only as complete as the items at the bottom of the BOM.

Example

IC-006 Artisan Sourdough Bread has production BOM IC-006. Its lines are IC-001 All-Purpose Flour, which carries WHEAT as Contains, and IC-003 Free-Range Eggs, which carries EGG as May Contain. The roll-up of IC-006 therefore shows WHEAT Contains and EGG May Contain: one row per allergen, with the stronger presence when both occur.

What happens

  • Every level of the structure is walked. An item line contributes that item's allergens; a BOM line contributes the roll-up of that BOM.
  • The result holds one row per allergen code. If any path says Contains, the row says Contains; otherwise it says May Contain.
  • An empty BOM gives an empty list, never an error. A structure nested deeper than twenty levels contributes nothing below the twentieth, so a BOM that loops cannot hang the app.
  • The list is read-only. To change it, correct the allergens of the components.