Installation

Download

Download the module from its DoliStore page. You receive a ZIP archive ready to install.

Installation

  1. Log in to Dolibarr as an administrator
  2. Go to Home > Setup > Modules/Applications
  3. Click Deploy/Install an external module
  4. Select the downloaded ZIP file and confirm

External module deployment screen in Dolibarr

Requirements

Requirement Minimum version
Dolibarr 10.0
PHP 7.3
PHP GD extension required
PHP zlib extension required

If a PHP extension is missing, the configuration page will display an explicit error message.

Activation

  1. Go to Home > Setup > Modules/Applications
  2. Search for "Facturx" in the Financial category or via the search field
  3. Click the toggle switch to enable the module

Activation page of the Facturx module in the Dolibarr module list

What happens at activation

The module automatically creates:

  • The CHORUS block on invoices and template invoices (service code, contract number, purchase order number, Chorus identifier, "Invoice for Chorus Pro" checkbox), and on orders (the first three fields)
  • The VAT Exemption Code and Buyer order reference fields on invoices and template invoices
  • A Payer party field on invoices (visible only in EXTENDED profile)
  • An Access point document identifier field on invoices (visible once an access point is selected)
  • Identifier fields on third-party and contact cards, and a Summary group on products

The CHORUS block can be hidden via the configuration if you do not work with the public sector. The detailed list, with the code of each field and its display condition, is in Extra fields created by the module.

Post-installation verification

After activation, go to an existing customer invoice card and regenerate the PDF. If everything works, the generated PDF now contains the Factur-X metadata. You can check this with a PDF reader capable of displaying embedded attachments (the factur-x.xml file appears in the PDF attachments).

Warning: If mandatory information is missing on your company or your customer (VAT number, address, etc.), the module will display error messages. See the FAQ page to resolve these issues.

Update

  1. Download the new version of the module from the DoliStore
  2. Install it via Deploy/Install an external module (as for the initial installation)
  3. Disable then re-enable the module in the module list

Disabling/reactivating is necessary to apply any database updates and register the new hooks.

Network calls during activation

At each activation or update of the module, it queries the editor's server (cap-rel.fr) to check whether a newer version is available. The call only transmits the module name, its installed version and the Dolibarr version, with a one-second timeout so as to never block activation.

To disable this check, create the FACTURX_DISABLE_VERSION_CHECK constant (value 1) from Home > Setup > Miscellaneous. The module then works without any external call during its activation.

Uninstallation

To uninstall the module, disable it from Home > Setup > Modules/Applications by clicking the toggle switch. The Chorus extra fields remain in the database but are no longer displayed.