Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

commerce_invoice

1,304 sites Security covered
View on drupal.org

Commerce Invoice is a module for Drupal Commerce that allows store owners to generate, customize, and manage PDF invoices for customer orders. It supports automatic invoice generation, PDF rendering via Entity Print, and flexible invoice numbering through configurable patterns.

Features

  • Automatic invoice generation upon order placement.
  • Manual invoice generation using the provided service.
  • Support for multiple invoice types.
  • PDF generation using the Entity Print module.
  • Configurable invoice numbering using number patterns.

Installation

  1. Enable the module.
  2. Go to the desired Order Type edit form and enable invoicing for that order type.
  3. You can optionally enable automatic invoice generation so that invoices are created when orders are placed.
  4. Ensure your private file system path is correctly configured. See Drupal's documentation on private file systems.

Invoice Type Configuration

Commerce Invoice provides a "Default" invoice type and a "Credit memo" that can be customized at:
/admin/commerce/config/invoice-types

PDF Rendering with Entity Print

This module requires the Entity Print module to generate PDF versions of invoices.
Once Entity Print is installed, set the PDF engine to Php Wkhtmltopdf for best results.

For further details, please refer to Entity Print PDF Engine Support.

Invoice Number Customization

The invoice number format is managed using Commerce Number Patterns.
You can configure these patterns at:
/admin/commerce/config/number-patterns

By default, the included invoice type uses the "infinite" number generation strategy, but this can be adjusted as needed.

Manually Generating Invoices

Developers can generate invoices manually using the service provided by the module:

$invoice_generator = \Drupal::service('commerce_invoice.invoice_generator');
$invoice_generator->generate($orders, $store, $profile);

Activity

Total releases
3
First release
Apr 2025
Latest release
11 months ago
Release cadence
3 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
8.x-2.2 Stable May 5, 2025
8.x-2.1 Stable May 2, 2025
8.x-2.0 Stable Apr 30, 2025