# eFina

eFina, a Finnish accounting system, to which Moment support export of invoices.\
eFina is created as a global template, see more about this [here](https://docs.milientsoftware.com/help/moment-by-topic/integrations/file-exports/export-templates).

## Export configuration

Configuration of export is to be done following the standard [configuration](https://docs.milientsoftware.com/help/moment-by-topic/integrations/file-exports/..#export-templates-1).

eFina does not have any settings that can be set when configuring to use this, but as there are options in what is to be sent, it can be done by making edits to the global template before saving the customer template.

## File

The files produced for eFina are CSV files that use ; (semi-colon) as separator. The files also contains multiple sections of data. Each section starting with a tag

### \<LASKU>

| Field               | Description       |
| ------------------- | ----------------- |
| Invoice number      |                   |
| Invoice type        |                   |
| unknown \* 2        |                   |
| Customer number     |                   |
| Customer name       |                   |
| unknown             |                   |
| Customer address    |                   |
| unknown \* 23       |                   |
| Order reference     |                   |
| Contact name        |                   |
| Customer reference  |                   |
| unknown \* 2        |                   |
| Issue date          |                   |
| Due date            |                   |
| unknown \* 2        |                   |
| Total sum incl. VAT |                   |
| Total sum ex. VAT   |                   |
| unknown \* 8        |                   |
| Currency code       |                   |
| unknown \* 3        |                   |
| Payment ID/OCR      |                   |
| unknown \*3         |                   |
| 0                   | (hardcoded value) |
| unknown \* 12       |                   |

### \<LASKURIVI>

| Field          | Description |
| -------------- | ----------- |
| Product number |             |
| Product name   |             |
| Unit type      |             |
| unknown        |             |
| VAT percentage |             |
| Quantity       |             |
| Unit price     |             |
| unknown \* 4   |             |

### \<DIM1>

Only included if the invoice is linked to a department

| Field               | Description       |
| ------------------- | ----------------- |
| unknown             |                   |
| Department number   |                   |
| 100,00              | (hardcoded value) |
| Total sum incl. VAT |                   |

### \<DIM2>

Only included if the invoice is linked to a department

| Field               | Description       |
| ------------------- | ----------------- |
| unknown             |                   |
| Project number      |                   |
| 100,00              | (hardcoded value) |
| Total sum incl. VAT |                   |

#### Format

* Date format: YYYYMMDD
* Decimal separator: , (comma)


---

# 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/file-export-accounting-system/efina.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.
