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

Jump to navigation Jump to search
m
Tag: 2017 source edit
Line 79: Line 79:
[[File:Warning.png]] By default, you can enter only one set of credentials 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 credentials 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.


== Setup VAT exemptions (VATEX), if applicable ==
==Setup VAT exemptions (VATEX), if applicable==
If your business is exempted of VAT, tell Dolibarr the default reason of exemption that will be exported in the EInvoice.
If your business is exempted of VAT, tell Dolibarr the default reason of exemption that will be exported in the EInvoice.


Take note of the VATEX-xxxx code that matches your business and save it into Dolibarr:
Take note of the VATEX-xxxx code that matches your business and save it into Dolibarr:


* In Dolibarr <= 23, go to "Configuration - Misc" and add a new variable '''MAIN_VAT_EXEMPTION_CODE_FOR_0''' with the VATEX-xx-xxxx matching your situation.
*In Dolibarr <= 23, go to "Configuration - Misc" and add a new variable '''MAIN_VAT_EXEMPTION_CODE_FOR_0''' with the VATEX-xx-xxxx matching your situation.
* In Dolibarr >24, save it to the VAT dictionary
*In Dolibarr >24, save it to the VAT dictionary


''Example: French companies concerned with Art 293B of CGI will type <code>VATEX-FR-FRANCHISE</code>''
''Example: French companies concerned with Art 293B of CGI will type <code>VATEX-FR-FRANCHISE</code>''


==Setup with Esalink/Hubtimize Access point==
==Setup with Esalink/Hubtimize Access point==
  L'utilisation de la Plateforme Agréée ESALINK ne se souscrit pas en direct : elle passe obligatoirement par un '''membre distributeur''' de l'association PDP Libre, référencé sur la page [https://pdplibre.org/solutions/ Solutions].
  L'utilisation de la Plateforme Agréée ESALINK ne se souscrit pas en direct<span> </span>: elle passe obligatoirement par un '''membre distributeur''' de l'association PDP Libre, référencé sur la page [https://pdplibre.org/solutions/ Solutions].
   
   
=Usage for production=
=Usage for production=
Line 176: Line 176:
For France:
For France:


* Check that your company can be found from this annuary: https://annuaire-entreprises.data.gouv.fr/
*Check that your company can be found from this annuary: https://annuaire-entreprises.data.gouv.fr/
* Then check inside this one:  https://facturation.chorus-pro.gouv.fr/annuaire/#/
*Then check inside this one:  https://facturation.chorus-pro.gouv.fr/annuaire/#/


If you have this error, it probably means you CAN be found in the first one but NOT in the second one. This is a problem known by the DGFIP. What to do? You can't do nothing on your own. You must wait that the french governement add your SIREN record in the second annuary too. You can try to contact import.gouv.fr asking them to "appear in the second annuary to activate the einvoicing" to make things faster, but this works only in few cases only. For all others cases you must wait you appear in the second annuary before retrying to register.
If you have this error, it probably means you CAN be found in the first one but NOT in the second one. This is a problem known by the DGFIP. What to do? You can't do nothing on your own. You must wait that the french governement add your SIREN record in the second annuary too. You can try to contact import.gouv.fr asking them to "appear in the second annuary to activate the einvoicing" to make things faster, but this works only in few cases only. For all others cases you must wait you appear in the second annuary before retrying to register.
Line 202: Line 202:


Specification for France are available on https://www.boutique.afnor.org/en-gb/ and search on "XP Z12-012", "XP Z12-013", "XP Z12-014"
Specification for France are available on https://www.boutique.afnor.org/en-gb/ and search on "XP Z12-012", "XP Z12-013", "XP Z12-014"
<br />
{| class="wikitable"
!Field code (Business Term)
!Desc
!Field in Dolibarr
|-
|BT-1
|Numéro de facture
|ref
|-
|BT-2
|Date de facture
|date
|-
|BT-3
|Type de document
|type (380 facture, 381 avoir, 384 rectificative, 386 acompte)
|-
|BT-8
|Exigibilité de la TVA
|TAX_MODE (5 débits / 72 encaissements)
|-
|BT-9
|Date d'échéance
|date_lim_reglement
|-
|BT-10
|Référence acheteur (code service)
|onglet Chorus Pro, sinon ref_client — Chorus Pro uniquement
|-
|BT-13
|Bon de commande du client
|ref_client de la facture, sinon ref_client de la commande liée
|-
|BT-14
|Notre numéro de commande
|ref de la commande liée
|-
|BT-23
|Cadre de facturation
|onglet Chorus Pro (facture ou fiche client)
|-
|BT-25
|Facture d'origine (avoir, acompte)
|fk_facture_source
|-
|BT-29
|SIRET vendeur / acheteur
|Id. prof. 2 (societe / tiers)
|-
|BT-30
|SIREN vendeur
|Id. prof. 1 de votre société
|-
|BT-31
|N° TVA vendeur
|TVA intracom. de votre société
|-
|BT-34
|Adresse électronique vendeur
|SIREN de votre société, schéma 0225
|-
|BT-46
|SIRET acheteur
|Id. prof. 2 du tiers
|-
|BT-47
|SIREN acheteur
|Id. prof. 1 du tiers
|-
|BT-48
|N° TVA acheteur
|TVA intracom. du tiers
|-
|BT-49
|Adresse électronique acheteur
|Id. prof. 5 du tiers, sinon son SIREN
|-
|BT-72
|Date de livraison
|delivery_date
|-
|BT-73/74
|Période de service
|dates de service des lignes
|-
|BT-89/90/91
|Prélèvement SEPA (RUM, ICS)
|RIB par défaut du tiers, PRELEVEMENT_ICS
|-
|BT-113
|Acomptes déjà réglés
|acomptes imputés sur la facture
|-
|BT-121
|Motif d'exonération de TVA
|calculé (franchise 293 B, intracom., autoliquidation, export)
|-
|BT-129
|Unité de la ligne
|unité du produit (fk_unit)
|-
|BT-146
|Prix unitaire
|total HT / quantité de la ligne
|-
|BT-151
|Catégorie de TVA
|calculée d'après le taux et le contexte
|-
|BT-84
|IBAN / BIC
|compte bancaire choisi dans la configuration<br />
|}

Navigation menu