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

Jump to navigation Jump to search
Info about error codes
Tags: Mobile edit Mobile web edit Advanced mobile edit
(Info about error codes)
Line 8: Line 8:
{{TemplateDocDevEn}}
{{TemplateDocDevEn}}
{{TemplateDocUser}}
{{TemplateDocUser}}
= Information =
=Information=
{{TemplateModuleInfo
{{TemplateModuleInfo
|modulename=EInvoice - PDPConnectFR
|modulename=EInvoice - PDPConnectFR
Line 21: Line 21:
}}
}}


= Features =
=Features=
This module adds support to EInvoice in Dolibarr for some countries. Generating, Sending and Receiving EInvoice is mandatory in some countries, this module deals with the case of France (even if it can be modified ot support other countries).
This module adds support to EInvoice in Dolibarr for some countries. Generating, Sending and Receiving EInvoice is mandatory in some countries, this module deals with the case of France (even if it can be modified ot support other countries).


Line 27: Line 27:


The module allows your Dolibarr to generate EInvoice and to connect to some official Access Point (Plateforme Agréées) to send and retrieve your invoice documents. The supported EInvoice format are:
The module allows your Dolibarr to generate EInvoice and to connect to some official Access Point (Plateforme Agréées) to send and retrieve your invoice documents. The supported EInvoice format are:
* Factur-X
* CII
* More format can be added by contributing (see Development chapter)


= Installation =
*Factur-X
*CII
*More format can be added by contributing (see Development chapter)
 
=Installation=
Install the electronic invoicing module in your Dolibarr '''/custom''' directory (in a future, an installation link will be available directly in your Dolibarr admin pages).
Install the electronic invoicing module in your Dolibarr '''/custom''' directory (in a future, an installation link will be available directly in your Dolibarr admin pages).


Line 39: Line 40:
  git clone https://github.com/Dolibarr/dolibarr-community-modules; mkdir pdpconnectfr; cp -pr dolibarr-community-modules/pdpconnectfr/* pdpconnectfr; rm -fr dolibarr-community-modules;
  git clone https://github.com/Dolibarr/dolibarr-community-modules; mkdir pdpconnectfr; cp -pr dolibarr-community-modules/pdpconnectfr/* pdpconnectfr; rm -fr dolibarr-community-modules;


= Setup =
=Setup=
Go onto the setup of the modulefrom menu "Home - Setup - Modules - Module EInvoice - Wheel configuration".
Go onto the setup of the modulefrom menu "Home - Setup - Modules - Module EInvoice - Wheel configuration".


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:
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
*EsaLink (hubtimize)
* More providers are coming (See chapter Development to know how to contibute to add your own Provider)
*SuperPDP
*More providers are coming (See chapter Development to know how to contibute to add your own Provider)


All access point provided by the module are official Access Points (Plateforme Agréée).
All access point provided by the module are official Access Points (Plateforme Agréée).




== Setup with Esalink/Hubtimize Access point ==
==Setup with Esalink/Hubtimize Access point==
TODO
TODO




