New invoices should be generated when an order is updated

Created on 11 November 2022, over 2 years ago
Updated 30 April 2025, about 2 months ago

Problem/Motivation

The module description states

Invoices are normally created by Rules action. Updating order with an existing invoice results in creating a new invoice. Existing unpaid invoices will be cancelled, existing paid invoices will be scheduled for refund.

This does not actually appear to happen. Marking as a feature request since I think this must just be outdated documentation.

Steps to reproduce

Generate an invoice for an order and then update the order. The original invoice is unaffected and a new invoice is not generated.

Proposed resolution

There are probably multiple moving parts here. What I see so far, although there may be more that I haven't gotten to yet:

  • Something needs to run on order update to cancel all existing draft and pending invoices for the order it it has changed
  • The invoice generation logic needs to exclude "canceled" invoices in its logic for dropping line items.
Feature request
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

🇺🇸United States mrweiner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇱Israel jsacksick

    Invoices have their own states etc... If you need to generate a new invoice after the order is updated, I'm afraid custom code will have to be written but we are not planning to do that automatically from commerce_invoice in a near future.

Production build 0.71.5 2024