How the export works
With the Visma DI Systems export, Project Flow creates an XML file in the DI format (DI-TransactionInterchange) with your finalized invoices and credit notes as vouchers, and the customers on them. You import the file in Visma DI Systems. It is a file export, not a live connection.
- One file with both customers and vouchers.
- One direction. Nothing comes back from Visma DI, neither payments nor expenses.
- Totals per account. Each invoice becomes a voucher with one line for the customer and one line per bookkeeping account, not the individual invoice lines.
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 Visma DI Systems.
- Fill in the fields below, tick Enabled and save.
Project Flow plan. The export isn't available on the Start plan. If it has a monthly cost, the form shows it.
Step 2: Visma DI settings
| Field (EN / NB) | Description |
|---|---|
| Export departments / Eksporter avdelinger til regnskap | Adds the invoice's department to the account lines. Off by default. |
| Client ID / Klient-ID for eksport til regnskapssystem | Your company's client number in Visma DI. It is written in the file header. Required. |
Step 3: How and when the file is 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), Email, FTP / FTPS (also SFTP) or HTTP / HTTPS. |
| Transfer files | 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. |
Step 4: Prepare Project Flow
- VAT codes: fill in Visma DI's VAT code in Accounting VAT code (Regnskap MVA kode) on each bookkeeping account. If it is empty, Project Flow uses
9for accounts with 0 % VAT and1for all others. - Rounding: set up a bookkeeping account for rounding (the default account for the line type Rounding). Without it, the rounding isn't in the file and the voucher doesn't balance.
- Invoice numbers: Visma DI takes at most 6 digits. Longer invoice numbers are cut to the last 6 digits.
- Departments: with Export departments, the department's Department number in external system is used, or its number if that is empty.
- Customers need a customer number, and every invoice line a bookkeeping account. Every invoice needs a due date.
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 a To date if your date limit allows it.
- Click Export. You get a link to the file. With Download folder, it is downloaded right away.
- What is included: finalized invoices and credit notes that haven't been exported yet, up to the date you choose.
- After the export: the invoices get the export status Has been transferred.
- Export again: in the invoice overview, open the cog menu, choose Edit export status (Rediger eksportstatus), 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).
- Continuous transfer: with FTP or HTTP and Continuously, each invoice is sent when it is finalized, and the menu item doesn't appear.
The file
- An XML file in UTF-8, in the DI format DI-TransactionInterchange 1.0.
- Named
{company}-{id}-to-{date}-at-{time}-vismaDi.xml. - Dates as
YYYY-MM-DD, amounts with a period as decimal separator.
Header
| Element | Content |
|---|---|
| ClientEntity / ClientID | The Client ID |
| OriginSystemCode | OTHER |
| OriginSoftware | Moment |
Customers
One Customer for each customer on the exported invoices, in every export:
| Element | Content |
|---|---|
| CustomerAccountID | Customer number |
| Party / Name | Customer name |
| PartyLegalEntity / OrganizationNumber | Organization number, if any |
| PostalAddress | From the customer's main address: address lines 1 and 2, postal place, postal code and country code (for example NO). Left out if the customer has no main address. |
Vouchers
All invoices are in one Transaction (bundle):
- AccountingPeriod: the export's To date.
- BundleCategoryCode:
Outgoing invoices. BundleDescription:Utg Faktura.
For each invoice:
- One customer line, with the customer number as account, the invoice total including VAT, and VAT code
9. - One line per bookkeeping account on the invoice, with the amount including VAT as a negative amount, and the account's VAT code. There is no separate VAT line: Visma DI splits out the VAT with the VAT code.
- A rounding line on the rounding account, if the invoice is rounded and a rounding account exists.
Credit notes have the opposite signs.
| Element on each line | Content |
|---|---|
| InvoiceID | Invoice number (last 6 digits) |
| VoucherCategoryCode | 1 invoice, 2 credit note |
| VoucherDate | Invoice date |
| DueDate | Due date |
| Account / AccountID | Customer number or account number |
| DepartmentID | Department, only on account lines and with Export departments |
| Tax / TaxCode | See Step 4 |
| GrossAmount | Amount including VAT, with the invoice currency as attribute, for example NOK |
| KID | The invoice's KID, if any |
Not in the file: projects, invoice lines with item text and quantity, the invoice text, the PDF and attachments. Amounts are in the invoice currency, without conversion.
Q&A
Q: The export fails with "Failed to export data due to an unexpected error."
A: Check that the invoices have a due date, that the customers have a customer number and a country, and that every invoice line has a bookkeeping account. If that isn't it, contact Project Flow support with the invoice numbers.
Q: The voucher doesn't balance in Visma DI.
A: Usually the rounding is missing. Set up a bookkeeping account for rounding in Project Flow, set the invoice back to To transfer and export again.
Q: The VAT is wrong in Visma DI.
A: Fill in Accounting VAT code on the bookkeeping accounts with the codes Visma DI uses.
Q: Two invoices got the same number in Visma DI.
A: Invoice numbers with more than 6 digits are cut to the last 6, so for example 1000123 and 2000123 both become 000123.
Q: Can I export projects?
A: No. The file has customers and vouchers, with departments if you choose, but no projects.
Q: "There are no invoices to export in the specified period."
A: All finalized invoices up to the date are already exported. Choose a later date, or set invoices back to To transfer with Edit export status.
Q: I need to export an invoice again.
A: Set its export status back to To transfer with Edit export status, and run the export again. Or download the earlier file 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