== Setup with SuperPDP Access Point ==
==Setup with SuperPDP Access Point==
If you choose [https://www.superpdp.tech SuperPDP] as your official Production Access Point (or as a Test Access Point), you must create an account by clicking on the link suggested by the setup page of the module (https://www.superpdp.tech/app/users/create).
If you choose [https://www.superpdp.tech SuperPDP] as your official Production Access Point (or as a Test Access Point), you must create an account by clicking on the link suggested by the setup page of the module (https://www.superpdp.tech/app/users/create).


Line 81: Line 83:
[[File:Warning.png]] By default, you can enter only one set of crendentials for the Production mode and one set of credentials for the Test mode, so if your Dolibarr instance is a test instance, enter test credentials and set the switch to Test, and if your Dolibarr instance is a production instance, enter credentials of production and set the switch to Production. Even if you can switch from one environment to another one, it is seriously not recommended to save and use both Test and Production credentials in the same Dolibarr instance; Only the Access Point environment is different but your Dolibarr is the same. So if you mix two Access Point environments (Test and Prod) in the same Dolibarr, you may get or send tests invoices on your production instance (and the opposite), so the best thing to avoid this is to enter credentials only for one environment and never for the other. See chapter "Usage in sandbox for test" for more information on how to use the module in a sandbox context.
[[File:Warning.png]] By default, you can enter only one set of crendentials for the Production mode and one set of credentials for the Test mode, so if your Dolibarr instance is a test instance, enter test credentials and set the switch to Test, and if your Dolibarr instance is a production instance, enter credentials of production and set the switch to Production. Even if you can switch from one environment to another one, it is seriously not recommended to save and use both Test and Production credentials in the same Dolibarr instance; Only the Access Point environment is different but your Dolibarr is the same. So if you mix two Access Point environments (Test and Prod) in the same Dolibarr, you may get or send tests invoices on your production instance (and the opposite), so the best thing to avoid this is to enter credentials only for one environment and never for the other. See chapter "Usage in sandbox for test" for more information on how to use the module in a sandbox context.


= Usage for production =
=Usage for production=
== Send a customer invoice ==
==Send a customer invoice==
Once a Dolibarr invoice is generated (and validated), you can use a new button "Generate the Einvoice".  
Once a Dolibarr invoice is generated (and validated), you can use a new button "Generate the Einvoice".  


Note: you can have this action done automatically if you enable the option from menu Home - Setup - Modules - Module Einvoice - Configuration - Tab "other options" and switch "Generate automatically Einvoice".
Note: you can have this action done automatically if you enable the option from menu Home - Setup - Modules - Module Einvoice - Configuration - Tab "other options" and switch "Generate automatically Einvoice".


Once an EInvoice has been generated, you can use the button to "Send the invoice" to the access point.
Once an EInvoice has been generated, you can use the button to "Send the invoice" to the access point. Wait a minute while the access point answers and observe the returned status code:
 
* '''Code 200''': the access point has successfully sent the invoice to the client and is waiting for an answer from the customer's approval
* '''Code 213''': the access point has detected an anomaly on the invoice and it has been rejected
* '''Code 210''': the customer refused the invoice


== Retrieve vendor invoices ==
==Retrieve vendor invoices==
Go into menu Home - Invoice - EInvoice synchronization.
Go into menu Home - Invoice - EInvoice synchronization.


Line 95: Line 101:


If you experience an error, follow the instruction. for example:
If you experience an error, follow the instruction. for example:
*If you try to import a vendor invoice and the vendor can not be found in your Dolibarr database of suppliers, a link will be suggested to create it.
*If you try to import a vendor invoice and the vendor can not be found in your Dolibarr database of suppliers, a link will be suggested to create it.
*If you try to import a vendor invoice and a product line can not be found in your Dolibarr database of proucts, a link will be suggested to create the product (You may also prefer to edit the vendor card to define a default Product Ref to use when doing an import of a product that is unknown, so each time a product is unnown for this vendor, Dolibarr will use the same default product instead of creating a new one each time).
*If you try to import a vendor invoice and a product line can not be found in your Dolibarr database of products, a link will be suggested to create the product (You may also prefer to edit the vendor card to define a default Product Ref to use when doing an import of a product that is unknown, so each time a product is unknown for this vendor, Dolibarr will use the same default product instead of creating a new one each time).


= Usage in a sandbox for test =
=Usage in a sandbox for test=
Using the module in sandbox environment is the same than using it in production mode. Only the credentials to connect to your Access Point differ.
Using the module in sandbox environment is the same than using it in production mode. Only the credentials to connect to your Access Point differ.


Line 104: Line 111:
You can also switch the Test / Production mode from the main tab of the setup section of the module. WARNING: Using the switch is dangerous as it allows mixing data from different environment in the same Dolibarr instance.
You can also switch the Test / Production mode from the main tab of the setup section of the module. WARNING: Using the switch is dangerous as it allows mixing data from different environment in the same Dolibarr instance.


== Using the sandbox and Peppol test Network for multi Access Point tests ==
==Using the sandbox and Peppol test Network for multi Access Point tests==
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).
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).


Line 119: Line 126:
[[File:Einvoice setup customer address.png|border]]
[[File:Einvoice setup customer address.png|border]]


= Development =
== Troubleshooting error codes ==
[[File:Le cycle de vie d’une facture électronique.png|left|1200x1200px|Lifecycle of an electronic invoice]]
<br />
=Development=
{{TemplateModCommunityEn}}
{{TemplateModCommunityEn}}
18

edits

Navigation menu