Visma Business (export)

Modified on Thu, 5 Nov at 12:04 PM

How the export works

With the Visma Business export, Project Flow creates a file with your invoices, and optionally customers and projects, that you import into Visma Business. It is a file export, not a live connection. Project Flow doesn't log in to Visma Business, and nothing comes back from Visma Business to Project Flow.

  • What is exported: finalized invoices and credit notes, as vouchers; customers; and projects.
  • How the file gets to Visma Business: you download it, or Project Flow sends it by email, FTP/SFTP or HTTP.
  • When: when you run the export, or automatically after each invoice is finalized (FTP and HTTP only).

Project Flow is the master. Customer, project and invoice numbers come from Project Flow, and are used as they are in the file.



Set up the export

Step 1: Add the integration

  1. Go to Setup → Settings → Integrations (Oppsett → Innstillinger → Integrasjoner) and switch to the tab Export to file (Eksport til fil). You need administrator access.
  2. Click + Create integration and choose Visma Business.
  3. Fill in the fields below, tick Enabled and save.

Project Flow plan. The export isn't available on the Start plan.


Step 2: How and when the file is sent

Field (EN / NB)Description
Default invoice issue date limit / Standard sluttdato for fakturaeksportWhich 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 tilDownload folder (default): the file is downloaded in your browser. Email, FTP / FTPS (also SFTP) or HTTP / HTTPS: Project Flow sends the file there.
Transfer files / Send over filerOnly for FTP and HTTP. Manually (default): when you run the export. Continuously (after each invoice finalization): one file per invoice, sent as soon as the invoice is finalized.
Define access / Definer tilgangOnly for manual transfer. Limit who may run the export: choose access roles, or specific coworkers.

Fields for each sending method:

  • Email: recipient addresses (separated by semicolons), subject and message.
  • FTP / FTPS / SFTP: type, host, port (for example 21, or usually 22 for SFTP), username, password and the directory to put the file in.
  • HTTP / HTTPS: the URL, username and password. Project Flow sends the file with an HTTP PUT to exactly that URL, with basic authentication. The file name isn't sent, so the receiving system must accept the file at that URL.


Step 3: Visma Business settings

Field (EN / NB)Description
Client ID / Klient-ID for eksport til regnskapssystemYour company's number in Visma Business. It is written at the start and end of the file. Required.
Export customers / Eksporter kunderInclude customers in the file.
Export projects / Eksporter prosjekterInclude projects in the file.
Include all new customers and projects / Inkluder alle nye kunder og prosjekterAlso include customers and projects that haven't been exported yet, even if they have no invoices in this export. Without it, only the customers and projects of the exported invoices are included.
Field name for projects / Feltnavn for prosjekterThe field used for the project number in Visma Business, usually R7, or another value between R1 and R10. Leave it empty if the project number shouldn't be on the voucher lines.
Field name for external project number / Feltnavn for eksternt prosjektnummerThe field for the external project number. Only used in the export from To be invoiced. Leave it empty if you don't need it.
Add extra new line after header / Legg til ekstra ny linje etter topptekstAdds an empty line after the first two lines of the file, if your Visma Business import needs it.
Allow export of invoice basis from to be invoiced / Tillat eksport av fakturagrunnlag fra å bli fakturertTurns on the export of hours from To be invoiced (see below). When it is on, you also fill in Income account (required) and, optionally, Custom field for purchasing department.

New integration: Export customers, Export projects and Add extra new line after header work as turned on until you save them. If you don't want one of them, tick it, untick it and save.


Step 4: Accounts, VAT and departments in Project Flow

The export uses the bookkeeping data you have in Project Flow. Check it before the first export:

  • Account numbers: on each bookkeeping account, the account number must exist in Visma Business.
  • Tax codes: each bookkeeping account needs an Accounting VAT code (Regnskap MVA kode) with the tax code from Visma Business. If it is empty, the tax code is left empty in the file.
  • Revenue class: fill in External revenue class (Ekstern omsetningsklasse) on the account if you use transaction classes in Visma Business.
  • Departments: Project Flow sends the department's Department number in external system, or the department number if that is empty.
  • Currency: Project Flow sends the currency's external currency code if you have set one, otherwise the ISO code, for example NOK.



Run the export

  1. When there is something 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.
  2. Click it. The export window lists the Customers to be exported, Projects to be exported and Invoices to be exported (invoice number, date, project and amount). Choose an Until date if your date limit allows it.
  3. Click Export (Eksporter). You see "Data export succeeded". With Download folder, the file is downloaded right away.
  • After the export: the exported invoices, customers and projects get the export status Has been transferred (Har blitt overført), so they aren't exported again.
  • Nothing to export: the window shows "Nothing to export".
  • The bell entry updates slowly. The number can take up to 15 minutes to update after new invoices are finalized.

Which invoices are included: finalized invoices and credit notes with the export status To transfer and an invoice date within the date limit, in invoice-number order.



Export status

Every invoice, customer and project has an export status:

