> ## Documentation Index
> Fetch the complete documentation index at: https://docs.watchdog.no/llms.txt
> Use this file to discover all available pages before exploring further.

# How a check finds an alert

> How Watchdog compares an invoice with its agreement, what an alert shows, and what Certain and Uncertain mean.

A check compares an invoice with an agreement it is matched to. Anything on the invoice that
doesn't follow the agreement becomes an alert, with an explanation of what differs. An alert is a
deviation for you to review, not a confirmed supplier error.

## The invoice is matched to an agreement

Watchdog first finds the agreements that cover the invoice, from each agreement's suppliers,
recipients, dates, invoice filters and, when it is on, **Smart matching**. Only active agreements
are checked, and an invoice matched to two agreements is checked against each of them. See
[Match agreements to invoices](https://docs.watchdog.no/guides/agreements-and-pricing.md#match-agreements-to-invoices).

New invoices are checked automatically, unless **Automatic checks** is turned off under **Settings**
on the agreement's **Overview**. Then they still match the agreement but wait until you
**Run checks**. Turning it back on doesn't check invoices skipped while it was off. Credit notes aren't
checked, and neither are invoices a credit note fully reverses.

### Check invoices that haven't been checked

On **Alerts**, group the **All** view by **Status** and choose **Check all** on **Needs check**. For
one agreement, select the invoices on its **Invoices** tab and choose **Run checks**. Agreements with alerts
to review are under **To review**, so check their invoices from the **Invoices** tab.

## Each line is compared with what was agreed

The check goes through the invoice line by line and compares each one with what the agreement
says about it:

* **Price list rows.** The agreed price for the product or service on the line, found by its item
  number or description, in the right unit and currency.
* **Contract terms.** Discounts, rebates, surcharges, indexation, payment terms and other terms in
  the agreement's contract files.
* **Agreement context.** What your team has added under **Context** on the agreement's
  **Overview**, such as deviations you accept.

The check uses the price or term that applied at the time, normally on the invoice date. It can
also flag the invoice as a whole, such as its payment terms, or something the invoice should have but doesn't, such as an
agreed discount.

## A difference becomes an alert

Open an alert to see why it was raised:

* The **explanation** says what differs from the agreement.
* **Applies to** shows the invoice line, **Whole invoice**, or **New line** for something missing
  from the invoice.
* **Expected pricing** sets what was **Invoiced** against what was **Expected**, with the
  **Difference**. **How this was calculated** shows the working when the agreed price needs a
  calculation.
* **What to check** lists the questions to answer before you decide.
* Citations point to the contract passages and price list rows the alert is based on. Select one to
  see it in the document.

The **Impact** is the difference from the agreement after subtracting amounts already repaid for
that deviation by linked credit notes included in the check. Watchdog sorts an agreement's alerts
into topics, so the same deviation on many invoices is reviewed together.

## Certain and Uncertain

Every alert shows how sure Watchdog is that it is right:

* **Certain**: Watchdog is confident the alert is right.
* **Uncertain**: Watchdog isn't sure the alert is right. Check it before you answer.

The alert's panel shows it under **Certainty**: select it to see why. To list only one kind, filter
on **Confidence**. Neither one is your answer: every alert stays **To review** until you set its
status.

## Make the next check better

When you mark an alert as a false alarm with **Learn from this mistake** on, or choose **Don't flag
this again…**, Watchdog suggests an edit to the agreement context. Once you accept it, later checks
use it. See [Review findings](https://docs.watchdog.no/guides/review-findings.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.