Skip to content

invoice/order/creditmemo adjusting increment id length issue #5541

@basselalaraaj

Description

@basselalaraaj

When creating a order/invoice/creditmemo, the increment id length is always: prefix + 9 numbers.

The default pattern is now always used, when creating a order/invoice/creditmemo in
vendor/magento/module-sales-sequence/Model/Sequence.php::19
const DEFAULT_PATTERN = "%s%'.09d%s";

When adjusting the 'increment_pad_length' column value in the table 'eav_entity_type' to 6, i expected the increment id's to change to the format: prefix + 6 numbers.

example:
prefix = 7
id = 8

Expected increment id = 7000008
Actually increment id = 7000000008

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Format is not validGate 1 Failed. Automatic verification of issue format is failed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions