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 _invoice_get_invoice_items() in invoice.form.inc, the query in line 717 needs "ORDER BY created ASC, weight ASC" instead of just "ORDER BY created ASC". That's how it's done in invoice_load(). I had to make the change in my application because I'm creating invoices programmatically, and since 'created' is only granular to the second, it's the same for all my line items. Therefore, I depend on weight to order the items.
Comments
Comment #1
pietervogelaar CreditAttribution: pietervogelaar commentedThis is fixed in version 7. Version 6 won't get any updates.