# Visma Lønn

Moment has support for exports to [Visma Lønn](https://www.visma.no/lonn/visma-lonn/), a Norwegian payroll system.

The Visma Lønn export are based on a global export template.

* Export time records to VismaLonn

## Export configuration

To use Visma Lønn export there is the need to create a [custom template](/help/moment-by-topic/integrations/file-exports/export-templates/custom-template.md) to be used. Check out the link on how to do that.&#x20;

After having created the custom template to be used, there is no additional needs/configurations required.

## Files

The files produced for Visma Lønn are CSV files using ; (semi-colon) as field separator and contains the following data. Fields in **bold** are required.

| Field                    | Description                        |
| ------------------------ | ---------------------------------- |
| Wage year                | Record year, information only      |
| Execution number         | Information only                   |
| **Employee number**      | External employee number in Moment |
| **Wage type**            | External salary code in Moment     |
| Base                     | Depends on wage type if required   |
| Quantity                 | Depends on wage type if required   |
| Rate                     | Depends on wage type if required   |
| Amount                   | Depends on wage type if required   |
| Account number           | Depends on wage type if required   |
| Balancing account number | Depends on wage type if required   |
| R1                       | Department                         |
| R2                       | Project                            |
| R3                       | Extra 1                            |
| R4                       | Extra 2                            |
| R5                       | Extra 3                            |
| R6                       | Campaign                           |
| Deduction code           | Explained here                     |

#### Format

* Decimal separator: . (period)

#### Deduction code

* 0 = full deduction
* 1 = half deduction
* 2 = no deduction

### Example

Example of lines that can be imported with this format

```
2021;7;1001;1;0.00;0.00;0.00;0.00;0;0;"";"";"";"";"";"";0
2021;7;1002;5;0.0;20.50;0.00;0.00;0;0;"";"";"";"";"";"";0
```

In the above example, line 1 is wage type 1 (fixed salary)  for employee ID 1001 and line 2 is wage type 5, with 20.5 hours for employee ID 1002. In the above case, the amount and rate for these lines are gathered from what is registered for the resources.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.milientsoftware.com/help/moment-by-topic/integrations/file-exports/wage-system/visma-lonn.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
