marissen / magento2-module-better-order-incrementing
1.0.1
2021-09-03 10:30 UTC
Requires
- magento/framework: *
- magento/module-sales-sequence: *
Suggests
- fooman/sameorderinvoicenumber-m2: Persist increment ID between Order, Invoice, Shipment and Creditmemo
This package is auto-updated.
Last update: 2021-09-03 10:31:32 UTC
README
手动增加订单ID,而不是依赖自动增加。
当MySQL回滚发生时,自动增加的ID不会回滚到之前值。在许多情况下这并不是坏事,但对于订单ID来说却如此。订单ID需要是连续的,以便更好地组织和记账。
安装
composer require mooore/magento2-module-better-order-incrementing bin/magento setup:upgrade
卸载
以下表的auto_increment可能与表的内容不一致
sequence_creditmemo_X
sequence_invoice_X
sequence_order_X
sequence_shipment_X
请验证这一点并确保其一致性,因为如果不一致并且您禁用/卸载此模块,您将遇到MySQL约束问题。