Visma eAccounting accountancy integration
Breww integrates with Visma eAccounting as one of its automated accountancy integrations.
Most of the general setup process (mapping customers, choosing accounts, sync settings and enabling the sync) is the same as for all of Breww's automated accountancy integrations, so please read the main Accountancy guide first. This page covers the Visma-specific options, in particular choosing how your invoices are created in Visma.
Choosing how invoices are created in Visma
Breww can upload your invoices and credit notes to Visma eAccounting in one of two ways. You'll be asked to choose when you first connect the integration, and you can change your choice at any time from the integration's settings (Integrations > Accountancy, then next to Visma eAccounting select Actions > Configuration and open the Settings tab).
Journal vouchers (the default)
Each invoice and credit note is posted to Visma as a journal voucher (bokföringsorder), recording the sale directly against your chosen accounts. In this mode:
-
Breww's own invoice and credit note numbers are used in Visma.
-
A PDF copy of the invoice or credit note is attached to the voucher.
-
For Swedish breweries, Breww supplies the OCR payment reference on the voucher.
Because journal vouchers are accounting entries rather than sales documents, they cannot be sent as e-invoices from Visma.
Sales invoices
Each invoice is created as a real sales invoice in Visma, and each credit note as a credit sales invoice. Because these are proper sales documents, Visma's own e-invoicing (AutoInvoice) can send them, which you'll need if you invoice Swedish public-sector customers, as they must receive e-invoices via the Peppol network.
How this mode works is explained in detail below.
Whichever mode you use, payments sync both ways as normal. Payments recorded in Breww are uploaded to Visma, and payments recorded in Visma against Breww's documents are downloaded back to Breww.
Switching between modes
Changing the setting only affects invoices and credit notes uploaded after the change. Documents that have already been uploaded keep working unchanged, so payments continue to sync against them and their PDF copies remain in place. Nothing is re-uploaded or altered retrospectively, so it's safe to switch modes on an established integration.
How sales invoice mode works
Invoice numbers
Visma assigns its own invoice numbers to sales invoices, so the invoice number in Visma won't match the number in Breww. Breww's invoice or credit note number is stored in the sales invoice's "Our reference" field in Visma, so you can always cross-reference the two documents.
Articles
Visma needs every sales invoice row to reference an article. Breww puts each product line on that product's own article, so the invoice in Visma carries the article numbers you and your customers already use. Credit note lines for a product work the same way.
How Breww finds a product's article
If you've chosen an article for a product (see Choosing articles yourself below), Breww uses it. Otherwise, the first time it uploads a line for that product, Breww looks in Visma in this order:
- An article numbered with the product code. It must be active and not already used by another product.
- An article with the product's barcode. Breww only uses it when exactly one active article has the barcode.
- A new article. If nothing matches, Breww creates one. It's numbered with the product code, named after the product (cut to Visma's 50-character limit), given the sales category that fits the line, and given the product's barcode if it has one.
Breww saves the article it found or created against the product, so later uploads use it straight away, and you'll see it on the Products tab. Breww never edits or reactivates your articles in Visma. If you renumber an article in Visma, Breww still recognises it.
Breww only creates an article from a sale to a customer in your own country, because the sale that creates an article decides its sales category for good. If a product's first sale is abroad, that line uses one of Breww's sales category articles (see below), and the product's article is created on its first sale at home.
Breww can't create an article for a product when:
- the product has no product code
- the product code is longer than 40 characters, the most Visma allows in an article number
- Visma already has an article with that number, even an inactive one
For these products, choose the article yourself.
An alias product uses its own article if you've chosen one for it. Otherwise it uses its parent product's article, and Breww finds or creates the article for the parent product.
Choosing articles yourself
- Go to Integrations > Accountancy and, next to Visma eAccounting, select Actions > Configuration.
- In the Data import & mapping section of the Dashboard tab, select Accounts & tracking categories.
- Open the Products tab.
- In the Article column, choose the product's article, then click outside the box to save it.
The Article column lists your active articles in Visma as their number and name. Leave a product on Find or create automatically to let Breww find or create its article as described above. For an alias, the blank choice is Same as parent product. Breww's own sales category articles aren't listed.
Breww reads your articles from Visma when you open the tab and keeps the list for up to 5 minutes, so an article you've just added in Visma can take a few minutes to appear. If a product is linked to an article that's now inactive or no longer in Visma, the column shows its number followed by (inactive or missing in Visma eAccounting). If Breww can't reach Visma, a warning says the Article column couldn't be loaded. Reload the page a few minutes later.
You can also type an article number:
- On the product, in the Article field in the Accountancy integration options section, when you create or edit a product or an alias. Saving doesn't check Visma. Breww looks the article up the next time it uploads the product.
- In a product import or bulk update, in the accountancy product SKU column for your Visma connection.
Entering a different number replaces the product's article. Clearing it lets Breww find or create one again. Duplicating a product doesn't copy its article, so the copy finds or gets its own on its first upload.
Articles are only used in sales invoice mode. If your invoices are created as journal vouchers, the Products tab says so, but you can still choose articles now so they're ready if you switch.
When a line uses a different article
On a Visma sales invoice, an article's sales category decides the account and VAT rate of every row that uses it, and a row can't change them. So a line can only use the product's own article when that article's sales category posts the line's VAT rate to the line's sales account.
When it doesn't, or when Breww can't find or create the article, the line goes on one of Breww's sales category articles instead, with the product's own article number at the start of the row text. The invoice or credit note still uploads with the right accounts and VAT.
Breww then adds a Product item not used message on the Sync messages tab, saying which product was affected, why, and what you can change, with an Open the Products tab button. The usual reasons are:
- the article is inactive in Visma, or can no longer be found there, for example because it was deleted
- the article's sales category posts a different VAT rate or account from the line, for example after a product's VAT rate or sales account has changed in Breww
- the sale is to a customer outside your country. These sales usually have a different VAT rate from the article's sales category, so they always use Breww's sales category articles, and you don't need to change anything
- more than one article in Visma has the product's number or barcode, so Breww can't tell which to use
- the product hasn't got an article yet and Breww couldn't create one, for one of the reasons above
The document has already been uploaded, so there's nothing to retry. Changes you make apply to the next document Breww uploads, and Breww doesn't alter documents already in Visma. Once you've read the message, press the ignore button next to it to clear it.
Breww's sales category articles
Breww still creates its own articles for rows that don't use a product's article: delivery and other additional charges, credit note lines without a product, rounding, and the fallback lines described above. There's one for each combination of sales account and VAT rate that you invoice, numbered like BRW3001-SE25 (the account number followed by the Visma VAT rate code). You don't need to create or manage them.
Sales accounts and Visma sales categories
In Visma eAccounting, the account and VAT treatment an article posts to is controlled by its sales category (article account coding), and Visma doesn't allow these to be created via its API. This means each sales account you choose in Breww, including your default sales account and any overrides on products, customer types and so on (see Chart of accounts), must be an account that one of your existing Visma sales categories posts to at the relevant VAT rate.
If no sales category matches, Breww will raise a sync message naming the exact account and VAT rate combination, and listing the accounts your existing sales categories would support at that rate. To resolve it, either:
-
Change the sales account in Breww to one of the listed accounts, or
-
Create or adjust a sales category in Visma so that it posts to your chosen account at that VAT rate.
Then retry the upload from the sync messages screen (see Upload issues).
PDF copies
A PDF copy of each invoice and credit note is attached to the sales invoice itself in Visma, rather than to a voucher.
OCR payment references
The Swedish OCR payment reference on a sales invoice is generated by Visma, according to your invoice settings in Visma. This is unlike voucher mode, where Breww supplies it.
Cost centres
If you use tracking categories in Breww, they are carried onto each sales invoice row as Visma cost centres, just as they are onto journal voucher rows.
Uploading invoices as drafts
In sales invoice mode, Breww can upload each invoice to Visma as a draft (fakturautkast) instead of booking it straight away. This lets you review each invoice in Visma before you book and send it. Credit notes are always booked straight away.
Turning on draft uploads
Open the Settings tab of the integration and enable Upload invoices as draft in the Extra options section. You can also enable it when you first connect Visma. The setting only works with sales invoices, so if How should invoices be created in Visma? is set to journal vouchers, Breww asks you to change it to sales invoices or leave drafts disabled.

