# Revise and Correct

You find a mistake after you submit a check, such as a wrong answer or a mistyped value. An approved check can't be edited
by accident. To correct it, it has to be rejected first. This lesson shows you how.

:::info
Rejecting and approving a check needs the **Approve Checks** security function, which plants usually give to the Quality
Manager rather than to quality inspectors. See [Approve and Reject](../5-quality-manager/index.md) in the Quality Manager track.
:::

## Get the Check Rejected

Ask your Quality Manager to reject the check, and say what's wrong with it. If your user has **Approve Checks**, you can
reject it yourself:

1. Open **Quality → Schedule → Check Table**.
2. Find the check, and open it. It opens for viewing.
3. Use the toggle at the upper right to switch from view mode to edit mode.
4. Click **Reject**. The check can now be corrected.

## Correct and Resubmit

1. Open the rejected check from **Check Table**, in edit mode.
2. Change the wrong answer. For example, change a failed area from `Over-Cluttered` to `Passable`.
3. Submit the check again.

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

{/*
TODO: Confirm on a gateway the exact steps and labels to reject a check (toggle at the upper right, then Reject), whether a reason or comment is requested, and whether a user with Enter Checks but not Approve Checks can edit and resubmit a check someone else rejected.
*/}

## Check the Result

1. Go back to **Check Table**.
2. Find the check. Its **Check OK** column counts the failed items, so a corrected check no longer counts the one you fixed.
3. Read its **Status**.

If the check sheet doesn't need a sign-off, the resubmitted check goes back to **Approved**. If it does, it waits as
**Submitted** until someone with **Approve Checks** approves it.

**Taken On** and **Taken By** show when and by whom the check was done.

{/*
TODO: Confirm on a gateway how the change is recorded and where a quality inspector sees it (for example a history or audit view for the check event, who rejected it and when). The product docs don't describe this. Do not describe the audit trail until confirmed.
*/}

:::warning
While a check is rejected, it isn't Approved, so reports and SPC leave it out. Resubmit it as soon as you've corrected it.
:::

## If the Check Sheet Itself Is Wrong

You can only fix a value on the check you took. If the check sheet is wrong, such as a missing question or a wrong limit,
ask whoever has the **Configure Quality** function to change it. A released check sheet is changed through a new revision.
Checks you already took keep the version of the check sheet that was used.

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

::embed-section{src="../../kanoa-quality/checkSheets.md#timers" collapsed="true" summary="Reference Materials: Check statuses - How a check moves from Coming Due to Approved or Rejected."}

## Check Your Understanding

1. Why can't you simply edit an approved check?
2. Which security function lets someone reject and approve a check, and who usually has it?
3. After you resubmit a corrected check on a sheet that needs a sign-off, what status does it have?

<details>
<summary>Answers</summary>

1. Approved checks are protected from accidental changes. The check is rejected first, then corrected.
2. **Approve Checks**. Plants usually give it to the Quality Manager.
3. **Submitted**. It waits for approval.

</details>
