After you set up the integration between Legalsense and your accounting software, use this settings page to monitor the synchronization, review the sync queue, and manage the ledger and trust account configuration.
Legalsense integrates with the following accounting software. Each has its own article that explains the setup:
- AFAS (see ↪ AFAS)
- Exact Online (see ↪ Exact Online)
- Exact Financials (see ↪ Exact Financials)
- Fortnox (see ↪ Fortnox)
- Twinfield (see ↪ Twinfield)
Go to Settings and open the settings page for your accounting integration, for example Settings → Twinfield. The page looks the same for every accounting package, aside from the name. Where a package works differently, this article says so.
Note: Your environment synchronizes with one accounting package. If you exchange files with your accounting software instead of synchronizing, see the article ↪ Exporting to accounting software.
Accounting integration settings page for Twinfield, showing the synchronization status, queue, and ledger configuration options.
The settings page shows:
-
The status of the synchronization.
-
The elements that are in the queue and the elements that have already been synchronized.
-
The configuration options for the ledgers.
-
The email address of the administrator who receives synchronization error notifications.
Note: If the integration hasn't been set up yet, you won't see the pages described in this article. Opening the settings page takes you to the setup instead, for example the Authorize by Twinfield screen. Only Overview appears in the menu until the setup is finished. After that, Ledger accounts, Revenue accounts per user and Accounts per disbursement type appear too. To complete the setup, see the article for your accounting software.
In this article
Status
The status section shows whether Legalsense is currently synchronizing with your accounting software, and when the last successful sync took place. Legalsense synchronizes every 12 minutes (five times an hour), so the last successful sync should never be more than 12 minutes old.
If Legalsense can't synchronize with your accounting software, it shows a notification with the error message, if the accounting software provides one. Use this message to make the necessary corrections so the synchronization can continue. See Troubleshooting below.
Important: Synchronization can also stop silently, without an error message. If the last successful sync was more than 12 minutes ago and no synchronization is currently running, contact Legalsense Support.
Note: For AFAS, the status shows Inactive after you finish the setup, until Legalsense Support starts the synchronization. See the article ↪ AFAS.
Ledger accounts
On the Ledger accounts page, you map Legalsense's own accounting categories onto the actual ledger accounts in your accounting system, so bookings from Legalsense land on the right accounts when synced to your accounting software.
Default or custom mapping
At the top of the page, choose between:
- Use the Legalsense default ledger accounts: the table is greyed out and disabled. Legalsense uses its own built-in suggested mapping, for example Debtors → 1300 and Revenue (no VAT) → 8000. Nothing to configure.
- Customize the ledger accounts: the table becomes editable, so you can set your own value for every row.
Important: Switching back to Use the Legalsense default ledger accounts deletes your custom mappings and regenerates the defaults. It isn't just a visual toggle.
Note: If you don't use Revenue accounts per user, saving this page also updates the values on that page to match.
Setting the value per row (custom mode only)
Each row is a "slot" Legalsense needs a value for, for example Debtors, Creditors, several Revenue variants split by VAT rate or EU status, and prepayment disbursements. Every row is a required text field.
The rows are grouped under headers to keep the table easier to scan. While you type, Legalsense suggests matching values from your accounting system, depending on the group:
The suggestions come from a copy of your accounting system's data that Legalsense refreshes when you open the page.
If a value doesn't match any of the suggestions, saving asks you to confirm, since the value may have been renamed or deleted in your accounting system. You can still save. Journals and Other aren't checked, so make sure those values are correct in your accounting system.
Note: With Exact Online, if several firms are connected, a firm selector appears above the form so you can configure accounts per firm.
Note: The set of rows is fixed by what Legalsense needs mapped. You can't add or remove rows.
Ledger accounts page with Customize the ledger accounts selected, showing the first rows of the Ledger accounts section.
Revenue accounts per user
The Revenue accounts per user page lets you book revenue and office expenses to different ledger accounts or cost centers per user, for example to keep partner revenue separate from associate revenue, or to give each timekeeper their own cost center for profitability reporting. Revenue is split by the user who recorded the time, not by the matter supervisor.
It's a spreadsheet-style table with one row per user and seven editable columns: Cost centre, Revenue, Office expenses, Revenue EU, Office expenses EU, Revenue outside EU, and Office expenses outside EU. Every active user, except superusers, automatically gets a row.
Default or custom mapping
At the top of the page, choose between:
- No accounts per lawyer: all fields are locked and use the same firm-wide values from the Ledger accounts page.
- Specific ledger accounts or cost centers per lawyer: the table becomes editable, so you can set individual accounts or cost centers per user.
Important: Switching back to No accounts per lawyer deletes all custom values and regenerates the shared defaults for everyone. It isn't just a visual toggle.
Click a cell to edit it. While you type, Legalsense suggests values from your accounting system:
- Cost centre suggests cost centers.
- The revenue and office-expense columns suggest ledger accounts.
These are the same suggestions as on the Ledger accounts page. If a value doesn't match any suggestion, saving asks you to confirm. You can still save.
Note: Users who were deactivated or made superuser keep their row until you switch back to No accounts per lawyer.
Note: See Ledger accounts above for the firm-wide default routing this page overrides.
Revenue accounts per user page, showing the choice between No accounts per lawyer and specific ledger accounts or cost centers, and the first users in the table.
Accounts for disbursement types
The Accounts for disbursement types page lets you book each type of disbursement to its own ledger account, for example routing courier and postage costs separately from court filing fees. In the settings menu, the page is called Accounts per disbursement type.
It's one row per active disbursement type, each with a single field: the ledger account its cost should be booked to.
Default or custom mapping
At the top of the page, choose between:
- No overrides: no account is stored per disbursement type. Legalsense books costs on the general disbursement accounts from the Ledger accounts page, based on whether the disbursement is billable and on its VAT.
- Specific accounts per expense type: the fields become editable, and every active disbursement type needs an account.
While you type, Legalsense suggests ledger accounts from your accounting system, the same suggestions as on the Ledger accounts page. If a value doesn't match any suggestion, saving asks you to confirm. You can still save.
Note: Unlike the other account pages, the same ledger account can't be mapped to more than one disbursement type. If you try to reuse one, Legalsense shows This account is already mapped to existing expense type. You can swap accounts between two types.
If you import purchase invoices from your accounting software, these accounts also decide which lines Legalsense imports as disbursements, and which disbursement type each line gets.
Note: With Fortnox, Legalsense doesn't use these accounts when it sends disbursements. The ledger account depends only on the general disbursement accounts.
Important: Legalsense only uses these accounts if every active disbursement type has one. If even one type has no account, Legalsense ignores all of them and uses the general disbursement accounts instead, without showing an error.
- When you create a new disbursement type, fill in its account field.
- When you reactivate a disbursement type, set its account on this page.
Accounts for disbursement types page, showing the choice between No overrides and Specific accounts per expense type, and the first disbursement types.
Queue
The queue shows the elements still waiting to be synchronized with your accounting software.
- Click an element's name to open the item itself in Legalsense, for example the invoice or matter.
- Click the code icon (</>) at the end of the row to see the data Legalsense will send to your accounting software.
Elements are picked up and synchronized automatically. Legalsense sends clients and matters first, then imports from your accounting software, then sends invoices and disbursements. If an element fails, the synchronization stops until the problem is solved. See Troubleshooting below.
If something shouldn't be synchronized, contact Legalsense Support to remove it from the queue.
Queue page, showing the elements waiting to be synchronized and the code icon (</>) at the end of each row.
Synced
The Synced list shows the elements Legalsense has already synchronized with your accounting software.
- Click an element's name to open the item itself in Legalsense.
- Click the code icon (</>) at the end of the row to see the data Legalsense sent to your accounting software. The icon only appears for kinds of elements that Legalsense sends.
For each element, the Remote id column shows the identifier your accounting software uses for it. Use it to look up the corresponding item in your accounting software. Depending on the element, this can be:
- A debtor or creditor number.
- A project or cost unit code, for a matter.
- An invoice or booking number.
For some accounting software, the Remote id is an internal ID rather than a number you see in the software. For example, Exact Online clients get an internal ID.
If something needs to be synchronized again, contact Legalsense Support.
Alternative ways of booking revenue
Legalsense supports alternative ways of booking revenue to your accounting software. You can currently only set these up with support from Legalsense. For example:
- Revenue per matter supervisor or billing supervisor.
- Revenue per practice group.
- Revenue per practice area.
- Revenue per matter type.
If you want to book revenue using one of these alternatives, contact Legalsense Support.
When an alternative is set up for your installation, the ledger account pages show a notice that special customizations have been made behind the scenes.
Note: This is different from Revenue accounts per user, which books revenue based on the user who recorded the time.
Trust accounting
Once connected to your accounting software, trust accounting stops being tracked purely inside Legalsense. Legalsense imports the real transactions instead.
- Account: when you set up a trust account, this must be a real ledger account from your accounting software. If it isn't, Legalsense shows Ledger account does not exist.
- Suspense account: this is also required. Legalsense only checks it against your accounting software when Allow settling on invoices is selected.
- Balances: Legalsense imports the transactions booked on these ledger accounts during every synchronization. Every balance it shows is computed from those imported transactions, not from anything entered manually in Legalsense.
For a transaction to count towards a matter's trust balance:
- The entry must specify the matter or project it belongs to. Entries without one are imported, but don't count towards any matter.
- The matter must already be synchronized to your accounting software. Otherwise Legalsense shows no trust balance for it.
- With Twinfield and Exact Online, the entry must be final. Draft entries aren't imported. With AFAS, Exact Financials and Fortnox, Legalsense imports entries regardless of their status, so drafts can count towards the balance too.
Important: An entry without a matter reference is imported but doesn't count towards any matter, and Legalsense shows no error. Check the matter reference before relying on trust balances in Legalsense.
Note: With Twinfield and Exact Online, trust accounting can use a separate office or administration. With Twinfield, you can see it on the overview page under Trust accounting office.
See the article ↪ Trust accounting for more information.
Troubleshooting
The synchronization has stopped
During each synchronization, Legalsense first sends clients and matters, then imports from your accounting software, then sends invoices and disbursements. Items are sent one at a time. When an item fails, or an import fails, the synchronization stops there. Everything after it waits until the problem is solved.
Legalsense emails the address in the Email of the Administrator field the first time a new error occurs. If Legalsense doesn't recognize the error, it only emails after three failed synchronizations in a row.
- Go to Settings → [your accounting software] → Overview, for example Settings → Twinfield → Overview.
- If the synchronization failed, a red banner shows the problem. - When an item couldn't be sent, the banner starts with Previous synchronization failed when synchronizing, followed by the item. - When the problem happened while importing, the banner shows the error message itself.
Twinfield overview page with a red banner showing a synchronization error and the View details link.
- Click View details.
- Read the error. The page shows the error message and, when Legalsense recognizes the error, a suggested solution in a blue box.
Error page of the synchronization, showing the error message and the suggested solution in a blue box.
- Fix the cause. See the table below for the most common causes.
- Restart the synchronization: - Exact Online: click Error fixed on the error page. Exact Online keeps waiting until you do. Legalsense tries again in the next synchronization. - AFAS: click Error fixed on the error page, or wait. Legalsense retries automatically every 12 minutes. - Exact Financials, Fortnox and Twinfield: click Sync now on the overview page, or wait. Legalsense retries automatically every 12 minutes.
Note: After a Twinfield login failure, Legalsense waits two hours before trying again. Click Sync now to try at once.
Disbursements aren't imported, or land on Unprocessed remainder
If your integration imports purchase invoices from your accounting software, Legalsense imports each line of a purchase invoice. Lines booked on a disbursement ledger account become disbursements. Legalsense only imports a purchase invoice when all of these are true:
- Expenses and creditors is set to Import expenses and creditors from the accounting system, or to the option that also exports written-off expenses.
- At least one line is booked on a ledger account for disbursements.
- The purchase invoice is final in your accounting software:
- Twinfield: it must be final, and in the purchase journal set on the Ledger accounts page, in the connected office.
- AFAS and Exact Financials: it must be booked in the purchase journal set on the Ledger accounts page.
- Fortnox: it must be booked.
- Exact Online: Legalsense imports every purchase entry.
- The purchase invoice was created or changed since the previous synchronization. If a purchase invoice was missed, contact Legalsense Support.
Legalsense imports each purchase invoice once. If you change it in your accounting software afterwards, Legalsense doesn't update the disbursement.
Legalsense uses the project, cost unit, or dimension on each line to find the matter. This only works for matters that Legalsense has already sent to your accounting software.
- If a line has no project, Legalsense books it on the Default matter for expenses from your integration settings. It does the same if the matter can't receive new disbursements.
- If the project doesn't match a matter:
- AFAS, Fortnox and Twinfield: the line also goes to the default matter. For Twinfield, Legalsense emails Twinfield expense was imported into default matter.
- Exact Online and Exact Financials: the synchronization stops with an error. See the table above.
- Lines that aren't booked on a disbursement ledger account:
- Exact Online, Exact Financials and Twinfield: imported without a matter. They show as Unprocessed remainder.
- AFAS and Fortnox: imported as non-billable, on the matched matter or the default matter.
To book an unprocessed remainder, or a line on the default matter, on the right matter, see ↪ Disbursement management: Troubleshooting.
Note: Legalsense imports the attached purchase invoice document from AFAS, and from Fortnox if it's a PDF. From Twinfield, it imports the document when document imaging is set up and Include PDF with invoice is selected. It doesn't import attachments from Exact Online or Exact Financials.
Changes to disbursements aren't sent to your accounting software
Whether Legalsense sends a change, deletion, or write-off depends on where the disbursement came from.
Disbursements imported from your accounting software
- Legalsense locks imported disbursements. For Twinfield and Exact Financials, it only locks them with the setting Import expenses and creditors from the accounting system; export written-off expenses to the accounting system.
- If you edit an unlocked disbursement, Legalsense doesn't send your changes to your accounting software. Make the same correction in your accounting software yourself.
- Legalsense only sends a write-off when the Expenses and creditors setting is Import expenses and creditors from the accounting system; export written-off expenses to the accounting system, and the disbursement is still locked. With the setting Import expenses and creditors from the accounting system, write-offs stay in Legalsense only.
- Fortnox doesn't support write-offs. With the write-off option, the write-off fails in the queue.
Disbursements created in Legalsense
- For Twinfield and Fortnox, Legalsense sends the purchase invoice again when you change the disbursement, for example its type, amount, matter, or whether it's billable. This only happens when Expenses and creditors is set to an option that exports expenses, and the whole amount is assigned to matters.
- In Twinfield, the booking is replaced, and deleting the disbursement also removes the booking.
- For AFAS, Exact Online, and Exact Financials, Legalsense doesn't send disbursements to your accounting software, so changes stay in Legalsense only.
- In Twinfield, changing the disbursement type only changes the ledger account if you use Specific accounts per expense type and every active type has an account. See Accounts for disbursement types above. In Fortnox, the ledger account doesn't depend on the disbursement type.
- If a write-off or change gets stuck in the queue, contact Legalsense Support.
The connection has expired or someone else needs to connect
For Exact Online, Twinfield, and Fortnox, the connection between Legalsense and your accounting software runs through the account of one of your colleagues. Reconnect when the connection has expired, or when a different person takes over, for example because the colleague is leaving. Exact Financials and AFAS connect with a token instead of a personal account.
Exact Online
- Go to Settings → Exact Online → Overview.
- If the connection has expired, click Refresh Exact Online token now. To connect with a different account, click (change) next to Exact Online user.
- Log in to Exact Online.
The account needs sufficient rights in the Exact Online administrations you synchronize with. If it doesn't, the account pages show It seems that your Exact Online user account has insufficient permissions. The sync might not work properly.
Twinfield
- Go to Settings → Twinfield → Overview.
- If the connection has expired, click Click here to resolve this error. in the banner. To connect with a different account, click (change) next to Twinfield user.
- Click Authorize by Twinfield and log in.
The account must belong to the same Twinfield organisation. If it belongs to a different organisation, Legalsense shows an error and keeps the existing connection.
Fortnox
- Go to Settings → Fortnox → Overview.
- Click Re-authenticate and log in to Fortnox.
Exact Financials
- Go to Settings → Exact Financials → Ledger accounts.
- If the page shows This Legalsense installation is currently not authenticated with Exact Financials., click Please authenticate.
- Enter the new authorization token and save.
AFAS
AFAS connects with the token of an App Connector. If the token has been revoked or replaced in AFAS, contact Legalsense Support to enter the new token.
You move to a new administration
You can't change the Twinfield office yourself once the synchronization has started. The settings also have no option to change the AFAS, Exact Online, or Exact Financials administration. Legalsense keeps track of which clients, matters, and invoices it has sent to each administration, so a switch needs to be prepared. Contact Legalsense Support well in advance, for example before the start of a new financial year.
When to contact Legalsense Support
You can't skip an item or remove it from the queue yourself. Contact Legalsense Support when:
- The error page shows no suggested solution, and you can't find the cause. For Twinfield, the page says (No known solution for this error).
- The item that fails can't be corrected, for example because the invoice is already finalized.
- The email says Legalsense support has been notified and will follow up if needed.
- The last successful sync is well over 12 minutes old, and there's no error message.
Include a screenshot of the error page in your request.
Comments
0 comments
Please sign in to leave a comment.