magento2
magento2 copied to clipboard
Sales sequence prefix and pad length will not change.
Preconditions
- Magento 2.1.2 CE
Steps to reproduce
- Opened up the
eav_entity_typetable and modified the rows fororder,invoice,creditmemo, andshipmentso thatincrement_pad_lengthwas 5 instead of 8 - Cleared cache and re-ran
setup:di:compile
Expected result
- New orders should have shorter order numbers, i.e 0000XX instead of 0000000XX
eav_entity_storeshould be populated.
Actual result
- New orders still use the default pad length and pattern as defined in
app/code/Magento/SalesSequence/Model/Sequence.php eav_entity_storeremains empty.
Additional Details
It looks like closed issue #5541 also covered this, but the 'solution' was a non-answer. Why doesn't the EAV-model code work correct in regard to orders?
Hi, thank you for your report. In #5541comment was described the correct solution. You should use di.xml to replace the default pattern with your pattern. Closed. Feel free to reopen issue if described solution doesn't work for you