This module allows to setup the sales sequence settings directly withing the configuration.
Please note that if you install this module, the existing sequence profiles will be update with the configuration set from this module.
If you aim to deploy this module in production, please ensure that you have setup configuration matching your existing sequence profiles, unless you want to update them.
Magento 2 Open Source or Commerce edition is required.
Run the following composer command:
composer require opengento/module-sales-sequence
Run the following magento command:
bin/magento setup:upgrade
If you are in production mode, do not forget to recompile and redeploy the static resources.
Setup the following sales sequence settings by entity types (order, invoice, creditmemo, shipment):
- Pattern
- Suffix
- Prefix
- Add Store ID
- Start Value
- Step
- Warning Value
- Max Value
This module is an alternative to this package: https://github.com/karliuka/m2.SalesSequence.
The main difference is that faonni/module-sales-sequence allows to manage sales sequences profile as an entity, whereas
our module achieve it via settings you can edit from the scoped configuration.
If you enable the store ID, it will be added a the fourth argument in the pattern. We recommend you to use the numered argument syntax (%4$s) in order to the position of your choice in the pattern.
- The sequence profiles and meta are updated at every recurring setup, config update, new or deleted store.
Raise a new request to the issue tracker.
This project is licensed under the MIT License - see the LICENSE details.
That's all folks!