# Follow Up on Quality

A missed check or a failed one is a problem that is already on the line. This lesson shows you how to find the checks that
need you, see where checks are being missed, and approve or reject the check sheets operators submit.

## Find Checks That Need You

A scheduled check moves through these statuses on its own: **In Delay**, **Coming Due**, **Due**, **Over Due** and
**Missed**. When someone starts it, it becomes **In Progress**. When they submit it, it becomes **Submitted**.

You can find them in two places:

- The **Notifications** card on an asset's info panel counts quality checks coming due or missed.
- **Quality → Schedule → Active Checks** and **Quality → Schedule → Check Table**.

![Active Checks](https://docs.kanoa.ai/img/quality/activeChecks.png)

Active Checks shows checks that are Due, Coming Due, Overdue, In Progress or Submitted, and the ones that are Approved,
Canceled, Rejected or Disabled for the last 24 hours. The **Check Table** has more filters.

![Check Table](https://docs.kanoa.ai/img/quality/checkTable.png)

1. Open **Quality → Schedule → Check Table**.
2. Pick an asset and a date range.
3. Look at **Status** for Over Due and Missed checks. The **Check OK** column counts the failed check items.
4. Double-click a check to open it.

{/*
TODO: Confirm on a gateway the exact columns and filters of the Check Table, and that the Over Due and Missed statuses are
shown under Status there. The Status and Check OK columns come from the developer training.
*/}

::embed-section{src="../../kanoa-quality/checkSheets.md#timers" collapsed="true" summary="Reference Materials: Check Timers - Delay, Coming Due, Over Due and Grace."}

## Review a Failed Check

Open the check. Checks are coloured against their limits. A value outside the specification is saved and shown with a red
background as failed. If any check failed, the operator had to enter a comment when they submitted.

1. Open the check from the Check Table.
2. Find the failed items and read the comments.
3. Decide what to do. Follow your plant's procedure for a failed check.

A check sheet can also be set up to email a team or user when a test fails, or to schedule another check straight away.

{/*
TODO: Confirm on a gateway that a supervisor opening a submitted check sees it in view mode with the failed items in red,
and what the screen looks like. The entering checks docs describe a view mode for reviewing entered data.
*/}

![A check sheet](https://docs.kanoa.ai/img/quality/quality-checks-check-sheet.png)

::embed-section{src="../../kanoa-quality/entering-checks.md#enter-check-data" collapsed="true" summary="Reference Materials: Enter Check Data - Limits, failures and comments."}

## See Where Checks Are Being Missed

The **Check Summary** report answers questions such as how many checks are being missed, by check sheet, by shift or by
area.

![Check Summary](https://docs.kanoa.ai/img/quality/quality-analysis-check-summary.png)

1. Open **Quality → Analysis → Check Summary**.
2. Use the filter bar to pick an asset, an item and a date range.
3. Choose the report mode: by check sheet, area, shift, asset or item.
4. Choose how to see it: bar graph, table or shift heat map.

::embed-section{src="../../kanoa-quality/checkSummary.md" collapsed="true" summary="Reference Materials: Check Summary - Filters, report modes and visualizations."}

## Approve or Reject a Check Sheet

Some check sheets need a **sign-off**. When an operator submits one, it waits in **Submitted** until someone approves it.
A check sheet with no sign-off goes straight to **Approved**.

Only **Approved** checks are used in reports and SPC, so an unapproved check sheet isn't counted.

To approve a submitted check, open it and use its approve button. To correct a check that was already approved, reject it first.

1. Open the check from the **Check Table**.
2. Use the toggle at the upper right to switch from view to edit mode.
3. Click **Reject**, change the answer that was wrong, and resubmit.

A resubmitted check goes back to **Approved** if its sheet needs no sign-off. Otherwise it waits in **Submitted** for
approval.

{/*
TODO: Confirm on a gateway where the Approve button is and what it looks like on a Submitted check sheet. The security
function docs only name a button, btnApprove, on the check sheet event editor. The Reject steps come from the developer
training.
*/}

:::note[Needs Approve Checks]
Approving and rejecting check sheets needs the **Approve Checks** security function.
:::

::embed-section{src="../../configuration/securityFunctions.md#approve-checks" collapsed="true" summary="Reference Materials: Approve Checks - The security function."}

## Check Your Understanding

1. What status does a check get when nobody starts it in time?
2. Why does a Submitted check sheet not show in SPC reports?
3. Which security function do you need to approve a check sheet?

<details>
<summary>Answers</summary>

1. It goes from **Over Due** to **Missed**, after its grace time.
2. Reports and SPC only use **Approved** check sheets. It must be approved first.
3. **Approve Checks**.

</details>
