> For the complete documentation index, see [llms.txt](https://help.tillit.cloud/tillit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.tillit.cloud/tillit/knowledge-base/setting-up-tillit/material-definition/substitute-materials.md). Agents can also search and read this documentation through its [MCP server](https://help.tillit.cloud/tillit/~gitbook/mcp).

# Substitute Materials

Learn how to manage substitute materials on production orders, adjust component allocations using the Substitute panel, and handle floor execution and barcode scanning.

In manufacturing operations, raw materials and packaging components frequently have alternative or interchangeable options—such as different grades, suppliers, or packaging formats. TilliT allows you to define ranked substitutes on the Bill of Materials (BOM) and manage these substitutions flexibly throughout order planning and shop floor execution.

## Overview

When substitute materials are configured on a [Material Component](https://help.tillit.cloud/tillit/knowledge-base/setting-up-tillit/material-definition/material-component.md) or a Scheduler segment BOM:

* Components are grouped into **Substitute Groups** with an assigned **Priority**.
* **Priority 1** represents the planned **default material**.
* **Priority 2, 3, and above** represent **ranked substitutes** in order of preference.
* Each material line carries its **full target weight or quantity**, ensuring precise recipe and BOM accuracy.

***

## Order Creation & Material Requirements

{% hint style="warning" %}
**Prerequisite for Orders Created in the UI:** For a production order created manually in TilliT to inherit BOM components and display the **Substitute** button, the target line or asset must have an active [**Order Template**](https://help.tillit.cloud/tillit/knowledge-base/setting-up-tillit/asset-hierarchy/order-template.md) configured with the relevant materials mapped under its **Components (BoM)** panel. Without an active Order Template mapping, orders created directly on the line will not populate initial BOM lines.
{% endhint %}

When a new production order is created in TilliT—whether created manually, generated from the Scheduler, or received via an ERP integration:

1. **Default Allocation**: The order initially receives only the **Priority 1 (default)** line of each substitute group.
2. **Planned Target**: The target quantity is calculated as: `Order Target = BOM Target × Order Quantity`.
3. **Double-Counting Prevention**: Order requirement calculations and Scheduler inventory drawdowns count **only the default material** for each group. Unselected substitutes are not placed on the order initially, preventing inflated material requirements.
4. **Ungrouped Components**: Any components not assigned to a substitute group are copied to the order normally.

***

## Managing Substitutes on Active Orders

Supervisors and production planners can review substitute options, adjust material allocations, or split requirements across multiple substitutes using the **Substitute panel**.

### Opening the Substitute Panel

{% stepper %}
{% step %}
Navigate to the order details page and open the **Bill of materials** tab.
{% endstep %}

{% step %}
Locate the material line belonging to a substitute group. Grouped lines display a button in the **Substitute** column showing the name of the configured substitute group (e.g. **⇄ Bottles**).

<figure><img src="https://352909507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrNT40XJFAFlAhUX8CcQS%2Fuploads%2Fgit-blob-2579d36799a170fbe31eb98e01dc2a61f3f06728%2Fbill-of-materials.png?alt=media" alt="Bill of materials tab on an order displaying the substitute group button in the action column"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Click the group button (e.g. **Bottles**) to open the side panel over the BOM table.
{% endstep %}
{% endstepper %}

### The Substitute Panel Controls

<figure><img src="https://352909507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrNT40XJFAFlAhUX8CcQS%2Fuploads%2Fgit-blob-2236a75f3652cbbbe460769296059c233a02c3e8%2Fsidepanel-bottles.png?alt=media" alt="Substitute side panel showing ranked materials, Planned badge, Priority 2 badge, share sliders, and the Confirm button"><figcaption></figcaption></figure>

The Substitute panel provides an interactive view of all materials configured for that substitute group:

* **Ranked List**: Materials are displayed in priority order with **Planned** and **Priority** badges.
* **Original & Current Quantities**: Shows the original planned target alongside the current allocated quantity.
* **Share Sliders**: Each material has a percentage share slider. Moving a slider automatically rebalances the remaining share among the other materials in the group.
* **Manual Quantity Override**: You can enter specific quantities directly into the quantity field. Entering an explicit quantity overrides the percentage sliders.
* **Coverage Indicator**: A status banner indicates group coverage:
  * **Balanced**: Total allocated quantity matches the required requirement (100% coverage).
  * **Over-coverage / Short-coverage**: Displays any excess or shortfall if manually overridden.

### Saving Substitute Selections

Click **Confirm** at the bottom right of the panel to apply the selections to the order. When confirming substitute selections:

* **Allocated Lines**: Chosen substitute materials are added to the order's Bill of Materials with their allocated quantities.
* **Dropped Substitutes**: Substitute lines set to `0` quantity are removed from the order, provided no consumption has been posted against them.
* **Substituted Defaults**: If the original planned default material is completely replaced (quantity set to `0`), it remains visible on the order marked with a **Substituted** label.
* **Highlighting**: Active order lines with a priority greater than `1` are visually highlighted in the BOM table with an orange badge indicating the priority rank (e.g. **⇄ Bottles · 2**).
* **Permissions**: Modifying substitutes on an order requires the **`change-order`** permission. Users without this permission cannot open or confirm the Substitute panel.
* **Closed Orders**: Once an order is completed or closed, substitute allocations cannot be modified, and group information is displayed as read-only text.

<figure><img src="https://352909507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrNT40XJFAFlAhUX8CcQS%2Fuploads%2Fgit-blob-fcc5568f3986c9d2374a463d96c23fbc1c72fa80%2Fsubstituted.png?alt=media" alt="Bill of materials table showing updated substitute lines and orange priority badge"><figcaption></figcaption></figure>

***

## Floor Execution & Consumption

TilliT ensures that shop floor operators can execute production seamlessly, even when unplanned substitutions occur on the line.

### Barcode Scanning & Material Verification

When an activity contains a [Material Component](https://help.tillit.cloud/tillit/knowledge-base/setting-up-tillit/activity-templates/activity/elements/data-types/material-component.md) or Barcode scan element:

* **Substitute Recognition**: Scanning a barcode for any material belonging to the order's configured substitute group is automatically accepted.
* **Auto-Addition at Target 0**: If the scanned substitute was not previously allocated on the order, it joins the order component list with a target of `0` and its configured priority rank.
* **Target Integrity**: The target quantity of the planned default (and any other allocated line) remains unchanged.
* **Scanning the Default after a Substitute**: If a substitute was already active and the operator subsequently scans the default material, the default joins the order at target `0`, preserving existing allocations.
* **Non-BOM Materials**: Scanning a material that does not belong to the product BOM or its substitute groups is refused with an invalid component message.

### Material Movements & Stock Balances

* Consumption posted during execution lands directly on the matching order line for that specific material.
* When a group is split across multiple materials, consumption is tracked independently against each line.
* Asset inventory balances reflect the exact materials consumed, ensuring accurate traceability and stock reconciliation.

***

## Order Re-synchronisation & Source Reconciliation

If an order is re-synchronised with its source—such as an updated ERP order component feed, a BOM re-sync, or a Scheduler segment refresh:

* **Preserved Allocations**: Material selections and quantities manually saved by supervisors are preserved.
* **Preserved Consumptions**: Any substitute lines that already have recorded consumption are maintained.
* **Reconciliation Rules**: If the external source updates the planned material, previously consumed substitutes remain on the order at target `0` alongside the newly specified source material.
