Module EInvoicing (Generic, FR, ...): Difference between revisions

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
mNo edit summary
Tag: 2017 source edit
Line 17: Line 17:
|prerequisites=
|prerequisites=
|minversion=22.0
|minversion=22.0
|maxversion=
|note=
|note=
}}
}}

Revision as of 13:29, 18 May 2026

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   

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, click on Save to save the data and click on Generate Token to get the security key to exchange with SuperPDP.

That's all, you are connected with SuperPDP (For Production usage or for Test depending on the choice you made). To be sure, you can try the link "Test of connection (helathcheck)" to verify the connection.


Note: By default, you can enter only one set of crendentials, so if your Dolibarr instance is a test instance, enter test credentials and if your Dolibarr instance is a production instance, enter credentials of production. However, a developer can add the constant PDPCONNECTFR_ALLOW_DEVTOOLS to 1 in Home - Setup - Other, so you will be able to see a switch to switch between 2 different environments: Test OR Production. Even if this feature is provided, it is seriously not recommended to save both Test and Production credentials in the same Dolibarr instance; If you mix two Access Point environments in the same Dolibarr, you may get or send tests invoices created on your production instance (and the opposite). See chapter Test in sandbox mode for more information on how to use the module in a sandbox context.

Usage for production

Send a customer invoice

TODO

Retrieve vendor invoices

TODO


Usage in sandbox for test

If you are a developper, you can enable the option PDPCONNECTFR_ALLOW_DEV_TOOLS to 1 into menu "Home - Setup - Other". This will add more features for developers into an additional tab "Dev tools" and add a switch to be able to manage 2 different profil/credentials on the same instance (WARNING: Using the switch is dangeraous as it allows mixing data from different environment in the same Dolibarr instance).

Using the sandbox and Peppol test Network with SuperPDP

If you are using credentials to use the sandbox 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 Tricatel 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 also force the Einvoice address of the company into the setup of the module Einvoice: To know your EInvoice address of your 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 the addresses of this test company in the annuary (the address to find you on the shared test Access Point 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 included inside the official GIT repository of Dolibarr community modules:

They are all Open Source modules and you can contribute by doing Pull Request like you can contribute to Dolibarr itself.