---
title: "Contract and heap inspection templates"
space: "Setup Guide"
url: "https://jmtradelink.com/setup/set-up-the-system/12-inspection-templates"
updated: "2026-11-12"
---

A quality inspection template is a list of the quality limits for the rice, for example the moisture and the broken grains. The administrator keeps two templates for each rice item:

- The **contract** template has the quality that you promise the buyer, in words, for example "14% Max".
- The **heap** template has the limits that the inspector checks at the mill, as numbers. The inspector types a reading for each line, and the system checks it against the limits.

At the end of this page, a new heap inspection of your rice fills its readings from your heap template.

## Before you start

- You need the System Manager role for the templates, and the Item Manager role to change the rice item. The demo user Priya can open items, but cannot change them. The **Administrator** user has all roles.
- The rice item must exist. See [Rice items and variants](/setup/set-up-the-system/09-items-and-variants).
- The demo data has two finished templates: **IR64 Export Spec** (contract) and **IR64 Export Spec Heap** (heap). See [Install and remove demo data](/setup/settings-and-users/03-install-and-remove-demo-data).

## Steps

### See the demo heap template

1. In the search bar, type **Quality Inspection Template** and open the list. Open **IR64 Export Spec Heap**.
2. Look at the **Item Quality Inspection Parameter** table. Each row is one check. For the row **Moisture**, **Numeric** is ticked and the **Maximum Value** is 14. A heap with more than 14% moisture fails this check.

   ![The heap template IR64 Export Spec Heap, with the Maximum Value of Moisture boxed](/files/setup-8-12-inspection-templates-01-heap-moisture-max-38ce6a3b.webp)

   The demo heap template has numeric limits for **Moisture** (max 14), **Broken** (max 5), **Damage & Discolour** (max 2), **Foreign Matter** (max 0.5) and **Length** (5.9 to 10). The other rows, for example **Chalky**, are not numeric and have no limit on the template.

### See the demo contract template

3. Go back to the list and open **IR64 Export Spec**. Here **Numeric** is not ticked. Each row has its limit as text in **Acceptance Criteria Value**, for example **Moisture** "14% Max" and **Broken** "5%".

   ![The contract template IR64 Export Spec, with the parameter table boxed](/files/setup-8-12-inspection-templates-02-contract-spec-08bdff4a.webp)

### Add your template

4. Go back to the list and click **Add Quality Inspection Template**.
5. Type the **Quality Inspection Template Name**. Put "Heap" at the end of the name of a heap template, so that you can find it easily.
6. In the table, click **Add row** for each check, and fill the fields in the table below.

   ![A new heap template with the name and a Moisture row filled, before Save](/files/setup-8-12-inspection-templates-03-new-template-bcc46ffd.webp)

7. Click **Save**.

| Field | What it does |
|---|---|
| **Parameter** | The check, for example **Moisture**. If a check is not in the list, type **Quality Inspection Parameter** in the search bar, then click **Add Quality Inspection Parameter**. |
| **Numeric** | Tick it when the inspector types a number. Use it for the heap template. |
| **Minimum Value**, **Maximum Value** | Show when **Numeric** is ticked. The lowest and the highest reading that passes. |
| **Acceptance Criteria Value** | Shows when **Numeric** is not ticked. The limit as text, for example "14% Max". Use it for the contract template. |

### Set the templates on the rice item

8. Open the rice item. Use the template item, for example **IR-64**, not a variant.
9. On the **Quality** tab, set **Quality Inspection Template** to the contract template and **Heap Inspection Template** to the heap template. Click **Save**.

   ![The item IR-64, with Quality Inspection Template and Heap Inspection Template boxed](/files/setup-8-12-inspection-templates-04-item-templates-5f744447.webp)

   When you save the template item, the system copies **Quality Inspection Template** and **Heap Inspection Template** to each variant, because **Item Variant Settings** lists these fields. See [Rice items and variants](/setup/set-up-the-system/09-items-and-variants).

## Check it worked

1. Open a variant of the rice, for example **IR-64-Parboiled-10%**. Its **Heap Inspection Template** shows your heap template.

When Priya adds a heap, its readings fill from this template. See [Add a heap](/setup/run-the-shipment/06-add-a-heap).

## Good to know

- In the demo, **IR-64** has only the **Heap Inspection Template** set. **Quality Inspection Template** is empty.
- A change to a template is used by the inspections that you make after the change. The inspections that exist keep their readings.

## Next

[Container defects](/setup/set-up-the-system/13-container-defects)
