Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Commerce Invoice

Security covered Under active development 1,412 sites

Part of the Commerce ecosystem · 487 projects

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);
Drupal 10–11

Ask your assistant about Commerce Invoice

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
7
Tracked since
Jan 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP 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
8.x-2.0-rc5 Pre-release 9–11 Aug 30, 2024
8.x-2.0-rc4 Pre-release 9–10 Aug 30, 2024
8.x-2.0-rc3 Pre-release 9–10 Jan 30, 2023
8.x-2.0-rc2 Pre-release 9–10 Jan 19, 2023