# Spares for Maintenance

Maintenance depends on having the right spare on the shelf. In **Inventory → Parts** you can flag a part as a critical
spare and set its stocking policy. Technicians and storeroom staff then use it, as in
[Storeroom Tasks](../8-maintenance-technician/6-storeroom-tasks.md).

:::info[Needs Kanoa Inventory]
Parts, stock and storerooms are part of **Kanoa Inventory**, which is licensed separately from Kanoa Maintenance. Your
gateway needs a Kanoa Inventory license, and an administrator must turn it on (**Enable Kanoa Inventory**, under
**Configuration → Application → Settings**). Without a license it only runs in trial mode. If your plant doesn't have it,
skip this lesson.
:::

## Flag a Critical Spare

1. Open **Inventory → Parts** and open the part in the **Part Editor**.
2. Tick **Is Critical**. This flags the part as a critical spare, for reporting and prioritisation.
3. Click **Save**.

## Set a Stocking Policy

A stocking policy sets the rules for one part at one storeroom. The same part can have different rules in different storerooms.

1. In **Inventory → Parts**, expand the part row.
2. Click **Set Policy** (the shield icon) next to the storeroom to open the **Part Policy Editor**.
3. Enter **Min Qty**, **Max Qty**, **Reorder Point Qty**, **Reorder Qty**, **Safety Stock** and **Cycle Count** in days.
4. Tick **Is Stocked** and click **Save**.

:::tip
Set the reorder point higher than the safety stock. The reorder point starts replenishment in good time. Safety stock is the
last-resort buffer.
:::

::embed-section{src="../../kanoa-inventory/inventory-config.md#stocking-policies" collapsed="true" summary="Reference Materials: Stocking Policies - Min, max, reorder point, safety stock and cycle count."}

## Build an Asset's Parts List

An asset's bill of materials (BOM) lists the parts fitted to it, each at a **position** such as `S1 Spindle bearings`.
Technicians then see which spares fit a machine, and you see which machines depend on a critical spare.

1. Open **Configuration → Ops → Assets**, select the asset, and open its **Parts** tab. The tab only shows when Kanoa
   Inventory is on.
2. Click **Add Part or Model to Asset**. Choose a **Part**, or a **Model** to add a whole equipment model's parts list.
3. Pick the **Part #**, enter the **Position Code**, **Position Name** and **Quantity**, and click **Save**.

The **Parts** tab lists the asset's BOM: each part or assembly with its position, quantity and units.

{/*
TODO: Confirm on a gateway which security function the asset's Parts tab needs (Configuration → Ops → Assets likely needs
Configure Assets, which the Maintenance Manager role doesn't have), whether the Part Editor is opened by Add or by
double-clicking a part, and whether Is Critical shows in the list.
*/}

If you can't edit the **Parts** tab, ask your administrator.

::embed-section{src="../../kanoa-inventory/inventory-config.md#bill-of-materials" collapsed="true" summary="Reference Materials: Bill of Materials - Model BOM and asset BOM."}

## Worked Example

The CoreForge sample plant builds Machine 1's parts list, the same as Developer Training.

::embed-section{src="../../training/8-training-inventory/03-bill-of-materials/1-asset-bom.md"}

## Check Your Understanding

1. What does **Is Critical** do?
2. Where do you set a part's stocking policy?
3. Which should be higher, the reorder point or the safety stock?

<details>
<summary>Answers</summary>

1. It flags the part as a critical spare, for reporting and prioritisation.
2. In **Inventory → Parts**: expand the part and click **Set Policy** next to the storeroom.
3. The reorder point.

</details>
