The ImportBank module is designed to facilitate the import of bank operations into Dolibarr from CSV files. It allows you to import bank statements into Dolibarr bank accounts, offering advanced features such as:
To install the ImportBank module:
htdocs/custom/ directory of your Dolibarr installation.No specific configuration is required to use the ImportBank module. However, make sure that:
To start the import process:
Note: The module accepts CSV files with different formats. If you encounter problems during import, try modifying the import options to match your file format.
After uploading the file, you need to indicate which column in the CSV corresponds to each type of data:
Tip: If your CSV file contains a single column for the amount (positive for credits, negative for debits), you can select the same column for both "Debit" and "Credit". The module will automatically handle positive and negative values.
After configuring the column mapping, you will see a preview of the data to be imported:
Once you are satisfied with the preview:
Warning: The import is final. Once operations are imported, they cannot be automatically removed. You will need to delete them manually if necessary.
The module includes an automatic special character cleaning feature that is enabled by default. This feature allows you to:
A blue information message appears at the top of the import page when this feature is enabled.
To enable or disable this feature:
Note: If you encounter problems when importing CSV files containing special characters or particular number formats, make sure this option is enabled.
The module also includes an automatic description field cleaning feature that is enabled by default. This feature allows you to:
This feature is particularly useful when descriptions in the CSV file contain complex formatting or control characters that can make reading difficult.
To enable or disable this feature:
Note: This feature is particularly useful for CSV files exported from certain banks that include line breaks or tabs in the operation descriptions.
The module automatically highlights (with a pink background) rows where both the Debit and Credit columns are empty or zero. This feature allows you to quickly identify rows that might require special attention before importing.
You can choose the order in which operations will be imported:
This option is particularly useful if you are importing a large number of operations and want to see the most recent ones appear first in Dolibarr.
Debug mode displays additional information about the imported data. To enable debug mode, check the "Debug Mode" box in the top right of the preview screen. This will display the raw values of each row, which can be useful for diagnosing import problems.
| Problem | Possible Cause | Solution |
|---|---|---|
| File does not upload | Permission issues or file size too large |
|
| Dates are not correctly interpreted | Incorrect date format |
|
| Amounts are incorrect | Incorrect decimal separator or formatting issues |
|
| Some rows are not imported | Rows not selected or invalid data |
|
Yes, but the module does not automatically check for duplicates. If you import the same file multiple times, you risk having duplicate operations in your bank account. It is recommended to manually check existing operations before importing.
The module only supports CSV (Comma-Separated Values) files. If your bank statement is in another format (XLS, PDF, etc.), you will need to convert it to CSV first.
In Excel, go to "File > Save As" and select the format "CSV (semicolon delimited)" or "CSV (comma delimited)" depending on the separator you want to use.
Currently, the module does not allow saving import settings. You will need to reconfigure them for each import.
If your CSV file contains negative amounts, the module will automatically interpret them as debits. If the amounts are positive, they will be interpreted as credits.
If your CSV file has a special format (for example, additional columns or special formatting), you can still import it by using the column mapping to indicate which columns correspond to the required data (date, label, debit, credit).