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.
Followup to #2730131: Add a commerce_number_pattern submodule for sequential (order/invoice) number generation.
Now that the module has landed, commerce_order needs to depend on it, and enable it in an update hook. The order type needs a number pattern reference. And the OrderNumberSubscriber needs to use the number pattern to generate an order number.
Comment | File | Size | Author |
---|---|---|---|
#4 | 3080229-4-enable-number-pattern.patch | 19.83 KB | bojanz |
| |||
#4 | 3080229-4-enable-number-pattern.patch | 19.83 KB | bojanz |
| |||
#3 | 3080229-3-enable-number-pattern.patch | 17.15 KB | bojanz |
| |||
#2 | 3080229-2-enable-number-pattern.patch | 8.03 KB | bojanz |
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedHere's some initial work.
Comment #3
bojanz CreditAttribution: bojanz at Centarro commentedAdded the needed code to OrderNumberSubscriber and updated OrderNumberTest.
Fixed the ConfigUpdaterTest, which was enabling commerce_order for no reasons.
EDIT: We're green. Now we just need to pretty up the OrderTypeForm.
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedFinal patch. Improved order type UI, expanded UI tests.
Comment #6
bojanz CreditAttribution: bojanz at Centarro commentedCommitted.