# Huldt & Lillevik Lønn

Moment has support for exports to [Huldt & Lillevik Lønn](https://www.visma.no/lonn/huldt-og-lillevik-lonn/), a Norwegian payroll system.\
This system is about to end it's existence by the end of 2022.

The Huldt & Lillevik export are based on global export templates. There are two templates to be used as base when this export is to be used.

* H\&L timer
* H\&L utlegg

## Export configuration

To use Huldt & Lillevik export there is the need to create a [custom template](https://docs.milientsoftware.com/help/moment-by-topic/integrations/file-exports/export-templates/custom-template) to be used. Check out the link on how to do that. If both global templates are to be used, there must be created a custom template for each of these.

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

## Files

The files produced for Huldt & Lillevik are flat ASCII positioned based files and contains the following data.

| Field             | Length | Moment field             |
| ----------------- | ------ | ------------------------ |
| Employee ID       | 6      | External employee number |
| Wage type number  | 5      | External salary code     |
| Department number | 12     | Department number        |
| Project number    | 12     | Project number           |
| Element 1         | 12     | N/A                      |
| Element 2         | 12     | N/A                      |
| Element 3         | 12     | N/A                      |
| Element 4         | 12     | N/A                      |
| Element 5         | 12     | N/A                      |
| Date              | 6      | Record date              |
| Quantity          | 10     | Record quantity          |
| Rate              | 10     | Record rate              |
| Amount            | 13     | Record amount            |
| Filler            | 30     |                          |

All fields are required, if there is no data the field should be containing blank spaces or 0's (zero).

#### Format

* Date format: DDMMYY
* Decimal separator: none, 2 decimals
