Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Commerce Invoice

1,367 sites Security covered Drupal 10–11 Commerce ecosystem
View on drupal.org

This module allows store owners to generate, customize, and manage PDF invoices for their customer orders. It can automatically create invoices upon order placement and allows for flexible invoice numbering and customization.

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);

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Apr 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

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