Status (EN / NB)Meaning
To transfer / Til overføringWill be included in the next export. Default.
Has been transferred / Har blitt overførtAlready exported.
Do not transfer to accounting / Ikke overfør til regnskapNever exported.
  • See the status: in the invoice overview, show the column Export status, or filter on Export status (accounting).
  • Change many invoices: in the invoice overview, open the cog menu and choose Edit export status for several invoices, then enter a range of invoice numbers and the new status.
  • Customers and projects: use Change export status in their overviews.
  • Changed customers and projects are exported again. If you edit a customer or project that has been transferred, it goes back to To transfer, so the change is included in the next export.

Export again: 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) to download any file exported before.



The file

The export is a Visma Business import file with the extension .edi. Its encoding is ISO-8859-1, values are comma-separated, text values are in quotes, dates are YYYYMMDD, and the decimal separator is a period. Each manual export creates one file with everything in it. The file name contains your company, the date limit and the time of the export, and ends with -vismaBu.edi.

SectionContent
@FIRM_BEGIN(…)The Client ID
@IMPORT_METHOD(1)Import method
@Actor(=CustNo,BsNo,Nm,Ad1,Ad2,Ad3,PNo,PArea,Ctry)One line per customer: customer number, organization number, name, invoice address lines 1–3, postal code, postal place and country. Only if Export customers is on.
@R7(=RNo,Nm,CustNo)One line per project: project number, name and customer number. The section name is your Field name for projects (R7 if empty). Only if Export projects is on.
@WaBnd(Descr,ValDt,SrcTp)The voucher batch: "Export fra Moment", today's date and source type 12.
@WaVo(…)The vouchers (see below).
@FIRM_END(…)The Client ID

Vouchers for each invoice

Each invoice becomes one customer line and one line per bookkeeping account used on the invoice. Invoice lines on the same account are added together, and text lines are left out.

FieldCustomer lineAccount lines
VoNoInvoice number
VoDt / ValDtInvoice date
VoTp11 for invoices, 12 for credit notes
Txt"Utgående faktura" or "Utgående kreditnota"
DbAcNo / CrAcNoThe customer number (debit for invoices, credit for credit notes)The account number (credit for income, debit for negative amounts)
DbTrnCl / CrTrnCl–The account's External revenue class
DbTxCd / CrTxCd–The account's Accounting VAT code
AmInvoice total including VAT, in your company currencyThe account's amount including VAT, in your company currency
InvoNoInvoice number. Empty on credit notes.
AgRefOn credit notes: the number of the invoice that is credited
CustCustomer number
DueDtDue date
CIDKID / OCR number
Cur / ExRt / CurAmCurrency, exchange rate and amount in the invoice currency
R1–Department
Field name for projects (e.g. R7)–Project number. Only if Field name for projects is filled in.

Rounding. If the invoice is rounded, the rounding is added as its own account line on the rounding account.



Continuous transfer

With FTP or HTTP and Continuously (after each invoice finalization), Project Flow sends a file for each invoice as soon as it is finalized. The file contains that invoice, with its customer and project.

  • No bell entry. The export entry in the notifications menu isn't shown in this mode.
  • Status before upload. The invoice gets the status Has been transferred when the file is created. If the upload fails afterwards, the failure is only shown in Company → Logs, for example "The export/transfer of file(s) … via ftp failed.", with a link to download the file. Check the log regularly, and import any failed file by hand.



Export hours from To be invoiced

With Allow export of invoice basis from to be invoiced turned on, Finances → To be invoiced gets the menu item Export invoice basis for selected projects to Visma Business. It exports the value of the selected projects' hours, for example for internal invoicing between departments.

  • What is in the file: one voucher pair per project, voucher type 4, text "Interne timer Moment", dated today, with the estimated sale value of the hours.
  • The debit line uses the customer number, with the department from Custom field for purchasing department on the project.
  • The credit line uses the Income account.
  • Project fields. The project number and external project number are included if you have set their field names.
  • Only hours. Expenses aren't included.
  • Hours aren't marked as exported. The same hours can be exported again, so keep track of what you have exported.

When the file is ready, you see "Export file has been generated" with a Download button.



Q&A

Q: I don't see "Export to accounting" in the notifications menu.

A: Check four things:

  • There is something with the status To transfer.
  • You have permission to edit invoices.
  • You are on the access list, if Define access is used.
  • Transfer isn't set to Continuously.

The number can take up to 15 minutes to update.

Q: An invoice is missing from the export.

A: Check two things:

  • Its export status is To transfer.
  • Its invoice date is within the Default invoice issue date limit, or the Until date you chose.

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 file from Exported files.

Q: Visma Business rejects the tax code.

A: Fill in Accounting VAT code on the bookkeeping accounts in Project Flow with the tax codes from Visma Business. Without it, the tax code is empty in the file.

Q: The project number isn't on the voucher lines.

A: Fill in Field name for projects with the field you use for projects in Visma Business, for example R7.

Q: A file sent by FTP never arrived.

A: Look in Company → Logs for the failed transfer. Download the file from the log entry or from Exported files, and import it by hand.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article