The setting applies to invoices uploaded from then on. It isn't available while balance sheet syncing is enabled.
While an invoice is a draft
The invoice page shows Uploaded as a draft to Visma eAccounting, with the draft's reference ID and a View in Visma eAccounting button that opens it in Visma.

Visma doesn't accept payments against a draft, so Breww holds back any payments you record on the invoice in Breww. Each one shows a clock icon, and hovering over it explains that Breww will upload the payment once the invoice has been approved. Credit notes allocated to the invoice wait in the same way.

When you book the draft
Breww checks your drafts regularly, and again each time it downloads payments from Visma. Once it finds that you've booked a draft, Breww:
-
marks the invoice as Uploaded
-
uploads the payments and credit note allocations that were waiting
-
attaches the PDF copy of the invoice to the booked invoice in Visma
Visma gives the invoice its number when you book it, as it does for any sales invoice. Breww's invoice number stays in the Our reference field.
If you changed the draft's total in Visma before booking it, so that it no longer matches Breww, Breww raises a totals mismatch sync message. Breww doesn't change the booked invoice in Visma, so correct whichever side is wrong.
If you delete the draft in Visma
Breww marks the invoice as Upload deleted externally once the draft has been missing on two checks in a row, and the invoice page shows Draft deleted in Visma eAccounting. Breww doesn't upload it again by itself. If you still need the invoice in Visma, press the Attempt upload button (the upload icon) on the invoice page, or next to the message on the Sync messages tab, and Breww uploads a fresh draft. If you don't need it, cancel the invoice in Breww.

