Bank statement import and reconciliation for Dolibarr: Difference between revisions

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
(Version 1.7.0: grouped settlement (LCR bills of exchange, cheque deposits), one payment per third party)
(New presentation video)
 
(8 intermediate revisions by the same user not shown)
Line 74: Line 74:
|-
|-
| '''Documented version'''
| '''Documented version'''
| 1.7.0
| 1.11.1
|-
|-
| '''Dolibarr compatibility'''
| '''Dolibarr compatibility'''
Line 96: Line 96:


== Official links ==
== Official links ==
* Demo video: [https://youtu.be/Le7w_xFOTBQ Bank Import — demo (YouTube)]
* Demo video: [https://youtu.be/i_LS8r28xZ8 Bank Import — demo (YouTube)]
* Module page: [https://www.ksidol.io/en/modules/detail?module=main_module_bankimport Bank Import on KSIDol]
* Module page: [https://www.ksidol.io/en/modules/detail?module=main_module_bankimport Bank Import on KSIDol]
* Online demo: [https://www.ksidol.io/t/demo-erp/custom/bankimport/index.php?mainmenu=bank&leftmenu=bankimport Bank Import — open the demo]
* Online demo: [https://www.ksidol.io/t/demo-erp/custom/bankimport/index.php?mainmenu=bank&leftmenu=bankimport Bank Import — open the demo]
Line 125: Line 125:
* '''Balance rows''' ("Ancien solde", "Nouveau solde", "Closing balance"…) skipped and reported.
* '''Balance rows''' ("Ancien solde", "Nouveau solde", "Closing balance"…) skipped and reported.
* '''Duplicate protection''': re-importing a statement creates nothing again; the same movement imported in two formats is detected and filed away in one click.
* '''Duplicate protection''': re-importing a statement creates nothing again; the same movement imported in two formats is detected and filed away in one click.
* '''Import batches''': details, report, deletion of a batch or a line; pointed or settled lines are protected.
* '''Import history''' (tab of “Import a statement”): details, report, deletion of a batch or a line; pointed or settled lines are protected.
* '''Automatic retrieval by API (preview)''': transactions retrieved through the bank's API (Qonto, Revolut Business) or a provider of access to accounts at traditional banks (Bridge, under your own contract, or Enable Banking, where the bank is chosen on the connector record), then handled like an imported statement: duplicates, matches, reconciliation. No payment is created automatically; the access key is stored encrypted and never displayed again. Without a contract with Enable Banking, only the accounts linked to your application can be read, for evaluation. Disabled by default: it is opened in the module setup, checkbox “Bank connectors: retrieval of statements through an API (preview)”. Run a manual retrieval first and check the first lines (sign of amounts, dates, labels) before enabling automatic retrieval on a connector. Its validation on real accounts is ongoing. A guide built into the module (“Notice” menu) walks you step by step through setting up the connectors, with the status of your installation and troubleshooting.


=== Reconciliation ===
=== Reconciliation ===
Line 132: Line 133:
* '''Search as soon as the import runs''', then in successive passes on large volumes, with what remains to examine displayed.
* '''Search as soon as the import runs''', then in successive passes on large volumes, with what remains to examine displayed.
* '''Third-party warning''' and detection of '''invoices already paid outside the module'''.
* '''Third-party warning''' and detection of '''invoices already paid outside the module'''.
* '''Card payments: bank delay (D+N)''': within the set delay (0 to 7 days), a card statement line and the entry already recorded count as dated the same day; for an invoice, the "very close" gap widens accordingly.


=== Payment and bank entry ===
=== Payment and bank entry ===
Line 160: Line 162:
== Menus ==
== Menus ==


Under the main '''Bank''' menu, the module adds:
Under the main '''Bank''' menu, the module adds the '''Bank statements''' entry, in the order of the work:


* '''Dashboard''' — indicators and latest imports
* '''To do''' — what is waiting, with its count (lines to point, approved matches to settle, sure documents, miscellaneous payments with a sure account, duplicates, lines already recorded) and a link to the screen where it is handled
* '''Bank import''' — upload of a statement file
* '''Import a statement''' — upload of a statement file; '''Import history''' tab
* '''Bank matches''' — movements, scored candidates, pointing and validation
* '''Reconciliation''' — movements, scored candidates, pointing and validation
* '''Miscellaneous payments and catch-up''' — operations with no invoice and bulk processing (also reachable through a button from the bank matches)
* '''Catch-up''' — '''Proposed documents''', '''Miscellaneous payments''', '''Import duplicates''' and '''Lines already recorded''' tabs
* '''Bank connectors''' — connector profiles (administrator)
* '''Setup''' — module settings and '''Bank connectors''' tab (administrator)
* '''Configuration''' — module settings


== Configuration ==
== Configuration ==


From Home → Setup → Modules → Bank Import:
From Bank → Bank statements → Setup (or Home → Setup → Modules → Bank Import):


* default bank account and payment mode;
* default bank account and payment mode;
Line 179: Line 180:
* analysis limits and number of candidates per movement;
* analysis limits and number of candidates per movement;
* maximum size of an imported file (default 20 MB);
* maximum size of an imported file (default 20 MB);
* bank delay for card payments (<code>BANKIMPORT_CARD_SETTLEMENT_DAYS</code>, 0 to 7 days, default 0);
* search in salaries, charges, expense reports and donations (each can be enabled separately);
* search in salaries, charges, expense reports and donations (each can be enabled separately);
* integration into the native Bank pages.
* integration into the native Bank pages.
Line 188: Line 190:
The module defines five permissions:
The module defines five permissions:


* '''Read''' Bank Import — dashboard and lists (read)
* '''Read''' Bank Import — “To do” screen and lists (read)
* '''Import''' bank statements (import)
* '''Import''' bank statements (import)
* '''Generate and validate''' matches (match)
* '''Generate and validate''' matches (match)
Line 196: Line 198:
== Typical flow ==
== Typical flow ==


# Import a statement file (Bank import): matches are searched for immediately.
# Open '''To do''': each line shows what is waiting and opens the screen where it is handled.
# In '''Bank matches''', check the score and reasons, choose the mode and date, validate: the native payment and its entry are created, and the line is reconciled.
# Import a statement file ('''Import a statement'''): matches are searched for immediately.
# In '''Miscellaneous payments and catch-up''', settle the operations with no invoice: export the list, have the accounts validated, reload it, create the miscellaneous payments.
# In '''Reconciliation''', check the score and reasons, choose the mode and date, validate: the native payment and its entry are created, and the line is reconciled.
# Use the bulk tabs to settle the sure documents, delete import duplicates and archive the lines already recorded.
# In '''Catch-up''', first settle the '''Proposed documents''', then, in the '''Miscellaneous payments''' tab, the operations with no invoice: export the list, have the accounts validated, reload it, create the miscellaneous payments.
# Still in '''Catch-up''', delete the import duplicates and archive the lines already recorded.


== Technical note ==
== Technical note ==
Line 220: Line 223:
# Replace the <code>htdocs/custom/bankimport/</code> folder with the new version.
# Replace the <code>htdocs/custom/bankimport/</code> folder with the new version.
# Reload a page of the module: missing columns and constants are created automatically.
# Reload a page of the module: missing columns and constants are created automatically.
# To see the new "Miscellaneous payments and catch-up" menu entry, disable then re-enable the module; the screen remains reachable through the button in the bank matches.
# The menus update themselves when the first page of the module is opened: no re-enabling is needed, and the page addresses do not change.
# The update does not delete any existing data.
# The update does not delete any existing data.



Latest revision as of 12:28, 27 November 2026


Bank Import for Dolibarr
Import your bank statements, match each movement with its document or with a miscellaneous payment carrying the right accounting account, and create native Dolibarr payments — after human validation
   Multi-format import
   Bank reconciliation
   Scored matches
   Miscellaneous payments
   Catch-up
   Native payments
   Human validation
   CSV · OFX · QIF · CAMT.053 · MT940

Overview

Bank Import is an external module for Dolibarr ERP/CRM (publisher KSIDol) that automates bank reconciliation, from statement to payment.

It imports the movements of a bank statement (CSV, OFX, QIF, CAMT.053, MT940), proposes scored matches against your invoices, down payments, credit notes, salaries, charges, expense reports, donations and entries already recorded, then creates the native Dolibarr payments — only after your validation. Operations with no invoice (social security contributions, taxes, insurance, loans, bank fees) are settled with a miscellaneous payment carrying an accounting account proposed from your history.

The bank entry is created at pointing time, with the operation date and value date of the statement, then reconciled on the month's statement. The module proposes, the user decides; it does not modify any entry already transferred to accounting and does not modify any Dolibarr core file.

Publisher and support

Item Information
Publisher KSIDol
Specialty Dolibarr integrator
Services Custom development, SaaS hosting, Dolibarr support
Website https://www.ksidol.io
Support support@ksidol.io
Dolistore modules https://www.dolistore.com/index.php?controller=search&orderby=position&orderway=desc&website=marketplace&search_query=k.s.i&submit_search=

Module information

Information Detail
Module name Bank Import
Main use Import bank statements, match each movement with its document or with a miscellaneous payment, and create Dolibarr payments after validation
Type External Dolibarr module
Family Finance / Accounting
Documented version 1.11.1
Dolibarr compatibility Dolibarr 18.0 to 24.x (tested on 18, 19, 20, 21, 22, 23 and 24)
PHP compatibility PHP 8.0 or higher
Databases MySQL/MariaDB and PostgreSQL 16 and 18
Dolibarr core modification No
License GNU GPLv3
Available languages French, English, German, Spanish, Italian

Official links

Module goals

Reduce the time spent on bank reconciliation while keeping human control over every payment:

  • import a statement from any bank thanks to multi-format recognition;
  • automatically match each movement against Dolibarr's open documents, with a score and reasons;
  • settle operations with no invoice with a miscellaneous payment carrying the right accounting account;
  • catch up entries left without a document, without ever touching what is already in accounting;
  • keep an accurate Dolibarr bank account: one entry per movement, created at pointing time.

Who is it for?

  • Micro-businesses, SMEs and associations still entering their receipts and direct debits by hand.
  • Accountants and managers who want to point a statement in a few minutes, without double entry or a suspense account.
  • Dolibarr integrators looking for a reliable bank reconciliation that respects accounting immutability.

Main features

Statement import

  • Five formats: CSV (delimiter and debit/credit columns detected), OFX, QIF, CAMT.053 XML, MT940; format recognized automatically or chosen manually.
  • Encodings: UTF-8, Windows-1252, ISO-8859-1/15 and UTF-16 converted; accented labels preserved.
  • Balance rows ("Ancien solde", "Nouveau solde", "Closing balance"…) skipped and reported.
  • Duplicate protection: re-importing a statement creates nothing again; the same movement imported in two formats is detected and filed away in one click.
  • Import history (tab of “Import a statement”): details, report, deletion of a batch or a line; pointed or settled lines are protected.
  • Automatic retrieval by API (preview): transactions retrieved through the bank's API (Qonto, Revolut Business) or a provider of access to accounts at traditional banks (Bridge, under your own contract, or Enable Banking, where the bank is chosen on the connector record), then handled like an imported statement: duplicates, matches, reconciliation. No payment is created automatically; the access key is stored encrypted and never displayed again. Without a contract with Enable Banking, only the accounts linked to your application can be read, for evaluation. Disabled by default: it is opened in the module setup, checkbox “Bank connectors: retrieval of statements through an API (preview)”. Run a manual retrieval first and check the first lines (sign of amounts, dates, labels) before enabling automatic retrieval on a connector. Its validation on real accounts is ongoing. A guide built into the module (“Notice” menu) walks you step by step through setting up the connectors, with the status of your installation and troubleshooting.

Reconciliation

  • Sources: customer and supplier invoices and down payments, credit notes, salaries, social and tax charges, approved expense reports (according to the user's permissions), received donations, bank entries already recorded.
  • Explained score: amount (exact, close, partial), invoice reference, third party, bank direction, date.
  • Search as soon as the import runs, then in successive passes on large volumes, with what remains to examine displayed.
  • Third-party warning and detection of invoices already paid outside the module.
  • Card payments: bank delay (D+N): within the set delay (0 to 7 days), a card statement line and the entry already recorded count as dated the same day; for an invoice, the "very close" gap widens accordingly.

Payment and bank entry

  • Human validation: choice of the match, the mode and the date (operation date suggested), then creation of the native Dolibarr payment.
  • Entry created at pointing time: the import does not create any entry; the payment creates its own, dated as on the statement. A movement already keyed in by hand is reused without duplicate.
  • One transfer, several invoices: allocation across several documents, search by company name, number or amount.
  • Grouped settlement (LCR bills of exchange, cheque deposits): when a single movement settles several invoices, the open invoices whose remaining amounts add up exactly to the line amount are proposed first, starting with those due on the movement date with the payment mode read from the label; one click settles them all. Each third party gets its own payment and its own bank entry, which the Dolibarr bank journal can post.
  • Native reconciliation set automatically on the month's statement when the line is fully settled.
  • Undo: unlocking, cancelling an allocation; a payment deleted in Dolibarr makes the line pointable again.

Miscellaneous payments and catch-up

  • Operations with no invoice: creation of a Dolibarr miscellaneous payment with its accounting account, at the statement dates.
  • Proposed account based on the miscellaneous payments already recorded; marked "sure" only if the history is unambiguous; the suspense account is never proposed.
  • Accounts validated through CSV: export of the list, "Validated account" column filled in by the accountant, reload: only the validated lines are ticked.
  • Catch-up: entries from earlier imports left without a document are replaced by the miscellaneous payment (same amount, balance unchanged); never a reconciled entry, an entry transferred to accounting or an entry keyed in by hand.
  • Export for the accountant of the entries without a document already transferred to accounting, to be reclassified.

Bulk processing (with preview)

  • Proposed documents: settlement in one go of the lines for which a single document is proposed with a high score, on an entry that is still free.
  • Import duplicates: deletion by Dolibarr of the duplicate entries left by a statement imported in two formats, then archiving.
  • Lines already recorded: archiving of historical statement lines whose movement is already in Dolibarr or whose period is already in accounting.
  • Each line is checked again at the moment it is processed; no entry is created in a period already transferred to accounting.

Integration and lists

  • Dolibarr Bank pages: "Import a statement" button, filterable "Pointing" column, "Point" action.
  • Column filters, sorting, pagination up to 5000 lines, filter by action to do, archiving and bulk actions.

Menus

Under the main Bank menu, the module adds the Bank statements entry, in the order of the work:

  • To do — what is waiting, with its count (lines to point, approved matches to settle, sure documents, miscellaneous payments with a sure account, duplicates, lines already recorded) and a link to the screen where it is handled
  • Import a statement — upload of a statement file; Import history tab
  • Reconciliation — movements, scored candidates, pointing and validation
  • Catch-up — Proposed documents, Miscellaneous payments, Import duplicates and Lines already recorded tabs
  • Setup — module settings and Bank connectors tab (administrator)

Configuration

From Bank → Bank statements → Setup (or Home → Setup → Modules → Bank Import):

  • default bank account and payment mode;
  • amount tolerance (BANKIMPORT_AMOUNT_TOLERANCE, default 0.02);
  • "strong candidate" score (BANKIMPORT_AUTO_APPROVE_SCORE, default 90), which is also the threshold for bulk payments;
  • minimum match score (BANKIMPORT_MATCH_MIN_SCORE, default 40);
  • analysis limits and number of candidates per movement;
  • maximum size of an imported file (default 20 MB);
  • bank delay for card payments (BANKIMPORT_CARD_SETTLEMENT_DAYS, 0 to 7 days, default 0);
  • search in salaries, charges, expense reports and donations (each can be enabled separately);
  • integration into the native Bank pages.

The suspense account excluded from proposals is the one defined in Dolibarr's accounting setup.

User permissions

The module defines five permissions:

  • Read Bank Import — “To do” screen and lists (read)
  • Import bank statements (import)
  • Generate and validate matches (match)
  • Create payments and miscellaneous payments, catch-up and bulk processing (execute)
  • Administer Bank Import — configuration, connectors (admin)

Typical flow

  1. Open To do: each line shows what is waiting and opens the screen where it is handled.
  2. Import a statement file (Import a statement): matches are searched for immediately.
  3. In Reconciliation, check the score and reasons, choose the mode and date, validate: the native payment and its entry are created, and the line is reconciled.
  4. In Catch-up, first settle the Proposed documents, then, in the Miscellaneous payments tab, the operations with no invoice: export the list, have the accounts validated, reload it, create the miscellaneous payments.
  5. Still in Catch-up, delete the import duplicates and archive the lines already recorded.

Technical note

  • Tables: llx_bankimport_transaction, llx_bankimport_import, llx_bankimport_match, llx_bankimport_connector.
  • Native objects used: payments of invoices, salaries, charges, expense reports and donations, miscellaneous payments, bank entries and bank reconciliation.
  • Dolibarr standards respected: permissions, CSRF tokens, GETPOST, escaping, table prefix.
  • Immutability: no entry already transferred to accounting is modified or deleted; no existing payment is deleted; no entry is created in a period already transferred.
  • No modification of the Dolibarr core.

Installation

  1. Unzip the archive to get a bankimport/ folder.
  2. Copy it into htdocs/custom/ of your Dolibarr.
  3. Enable the module from Home → Setup → Modules/Applications (Finance family).
  4. Open the configuration and choose a default bank account and payment mode.

Update

  1. Replace the htdocs/custom/bankimport/ folder with the new version.
  2. Reload a page of the module: missing columns and constants are created automatically.
  3. The menus update themselves when the first page of the module is opened: no re-enabling is needed, and the page addresses do not change.
  4. The update does not delete any existing data.

Troubleshooting

  • No line detected on CSV import: check the separator and the presence of a header.
  • No candidate: lower the minimum score or check that the documents are actually open.
  • No account proposed for an operation with no invoice: the miscellaneous payment history contains no comparable operation; enter the account, it will be used for the next proposals.
  • "Movement already in the account": an entry of the same amount already exists within a few days; link the line to that entry instead of creating a second one.
  • "Period already in accounting": the line is earlier than the last entry transferred; check with your accountant.

See also

  • KSIDol Signature Terminal: signature of native Dolibarr records, compatible with all KSIDol modules.
  • Compatibility: Dolibarr 18.0 to 24.x — PHP 8.0+ — GPLv3 license — Publisher: KSIDol.

Summary

Bank Import imports your bank statements (CSV, OFX, QIF, CAMT.053, MT940), matches each movement with its document using a score and reasons, settles operations with no invoice with a miscellaneous payment carrying the right accounting account, catches up old entries left without a document and creates native Dolibarr payments after validation — one entry per movement, without ever touching what is already in accounting.