Visma e-conomic integration

Modified on Thu, 5 Nov at 12:08 PM

How the integration works

The Visma e-conomic integration sends your customers, projects and finalized invoices from Project Flow to e-conomic, so you don't have to enter them twice. It can also import posted expenses from e-conomic to your projects in Project Flow, so you can invoice them.

WhatDirectionWhen
CustomersProject Flow → e-conomicWhen a customer is created or saved, and with each invoice
ProjectsProject Flow → e-conomicWhen a project is created or saved, and with each invoice
Invoices and credit notesProject Flow → e-conomicWhen the invoice is finalized
Expensese-conomic → Project FlowEvery night, or right after posting with a webhook (optional)
  • Project Flow is the master. Customer, project and invoice numbers come from Project Flow. Don't change them in e-conomic.
  • Payments. This integration doesn't bring payments back to Project Flow. For that you need the separate integration Visma e-conomic Payments.
  • Not transferred: hours, travel and expense claims, and supplier invoices.



Set up the integration

Before you start

In e-conomic, check that:

  • The project module is turned on, and there is a project group of type Internal.
  • Customer group 1 exists. New customers from Project Flow are added to it.
  • The accounts used on your bookkeeping accounts in Project Flow exist in e-conomic, with the same numbers.
  • The accounting years for your invoice dates exist.

In Project Flow, check that customer numbers and project numbers are numbers only. e-conomic only accepts numbers.

e-conomic package. According to Visma, the integration needs the Plus, Smart or Advanced package, and sending the invoice PDF needs Smart or Advanced.


Step 1: Give Project Flow access to e-conomic

  1. Log in to e-conomic as an administrator and open this link to add the Moment app.
  2. Click Tilføj app.
  3. Copy the ID that e-conomic shows. This is your agreement token.


Step 2: Add the integration in Project Flow

  1. Go to Setup → Settings → Integrations. You need administrator access.
  2. Click + Create integration and choose Visma e-conomic.
  3. Fill in the fields below, tick Enabled and save.
Field (EN / DA)Description
Agreement token / Aftale-kode (API)The ID from step 1. Required.
Journals / KassekladderThe cash journal (kassekladde) the invoices are put in. Click Fetch Journals (Hent kassekladder) to load the list from e-conomic. If you don't choose one, journal 1 is used.
Include PDF when transfer invoicesAttach the invoice PDF to the voucher in e-conomic. When ticked, you can also tick Include PDF attachments in invoice PDF export.
Import expenses / Importer udgifterImport posted expenses from e-conomic. See Import expenses below.
Co-workers to notify / Emails to notifyWho gets an e-mail when something can't be transferred or imported.
  • Test the token. Project Flow doesn't check the token when you save. Click Fetch Journals: if the list of journals appears, the token works.
  • Project Flow plan. The integration isn't available on the Start plan.



Customers

A customer is sent to e-conomic when it is created or saved in Project Flow, and again with each invoice. Project Flow looks for the customer in e-conomic by customer number:

  • Not found: Project Flow creates it, in customer group 1, with the payment terms in e-conomic that have the same number of credit days as in Project Flow (otherwise payment terms 1). The VAT zone is Domestic (1) for customers in Denmark or without a country, and Abroad (3) for all other countries.
  • Found: Project Flow updates name, address, postal code, city, country, e-mail, phone, currency and CVR number. Customer group, payment terms and VAT zone are only set when the customer is created, so you can change them in e-conomic.

Not sent: contacts that aren't marked as customers, and inactive customers.

Same number, different customer? If a customer number in Project Flow is already used by another customer in e-conomic, that customer is overwritten with the data from Project Flow. Make sure the number series match before you start.



Projects

A project is sent when it is created or saved, and again with each invoice. Project Flow sends the project number, name and the project's comment as description, in the first project group of type Internal.

  • Not sent: the customer and the project status. Template projects aren't sent.
  • The project number must be a number. Otherwise the log shows "projectNumber … is not numeric".



Invoices

When an invoice or credit note is finalized, Project Flow puts it as a voucher in the cash journal (kassekladde) you have chosen. It isn't created as an invoice in e-conomic.

Book the journal in e-conomic. The vouchers aren't posted automatically. Open the cash journal in e-conomic, check the vouchers and post them (bogfør).

The voucher has one line per bookkeeping account used on the invoice:

In e-conomicFrom Project Flow
CustomerThe invoice's customer number
Invoice numberThe invoice number
Date and due dateInvoice date and due date
AmountThe amount including VAT for that account, in the invoice currency
Contra accountThe account with the same number as the bookkeeping account in Project Flow
VATThe VAT amount, on the VAT code set on that account in e-conomic
Text"Import from Moment"
Currency and exchange rateFrom the invoice
AttachmentThe invoice PDF, if Include PDF when transfer invoices is ticked
  • Not sent: the project, department, products and KID/FIK number.
  • Lines without amount are left out.
  • VAT code. The VAT comes from the VAT code on the account in e-conomic, so check that each revenue account has the right VAT code there.


