> For the complete documentation index, see [llms.txt](https://docs.dynalogic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/calculation-warnings-errors-6182409.md).

# Calculation Warnings/Errors

Set up additional [warnings/errors](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/stamp-warnings-errors-6182627.md) associated with the [calculation](https://docs.dynalogic.com/birds-jobmanager-product-overview/user-guide/general/time-calculation-and-approval-6182701.md).

Read about the various options [here](#field-11) .

If the [Description \*](#field-50) is *light gray* it means that this is automatically generated based on other fields/values.

**Also read** [**Auto delete Stamp Warnings/Errors**](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/jobmanager-setup-6182300.md#field-41)**.**

| Topic                                       |
| ------------------------------------------- |
| [Calculation ID](#field-1)                  |
| [Sequence](#field-2)                        |
| [Active](#field-9)                          |
| [Type](#field-11)                           |
| [Condition](#field-12)                      |
| [Period](#field-13)                         |
| [Codeunit](#field-19)                       |
| [Filter Stamp Journal](#field-28)           |
| [Style](#field-41)                          |
| [Description](#field-50)                    |
| [Error](#field-55)                          |
| [Approved (Trigger)](#field-56)             |
| [Calculate Group](#field-101)               |
| [Approve Group](#field-102)                 |
| [Agreement](#field-103)                     |
| [Activity (Approved (Trigger))](#field-256) |

## See also

[Time Calculation and Approval](https://docs.dynalogic.com/birds-jobmanager-product-overview/user-guide/general/time-calculation-and-approval-6182701.md)

## Reference

[Stamp Warnings/Errors](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/stamp-warnings-errors-6182627.md)\
[JobManager Setup](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/jobmanager-setup-6182300.md)

\
\\

<details>

<summary>Calculation ID</summary>

Related Calculation ID.

</details>

<details>

<summary>Sequence</summary>

Unique number which identify this line.

**It dertermines the order of** [**error/warnings**](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/stamp-warnings-errors-6182627.md)**.**

</details>

<details>

<summary>Active</summary>

Indicates whether the line is active, and therefore included.

</details>

<details>

<summary>Type</summary>

Use the following options:

* **Job Id (present)** for warnings/errors if [Job Id](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/jobmanager-job-6182601.md#field-1) specified in [Condition](#field-12) found in [Stamp Journal](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/stamp-journal-lines-6182623.md) for the employee on the day. Searching [Stamp Journal](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/stamp-journal-lines-6182623.md) can be further narrowed by [Filter Stamp Journal](#field-28).
* **Time Counter (condition)** for warnings/errors if the formula in [Condition](#field-12) is *true*.
* **Codeunit** to add customer specific warnings/errors.

By using *Codeunit* one **avoids** changes to JobManager objects, making updating JobManager versions much easier. *The installation package for JobManager contains some examples.* Read more [here](#field-19)

* **Registration add-on (used)** if Registration add-on is used it will trigger a warning/error.
* **Work type code for mileage (used)** (KM/Miles) if Work type code for mileage is used it will trigger a warning/error.

**Related topics**

* [API (Registration)](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/registration-api.md)

</details>

<details>

<summary>Condition</summary>

If [Type](#field-11) of **Job Id (present)** the following applies:

* Fill in [Job Id](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/jobmanager-job-6182601.md#field-1). Can be further narrowed by [Filter Stamp Journal](#field-28).

If [Type](#field-11) of **Time Counter (condition)** the following applies:

* Fill in condition, eg.:

  ```
  [OT1]>0
  ```

  or

  ```
  [OT1]<(-10)
  ```

  or

  ```
  ([OT2]=0) AND (([LON-06]>0) OR ([LON-07]>0))
  ```
* Syntax
  * Time Counters writes with **\[ ]**
  * Use **+ - \* /**
  * Use **( )**
  * Use **= > < >= <=**
  * Use **AND OR && || OG ELLER**
* The logical *parser* has certain limitations:
  * A formula **can't** start with **-** *minus*. Can be resolved by using parentheses **( )**.
  * Two operators **can't** stand next to each other:
    * `[OT1]<-10` solved by using **( )** parentheses: `[OT1]<(-10)`
    * `20*-10` solved by using **( )** parentheses: `20*(-10)`

</details>

<details>

<summary>Period</summary>

The period for which this Time Counter should sum.

Only applies if [Type](#field-11) is **Time Counter (condition)**.

</details>

<details>

<summary>Codeunit</summary>

Codeunit to be invoked.

**The installation package for JobManager contains some examples:**

| Codeunit | Description             | Function                                                                                                                                                                                                                                                                                                                                                                 |
| -------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 6182735  | Pre-Approval missing    | Read more about *Pre-Approval* [here](https://docs.dynalogic.com/birds-jobmanager-product-overview/user-guide/general/pre-approval-6182709.md)                                                                                                                                                                                                                           |
| 6182737  | Absence Request         | Read more about *Absence Request* [here](https://docs.dynalogic.com/birds-jobmanager-product-overview/user-guide/general/planned-absence-6182606.md)                                                                                                                                                                                                                     |
| 6182739  | Attention Leave Warning | Read more about *Leave Warning* [here](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/jobmanager-setup-6182300.md#field-11)                                                                                                                                                                                    |
| 6182740  | Recreation Warning      | Read more about *Recreation Setup* here: [Agreement](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/agreement-6182501.md#field-22) og [Userinterface](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/jobmanager-user-interface-6182351.md#field-134) |

</details>

<details>

<summary>Filter Stamp Journal</summary>

This field can further narrow search in [Stamp Journal](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/stamp-journal-lines-6182623.md) for the selected *Job Id*.

* **All** for failing filter
* **Only Auto** to check only the [Stamp Journal](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/stamp-journal-lines-6182623.md) made by the Employee in the eg. [JobManager - Registration Client](https://docs.dynalogic.com/birds-jobmanager-product-overview/user-guide/general/jobmanager-registration-client-6182711.md).
* **Only Manual** to check only the [Stamp Journal](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/stamp-journal-lines-6182623.md) entered manually in eg. [Time Calculation and Approval](https://docs.dynalogic.com/birds-jobmanager-product-overview/user-guide/general/time-calculation-and-approval-6182701.md).

{% hint style="info" %}
Note: This field applies only to the [Type](#field-11) of **Job Id (present)**.
{% endhint %}

</details>

<details>

<summary>Style</summary>

Lines can be highlighted.

The options below are the same as those used widely in NAV.

| ID              | Bold | Italic |  Color |
| --------------- | :--: | :----: | :----: |
| Standard        |      |        |  Black |
| StandardAccent  |      |        |  Blue  |
| Strong          |   X  |        |  Black |
| StrongAccent    |   X  |        |  Blue  |
| Attention       |      |    X   |   Red  |
| AttentionAccent |      |    X   |  Blue  |
| Favorable       |   X  |        |  Green |
| Unfavorable     |   X  |    X   |   Red  |
| Ambiguous       |      |        | Orange |
| Subordinate     |      |        |  Grey  |

</details>

<details>

<summary>Description</summary>

If [Type](#field-11) of **Job Id (present)** the following applies:

* If field *empty*, the system will automatically generate an appropriate text based on the other fields/values.
* The field can be overridden with custom text. Parameters %1 and %2 can be used, which inserts the appropriate value:
  * %1 = [Description](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/jobmanager-job-6182601.md#field-10) from the job.
  * %2 = [Job Id](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/jobmanager-job-6182601.md#field-1) from the job.

If [Type](#field-11) of **Time Counter (condition)** the following applies:

* If field *empty*, the system will create the text from the *formula* to the [condition](#field-12). Numbers on Time Counters are replaced by [Description](https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/time-counters-6182411.md#field-5) from these Time Counters.
* The field can be overridden with your own text.

</details>

<details>

<summary>Error</summary>

Should this line create an **error** *(or only a warning)* when [calculating](https://docs.dynalogic.com/birds-jobmanager-product-overview/user-guide/general/time-calculation-and-approval-6182701.md).

</details>

<details>

<summary>Approved (Trigger)</summary>

This field must be filled in with a JobID, if it must be possible to [approve](#field-256) a *calculation error*.

</details>

<details>

<summary>Calculate Group</summary>

The Warnings/Errors can be limited to the *Calculate Group*.

</details>

<details>

<summary>Approve Group</summary>

The Warnings/Errors can be limited to the *Approve Group*.

</details>

<details>

<summary>Agreement</summary>

The Warnings/Errors can be limited to the *Agreement*.

</details>

<details>

<summary>Activity (Approved (Trigger))</summary>

It is possible to approve a *calculation error* in [Time Calculation and Approval](https://docs.dynalogic.com/birds-jobmanager-product-overview/user-guide/general/time-calculation-and-approval-6182701.md).

You approve the error by pressing *no* in the warning/error factbox.

*No* changes to *yes* and the [Approved trigger](#field-56) is automatically inserted into *Stamp Journal Line*

Can e.g. be used for a balance that has gone into red, or an extra approve when the employee has overtime.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.dynalogic.com/birds-jobmanager-product-overview/integrations-and-technical-reference/tables/calculation-warnings-errors-6182409.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
