> For the complete documentation index, see [llms.txt](https://docs.milientsoftware.com/help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.milientsoftware.com/help/moment-by-topic/integrations/known-issues/general/moment-gives-an-error-regarding-lacking-vat-codes-on-sales-accounts-saf-t.md).

# Invoice not transferred due to VAT code

## Relates to

This issue relates to integrations where invoices are transferred to external system.

* 24SevenOffice
* Azets Connect
* Fiken
* Fortnox
* PowerOffice Go
* Tripletex
* Uni Economy
* Visma e-conomic

Having one of the integrations listed above active you might experience that some invoices have not been transferred due to problems with the VAT codes. These codes correspond with the SAF-T VAT codes as defined by the Norwegian Tax Authority. You can find more information about these codes in the following link: <https://www.skatteetaten.no/globalassets/bedrift-og-organisasjon/starte-og-drive/rutiner-regnskap-og-kassasystem/saf-t-regnskap/norwegian-saf-t-standard-vat-codes.pdf>

## Check

Check the log in Moment, to see if there are any entries with error when transferring invoices.

The log is found under Company / Logs

![](/files/-MeeFT8tedVseKwfT4Nl)

An example on how a record might be. This is for PowerOffice Go

<div align="center"><img src="/files/-MeeGClBPOKGjCmDzyS6" alt=""></div>

## Reason

The issue can occur if there is missing or wrong VAT codes in Moment.

Moment do not predefine VAT codes, as these differ from system to system. And even for each of the systems, there are no standard.

## Solution

Make sure that the VAT codes used in Moment are correct.

### How to fix:

Define VAT codes for the sales accounting in your company settings. \
You will find these under Setup / Accounting / Bookkeeping accounts.&#x20;

![](/files/-MT_Xqi3A_7_aSJDNK1C)

Click "Edit" for the account that needs to be updated. and add a VAT account code in the respective account. <br>

What is the correct VAT code? This is a question we can't answer for you, as this relates to the accounting system and how that is configured. Once you have selected the account and added the SAF-T code, make sure you save. This will make sure that future invoices will include the correct SAF-T values. In the next step, we will show you how to re-export the invoices the your accounting program from Moment. '

### Re-exporting invoices to your accounting program

After you have made the necessary changes to the VAT code in the accounts, you will need to re-send the invoices. To do this, you need to go to the tab "tools" under  *setup*:&#x20;

![](/files/-MT_Y5ChLSfPV3jIaL8g)

If this tab is not enabled, then someone with administrator rights needs to enable it within the company settings in Moment.&#x20;

Under *tools* you will find this functionality

![](/files/-MT_YDNiMJOZ-eAZsLtO)

The only thing you need to do is to enter the invoice numbers for the invoices that failed. Don't worry, Moment will automatically ignore duplicate invoices, so if they are already successfully imported in the accounting system, they won't be transferred. If there is only one invoice that failed, then you just need to enter the same invoice number in both fields.&#x20;

When you have clicked "run", check the log, after a couple of minutes (or several if there are many invoices that have failed) you will see that they have been successfully transferred.&#x20;


---

# 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 dynamically by asking a question.

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

```
GET https://docs.milientsoftware.com/help/moment-by-topic/integrations/known-issues/general/moment-gives-an-error-regarding-lacking-vat-codes-on-sales-accounts-saf-t.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
