Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In case you create the invoice via bulk operations etc. then generate_invoice_id() returns the same ID.
Because the sql query orders the invoices by "created" timestamp, which is then not anymore unique enough, therefore it is better to order by invoice id.
Comment | File | Size | Author |
---|---|---|---|
#2 | i1847326-2.patch | 632 bytes | attiks |
#1 | commerce_invoice-1847326-1.patch | 584 bytes | tobiasb |
Comments
Comment #1
tobiasbComment #2
attiks CreditAttribution: attiks commentedPatch looks good, I added a line to filter by type
Comment #3
dwkitchen CreditAttribution: dwkitchen commentedClosing all Drupal 7 issues as this project will only be supported for Drupal 8