Cancelling an invoice that's still a draft
If you cancel an invoice in Breww while it's still a draft, Breww deletes the draft in Visma.
If you had already booked the draft before Breww could delete it, Breww can't void the booked invoice for you. The invoice page then shows Cancelled in Breww, but approved in Visma eAccounting, and Breww raises a sync message. Void the invoice in Visma, then press the ignore button next to the message on the Sync messages tab, and the warning disappears.

Rounding SEK totals (öresavrundning)
If you round SEK totals to the whole krona in Breww (see Rounding SEK totals to the whole krona (öresavrundning)), the rounding on each invoice and credit note is booked to the Öres- och kronutjämning account in Visma, without VAT. Your VAT amounts are never changed by the rounding.
- Journal vouchers: the rounding is added to the voucher as its own row on that account. There's nothing to set up.
- Sales invoices: the rounding is added as its own row, using an Article that Breww creates for that account at 0% VAT. As with your other accounts, one of your Visma sales categories must post to the Öres- och kronutjämning account at the zero-rated (0%) VAT rate, and the account must be active in Visma. If not, Breww raises a sync message explaining what's missing, so you can fix it in Visma and retry the upload.
Payments downloaded from Visma
Breww downloads the payments you record in Visma against Breww's invoices. It reads them whichever bookkeeping method your fiscal year uses, including the cash method (kontantmetoden), where a payment is booked straight to your sales and VAT accounts.
Factored invoices (Visma Finance)
If you sell (factor) your invoices through Visma Finance, Visma records a payout voucher named Betalning för såld faktura followed by the invoice number when the money reaches your bank. Breww reads that voucher as the payment for the invoice it names, so the invoice is marked as paid in Breww when the payout lands.