How the export works
With the Duett export, Project Flow creates the files you import into the accounting system Duett, in Duett's own format. It is a file export, not a live connection.
Each export creates three files, which you import together in Duett:
| File | Content |
|---|---|
VB_BILAG.TXT | The postings (vouchers) for the invoices |
VB_RESK.TXT | The customer ledger: one line per invoice |
VB_KUNDE.TXT | The customers on the invoices |
Duett (Mamut) is another way to export to Duett, as one file in the Mamut format (GBAT10). It works differently, see the article Duett (Mamut) (export).
Set up the export
Step 1: Add the integration
- Go to Setup → Settings → Integrations (Oppsett → Innstillinger → Integrasjoner) and switch to the tab Export to file (Eksport til fil). You need administrator access.
- Click + Create integration and choose Duett.
- Fill in the fields below, tick Enabled and save.
Project Flow plan. The export isn't available on the Start plan.
Step 2: Duett settings
| Field (EN / NB) | Description |
|---|---|
| Ledger account / Hovedbokkonto | The customer receivables account, usually 1500. Required. |
| VAT account / Momskonto | The account for the VAT lines, usually 2700. Required. |
| Project number / Regnskapsprosjekt | Whether and how the project is sent: don't export project number (default), export project number from project, or export project number from tag in tag group (then choose the Project tag group). |
| Accounting department / Regnskapsavdeling | Whether and how the department is sent. See the note below. |
Department. The department column in the posting file is currently always empty, whatever you choose in Accounting department.
Step 3: How and when the files are sent
| Field (EN / NB) | Description |
|---|---|
| Default invoice issue date limit / Standard sluttdato for fakturaeksport | Which invoices are included, by invoice date: Up to and including last day of previous month, Current date, or No limitations on date (everything that hasn't been exported yet) (default). |
| Send data to / Send data til | Download folder (default): the three files are downloaded one after another. Email: one e-mail with the three files attached. FTP / FTPS (also SFTP) or HTTP / HTTPS: the three files are sent there. |
| Transfer files / Send over filer | Only for FTP and HTTP. Manually (default), or Continuously (after each invoice finalization). |
| Define access / Definer tilgang | Only for manual transfer. Limit who may run the export, by access role or coworker. |
Same file names every time. The files always have the same names. On FTP, a new export replaces the previous files, so import them in Duett before the next export.
Step 4: Prepare Project Flow
- Rounding account. A default rounding account is required. Without it, the export fails with "Missing rounding account".
- VAT rates. Project Flow sets the Duett VAT code from the VAT % of each bookkeeping account (see the table under The files).
- Short numbers. The files have fixed field lengths, and longer values are cut off without a warning:
- invoice number: 6 characters;
- customer number: 8;
- account number: 6;
- project number: only the last 3 characters are used;
- customer name and address: 25.
Run the export
- When there are invoices to export, Export to accounting (N) (Eksport til regnskap) appears in the notifications menu (the bell). You need permission to edit invoices, and must be on the access list if one is defined.
- Click it, check the Invoices to be exported, and choose an Until date if your date limit allows it.
- Click Export (Eksporter). With Download folder, the three files are downloaded. Allow your browser to download several files if it asks.
- In Duett, import the three files.
- Which invoices: finalized invoices and credit notes with the export status To transfer and an invoice date within the date limit.
- After the export: the invoices get the export status Has been transferred (Har blitt overført).
- Export again: in the invoice overview, open the cog menu, choose Edit export status for several invoices, set the invoices back to To transfer, and run the export again.
- Earlier files: in the invoice overview, open the cog menu and choose Exported files (Eksporterte filer).
The files
All three files have fixed-width lines, with no header row:
- encoding Windows-1252, Windows line breaks;
- dates as
dd.mm.yy; - amounts with 2 decimals and a decimal comma.
VB_BILAG.TXT (postings)
Each line has the invoice number (as voucher number), account, code, department, project, VAT code, invoice date and amount. For each invoice there are:
- A line on the ledger account (code 199) with the total including VAT.
- A line on the VAT account (code 197) with all the VAT on the invoice, if there is VAT.
- A rounding line on the rounding account, if the invoice is rounded.
- One line per bookkeeping account with the amount excluding VAT: code 123 for invoices, 124 for credit notes.
The lines are sorted by type, not by invoice. Credit notes have the opposite signs.
| VAT % on the account | Duett VAT code |
|---|---|
| 25 % | 23 |
| 12 % | 26 |
| 6 % | 28 |
| 0 % | 4 |
| Any other rate, for example 15 % | 99 |
VB_RESK.TXT (customer ledger)
One line per invoice:
- invoice number and customer number;
Ofor an invoice orKfor a credit note;- invoice date and due date;
- total including VAT, KID and customer name;
- total excluding VAT.
VB_KUNDE.TXT (customers)
One line for each customer on the exported invoices, every time:
- customer number and name;
- address line 1 from the customer's main address;
- postal code (Norway) or postal code and place (other countries);
- phone;
- country name for customers outside Norway.
For Norwegian customers the postal place isn't included.
Q&A
Q: The export fails with "Missing rounding account".
A: Set a default rounding account under the bookkeeping accounts in Project Flow.
Q: The invoice or project number is wrong in Duett.
A: The fields are short: invoice numbers are cut to 6 characters, and only the last 3 characters of the project number are used. Use shorter numbers, or the Duett (Mamut) export.
Q: The department isn't in Duett.
A: The department column is currently always empty in this export.
Q: Food VAT (15 %) gets VAT code 99.
A: Only 25, 12, 6 and 0 % have their own code. Correct the VAT code in Duett, or use the Duett (Mamut) export, where you set the VAT code per account.
Q: I need to export an invoice again.
A: Set its export status back to To transfer with Edit export status for several invoices, and run the export again. Or download the earlier files from Exported files.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article