Skip to content

Commit 9bbcd41

Browse files
author
Aliaksei Yakimovich2
committed
MAGETWO-70885: [SOAP] The 'incrementId' property of the order with state 'complete' is increased after order status update
- Fixed an issue with skipped incrent ids when order creates;
1 parent 61138dd commit 9bbcd41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Sales/Model/ResourceModel/EntityAbstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ protected function _prepareDataForSave(\Magento\Framework\Model\AbstractModel $o
125125
protected function _beforeSave(\Magento\Framework\Model\AbstractModel $object)
126126
{
127127
/** @var \Magento\Sales\Model\AbstractModel $object */
128-
if ($object instanceof EntityInterface && $object->getEntityId() == null) {
128+
if ($object instanceof EntityInterface && $object->getEntityId() == null && $object->getIncrementId() == null) {
129129
$store = $object->getStore();
130130
$storeId = $store->getId();
131131
if ($storeId === null) {

0 commit comments

Comments
 (0)