Send invoices again

If an invoice wasn't transferred, for example because an account was missing, correct the problem and send it again:

  1. Go to Setup → Tools (Admin tools) and choose Export → Export invoices.
  2. Enter the invoice numbers from and to, at most 300 invoices. Tick Include PDF versions if the PDF should be attached.
  3. Read the warning and click Ok, I understand. Run.

No duplicate check. Invoices that were already transferred are put in the cash journal again. Only send the invoices that are missing, and delete any duplicate vouchers in e-conomic before posting.



Import expenses

With Import expenses ticked, Project Flow imports expenses posted in e-conomic on a project, and adds them to the same project in Project Flow. You can then invoice them to the customer.

Field (EN / DA)Description
Account codes / KontokoderOnly import from these accounts, separated by commas, for example 4300, 4301, 4309. Leave it empty to import from all accounts.
Cost types / OmkostningstyperThe cost types in e-conomic to import, separated by commas. Required.
Expense activity / UdgiftsaktivitetThe activity on the project the expenses are put on. It is created if it doesn't exist. Fill it in, for example Imported expenses.
Make imported expenses billable / Indstil importerede udlæg som fakturerbareMark the imported expenses as billable. A setting for imported expenses on the project's price model overrides this.
Webhook settingShows the text to use if you set up a webhook in e-conomic (see below).

What is imported:

  • Posted entries only, with one of the cost types and, if set, one of the accounts.
  • Only entries on a project whose project number exists in Project Flow. Others are skipped, and the log shows "Couldn't find project by project number …".
  • From each entry: the text as title, the amount excluding VAT, the currency and the date. The voucher's PDF is attached when it exists.
  • Never twice. Each entry is only imported once.

When: every night, Project Flow imports the entries posted since the day before.

Fill in "Expense activity". If it is empty, Project Flow creates a new activity for each imported expense.


Optional: import right after posting

To get expenses into Project Flow as soon as they are posted, create a webhook in e-conomic:

  1. In e-conomic, go to All settings → Webhooks and click New webhook (Nyt webhook).
  2. Type: Kassekladde bogført.
  3. Name: for example Project Flow udlæg.
  4. URL: https://app.moment.team/api/1.0/webhooks/economic
  5. Data sent: copy the text shown under Webhook setting in the integration in Project Flow. It already contains your company code and the secret token.
  6. Content type: application/json.

The webhook only imports entries in the current accounting year. The nightly import still runs.



Check the log

Go to Company → Logs and choose the category Visma e-conomic. Each transfer is logged, for example:

  • "Customers exported successfully: 10001 (OK);"
  • "Invoices export failed: 1234 (Can't find account by accountNumber 3000);"
ErrorWhat to do
"Can't find account by accountNumber …"Create the account in e-conomic, or correct the account number on the bookkeeping account in Project Flow. If all accounts fail, check the agreement token.
"Can't find customer by customerNumber …"The customer couldn't be created in e-conomic. Look for the customer error just before it in the log.
"customerNumber … is not numeric" / "projectNumber … is not numeric"Change the number in Project Flow to numbers only.
"Can't find any project group."Create a project group of type Internal in e-conomic, and check that the project module is on.
"Cannot find accouning year for issue date …"Create the accounting year in e-conomic.
"Can't find currency by currencyCode …"Add the currency in e-conomic.
"Token does not correspond to a valid grant."The app has been removed in e-conomic, or the token is wrong. Repeat step 1 and paste the new token.

E-mails. When something can't be transferred, the people to notify get an e-mail titled "Moment could not export data to Economic". Failed expense imports send "Error: Failed to import expenses from Visma e-conomic to Moment".



Q&A

Q: I can't find the invoices in e-conomic.

A: They aren't created as invoices. Look in the cash journal (kassekladde) chosen in the integration, journal 1 by default, and post them there.

Q: The project isn't shown on the voucher in e-conomic.

A: The project isn't sent with the invoice. Only customer, invoice number, accounts and amounts are sent.

Q: A customer in e-conomic was overwritten.

A: Project Flow updates the e-conomic customer with the same customer number. Give the customer in Project Flow a number that isn't used in e-conomic.

Q: An expense wasn't imported.

A: Check four things:

  • The entry is posted, not only in the cash journal.
  • It has one of the cost types, and one of the account codes if they are set.
  • It is posted on a project.
  • That project number exists in Project Flow.

Q: Do payments come back to Project Flow?

A: Not with this integration. Add Visma e-conomic Payments, which appears in the list once this integration is enabled.

Q: Can I send an invoice again?

A: Yes, with Export invoices under Setup → Tools. It isn't checked for duplicates, so only send the invoices that are missing.

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