---
title: "Materials and dependencies"
description: "Track raw materials and tell STOCKA how much of each one a product uses, so materials are taken from stock automatically when orders are placed."
canonical_url: "https://content.stocka.cloud/en/catalog/materials-and-dependencies"
---
# Materials and dependencies

> Track raw materials and tell STOCKA how much of each one a product uses, so materials are taken from stock automatically when orders are placed.

If you make what you sell — sew dresses, pour candles, assemble kits — you can track the **raw materials** too: fabric, wax, buttons, boxes. You then tell STOCKA how much of each material **one piece** of a product uses (its *materials*, sometimes called a bill of materials or dependencies). From then on, every order automatically takes the right amount of material out of the warehouse.

<note>

Materials and product dependencies need the **Warehouse** module. Without it the **Materials** tab and the **Materials** card on products are hidden. Whether the module is available depends on your plan — see [Subscription and billing](https://content.stocka.cloud/en/account/subscription-and-billing).

</note>

## How it works in short

1. You create materials in **Warehouse → Materials** and put stock on them.
2. On each product you list the materials one piece takes (for example *Red satin 2.5 m* and *Buttons 6 pcs*).
3. Optionally, a variant can have **own materials** that replace the product's list (for example, size XXL takes 3 m of satin).
4. When an order is placed, STOCKA works out *quantity × materials per piece* for every line, adds it up per material, and **takes those materials out of stock right away**.
5. If the order is canceled or deleted before it ships, the materials go back into stock.

## Who can do what

<table>
<thead>
  <tr>
    <th>
      Action
    </th>
    
    <th>
      Roles
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      See the <strong>
        Materials
      </strong>
      
       tab
    </td>
    
    <td>
      Owner, Manager, Warehouse
    </td>
  </tr>
  
  <tr>
    <td>
      Create, edit and delete materials
    </td>
    
    <td>
      Owner, Warehouse
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Adjust stock
      </strong>
      
       of a material
    </td>
    
    <td>
      Owner, Manager, Warehouse
    </td>
  </tr>
  
  <tr>
    <td>
      Set a product's or variant's materials
    </td>
    
    <td>
      Owner, Manager
    </td>
  </tr>
</tbody>
</table>

## Materials in the warehouse

Open **Warehouse** in the sidebar and choose the **Materials** tab. The table shows:

<table>
<thead>
  <tr>
    <th>
      Column
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Material
      </strong>
    </td>
    
    <td>
      Name and SKU
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Location
      </strong>
    </td>
    
    <td>
      Shelf or bin where it's stored — shown when a specific warehouse is selected. You can edit it inline.
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        On hand
      </strong>
    </td>
    
    <td>
      How much you have, in the material's unit (m, kg, l or pcs)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Value at cost
      </strong>
    </td>
    
    <td>
      On hand × cost per unit
    </td>
  </tr>
  
  <tr>
    <td>
      <em>
        (badge)
      </em>
    </td>
    
    <td>
      <strong>
        Low stock
      </strong>
      
       or <strong>
        Out of stock
      </strong>
      
       when the alert level is reached
    </td>
  </tr>
</tbody>
</table>

Use **Search by name or SKU…** to find a material. Each row has a menu with **Edit**, **Adjust stock**, **Stock history** and **Delete**.

### Create a material

<steps level="3">

### Open the form

In **Warehouse → Materials** click **New material**.

### Describe the material

Enter the **Name** (for example "Red satin") and, optionally, a **SKU**.

### Choose the unit

Pick the **Unit**: **Meters (m)**, **Kilograms (kg)**, **Liters (l)** or **Pieces (pcs)**. The unit can't be changed later.

### Set cost and alerts

Enter the **Cost per** unit and a **Low stock alert** level (you are alerted when available stock drops to it).

### Put in opening stock

Enter the **Initial stock**. It goes into your default warehouse.

### Save

Click **Create material**.

</steps>

<field-group>
<field name="Name" type="text" :required="true">

Up to 120 characters. Name and SKU must be unique among your materials.

</field>

<field name="SKU" type="text">

Your own code for the material.

</field>

<field name="Unit" type="select" :required="true">

Meters, Kilograms, Liters or Pieces. **Fixed once created.** Quantities can be entered with decimals down to 1 cm, 1 g, 1 ml or 1 piece.

</field>

<field name="Cost per unit" type="money">

Cost of one meter, kilogram, liter or piece. Used for **Value at cost**.

</field>

<field name="Low stock alert" type="number">

The level at which the material is flagged as low and a low-stock notification is sent.

</field>

<field name="Initial stock" type="number">

Only when creating. Put into the default warehouse.

</field>

<field name="Notes" type="text">

Anything useful — supplier, colour code, etc. Up to 500 characters.

</field>
</field-group>

To change stock later (a new delivery from your supplier, a stocktake correction, waste), use **Adjust stock** from the material's menu. A reason is required. See [Stock levels](https://content.stocka.cloud/en/warehouse/stock-levels).

### Delete a material

Choose **Delete** from the material's menu and confirm. A material can only be deleted when:

- **no product or variant uses it** — otherwise: "Products still use this material — remove it from their materials first"; and
- **it has no stock left** — otherwise: "This material still has stock — write it off first".

The material's movement history stays.

## Set a product's materials

<steps level="3">

### Open the product

Go to **Products** and open the product (or start a new one).

### Find the Materials card

In the right-hand column you'll see **Materials** — "What one piece takes. Taken from the warehouse when an order is placed."

### Add each material

Click **Add material**, choose the material (type to search by name or SKU) and enter the quantity **for one piece**, in the material's unit (the unit is shown inside the field).

### Save

On a new product click **Create product**; on an existing product click **Save changes**.

</steps>

Remove a line with the 🗑 button. Lines without a material, or with a quantity of 0, are ignored when you save. A product that isn't made from tracked materials can simply leave this card empty ("Not made from tracked materials").

### Different materials for one variant

Sometimes one size needs more material. Open the variant (**Edit** in the variant's menu), expand **Own materials** and add the materials one piece of **this variant** takes.

- If a variant has **own materials**, they **replace** the product's list completely for that variant — list every material it uses, not just the difference.
- If **Own materials** is empty, the variant uses the product's materials ("Uses the product's materials").

## What happens when orders are placed

<table>
<thead>
  <tr>
    <th>
      Order event
    </th>
    
    <th>
      Finished products (variants)
    </th>
    
    <th>
      Materials
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Order created
      </strong>
    </td>
    
    <td>
      Units are <strong>
        reserved
      </strong>
    </td>
    
    <td>
      Materials are <strong>
        taken out of stock
      </strong>
      
       (consumed) right away
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Order's products edited
      </strong>
    </td>
    
    <td>
      Old reservation released, new one made
    </td>
    
    <td>
      Old materials put back, new amounts taken
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Shipped
      </strong>
      
       (Shipped / Partially Shipped)
    </td>
    
    <td>
      Reserved units leave the warehouse
    </td>
    
    <td>
      No change — already consumed
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Canceled or deleted before shipping
      </strong>
    </td>
    
    <td>
      Reservation released
    </td>
    
    <td>
      Materials <strong>
        put back
      </strong>
      
       on hand
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Returned after shipping
      </strong>
    </td>
    
    <td>
      Units come back into stock
    </td>
    
    <td>
      <strong>
        Not
      </strong>
      
       put back — they were used to make the goods
    </td>
  </tr>
</tbody>
</table>

The quantity taken is *materials per piece × quantity*, added up across all order lines. For example, an order for 2 dresses at 2.5 m of satin each plus 1 dress in XXL with own materials of 3 m takes 8 m of satin.

<warning>

If there isn't enough of a material, **the order can't be saved** — just like when a product is out of stock. You'll see **Not enough stock**. Add stock to the material or change the order.

</warning>

On the order page, people who can see the warehouse get a **Materials used** line under the items, listing what the order consumed.

<tip>

Materials are taken by the norms that are set **when the order is placed**. Changing a product's materials later doesn't change orders that already exist — only orders created (or whose products are edited) after the change.

</tip>

## Common questions

<accordion>
<accordion-item label="Is the material taken when the order is placed or when it ships?">

When it is **placed**. Materials are considered used as soon as you commit to making the goods. They come back only if the order is canceled or deleted before shipping.

</accordion-item>

<accordion-item label="Can a material be part of another product's materials and also sold as a product?">

No — materials and products are separate. Materials are tracked only in the warehouse and can't be added to orders directly. If you also sell a material, create it as a product with a variant as well.

</accordion-item>

<accordion-item label="Why can't I change a material's unit?">

All quantities — stock, movements and product norms — are stored in that unit. Changing it would silently change every number. Create a new material instead and move the products to it.

</accordion-item>
</accordion>

See also: [Stock levels](https://content.stocka.cloud/en/warehouse/stock-levels), [Stock movements](https://content.stocka.cloud/en/warehouse/stock-movements), [Stock alerts](https://content.stocka.cloud/en/warehouse/stock-alerts).


## Sitemap

See the full [sitemap](https://content.stocka.cloud/sitemap.md) for all pages.
