Module EInvoicing (Generic, FR, ...)

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search

Informations


Module name EInvoice - PDPConnectFR
Editor / Editeur Dolibarr community
Download or buy page / Page achat ou téléchargement
Status / Statut / Estado Experimental
Prerequisites / Prérequis

Dolibarr min version: 22.0    Dolibarr max version: {{{maxversion}}}

Last update date / Date mise à jour fiche / Fecha última actualización 2026-05-18
Note / Nota

Features

This module adds support to EInvoice in Dolibarr for some countries (currently France).

It allows your Dolibarr to generate EInvoice (Factur-X, CII) and to connect to an official Access Point to send and retreive your documents.


Installation

  • Download archive file of module (.zip file) from web site www.dolistore.com or from any other source.
  • Install module into the /custom folder of Dolibarr:
    • Go to Home - Setup - Modules - Deploy/install external app/module
    • Upload the file. Note: If it fails because upload from this page has been locked by your web hosting provider, you can manually unzip the file into the /custom directory from command line: Go into the /custom directory and uncompress file with command unzip modulefile.zip then check that the directory with the nameof the module is inside the /custom directory. If into a subdirectory, just move it into /custom.
  • Module should be ready to be activated and used.


Configuration

Go onto the setup of the module.

The first step is to choose, from the combo list, which Access Point you want to use to send your EInvoice. You can select between one in the following list:

  • EsaLink (hubtimize)
  • SuperPDP

Setup with Esalink Access point

TODO

Setup with SuperPDP Access Point

If you choose SuperPDP (https://www.superpdp.tech), you must create an account by clicking on the link suggested by the module.

Once your account is created, you must generate credentials to allow Dolibarr to connect to SuperPDP. For this, go into your SuperPDP dashboard, and from the left menu "Applications", click on "New Application" to create a new setup for the application Dolibarr. Choose if you want a setup for Production or for Test (Sandbox). Then select the company and the type of application "confidential" and click "Create".

Your credential (client_id and client_secret) are created. Go into Dolibarr, into the page to setup the module EInvoice and enter this 2 values and save the data.

That's all, you are ready to connect to SuperPDP (For Production usage or for Test depending on the choice you made).


Note 1: By default, you enter the credentials for a production usage. If you Dolibarr is in eperimental or development mode (MAIN_FEATURES_LEVEL >= 1), you may see a switch to switch between Test and Production usage. However, even if you can, it is seriously not recommended to save both Test and Production credentials in the same Dolibarr instance (you should use one Dolibarr test instance with Test credentials for Test mode and another Dolibarr production instance for Production with Production credential). If you mix the two modes in the same Dolibarr, you may get tests invoices created on your production instance (and the opposite). So fill only test credentials OR production credentials but not both (on a stable instance of Dolibarr, only one setup is possible).


Usage for production

Send a customer invoice

TODO

Retrieve vendor invoices

TODO


Usage in sandbox for test

If you are using the test mode of SuperPDP, you may need to modify the setup of your company (Menu Home - Setup - Company/Organization) to record the same SIREN than the one of the test company provided by SuperPDP sandbox (So 000000001 for Ticatel or 000000002 for Burger Queen).

However the EInvoice address is NOT the same than the SIREN (it is the same in production mode only), so you must force the Einvoice address of the company into the setup of the module Einvoice: To know your EInvoice address of the test company, go into the SuperPDP dashboard, in sandbox mode, and click on the label of the test company (for example Tricatel), you should see a list of addresses in annuary (the adress to find you on the test network). The invoice address to use is the value after the "225:", the one starting with 315143296_XXX with XXX that depends on your account.

If your SIREN (menu Home - Setup - Company/Organisation) and your EInvoice address (menu Setup - Modules - Einvoice - Configuration) are correctly filled (Example: SIREN: 00000001 and EInvoice address 315143296_...), then you can send and retreive invoices from or to any other Access Points working on the Peppol Test network (The SuperPDP sandbox is automatically linked to the Peppol Test network when you use the sandbox credential).

Developpement

The development of this module is not included inside the standard GIT repository of Dolibarr but inside a repository dedicated to modules not supported by the Dolibarr development team but supported by DoliCloud team:

Note that the code of all modules developed by DoliCloud team are presents in the same repository (1 sub-directory of htdocs = 1 module). They are all Open Source modules.