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

Jump to navigation Jump to search
m
no edit summary
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. By default, you enter the credentials for a production usage. If you have created credentials for test (sandbox), you should first click on the switch "Production off" before entering your credentials. Note: event if you can, tt is seriously not recommended to save both Test and Production credentials in the same Dolibarr instance (you should use one Dolibarr instance for Test mode and another one for Production). Otherwise, you may get test invoice created on your production instance. So fill only test credentials or production credentials but not both.
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}}

Navigation menu