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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bojanz created an issue. See original summary.

bojanz’s picture

Status: Active » Needs review
FileSize
8.03 KB

Here's some initial work.

bojanz’s picture

Added 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.

bojanz’s picture

Final patch. Improved order type UI, expanded UI tests.

  • bojanz committed 3b4ef56 on 8.x-2.x
    Issue #3080229 by bojanz: Update commerce_order to use...
bojanz’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.