Module EInvoicing (Generic, FR, ...): Difference between revisions
m (→Informations) Tags: Manual revert 2017 source edit |
mNo edit summary Tag: 2017 source edit |
||
| Line 47: | Line 47: | ||
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". | 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 | 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). | 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). | |||
| Line 56: | Line 59: | ||
= Usage for production = | = Usage for production = | ||
== Send a customer invoice == | == Send a customer invoice == | ||
TODO | |||
== Retrieve vendor invoices == | == Retrieve vendor invoices == | ||
TODO | |||
= Usage in sandbox for test = | = 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 thant the one of the test company provided (So 000000001 or 000000002). However the EInvoice address is not the same than the SIREN (it is the samein production usage only), so you must force the Einvoice address of the company into the setup of the module Einvoice. To know the 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 invoice address to use is the value after the 225:, the one starting with 315143296_XXX with XXX that depnds on your account. | |||
If your SIREN (menu Home - Setup - Company/Organisation) and your EInvoice address (menu Setup - Modules - Einvoice - Configuration) are the one of the test company (Example: SIREN: 00000001 and EInvoice address 315143296_...), then you can send and retreive invoice from or to other Access Points through the Peppol Test network (you are automatically linked to the Peppol Test network when you use the sandbox credential with SuperPDP). | |||
= Developpement = | |||
{{TemplateModNLTechnoEn}} | |||
Revision as of 12:52, 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 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 thant the one of the test company provided (So 000000001 or 000000002). However the EInvoice address is not the same than the SIREN (it is the samein production usage only), so you must force the Einvoice address of the company into the setup of the module Einvoice. To know the 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 invoice address to use is the value after the 225:, the one starting with 315143296_XXX with XXX that depnds on your account.
If your SIREN (menu Home - Setup - Company/Organisation) and your EInvoice address (menu Setup - Modules - Einvoice - Configuration) are the one of the test company (Example: SIREN: 00000001 and EInvoice address 315143296_...), then you can send and retreive invoice from or to other Access Points through the Peppol Test network (you are automatically linked to the Peppol Test network when you use the sandbox credential with SuperPDP).
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:
- GIT Repository: git clone https://github.com/DoliCloud/DoliMods.git
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.