Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into bugfix/supesc-198-i…
Browse files Browse the repository at this point in the history
…ncorrect-reservation-calculation
  • Loading branch information
AsonUnique committed Feb 9, 2021
2 parents 9c24e1f + 4b80397 commit dcce1b0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1031,10 +1031,10 @@ protected function filterItemsWithTimeoutEvent(array $orderItems, array $process
if ($targetState->hasTimeoutEvent()) {
$events = $targetState->getTimeoutEvents();
foreach ($events as $event) {
if (array_key_exists($event->getName(), $orderItemsWithTimeoutEvent) === false) {
$orderItemsWithTimeoutEvent[$event->getName()] = [];
$orderItemKey = sprintf('%s_%s', $orderItem->getIdSalesOrderItem(), $orderItem->getFkOmsOrderItemState());
if (!isset($orderItemsWithTimeoutEvent[$event->getName()][$orderItemKey])) {
$orderItemsWithTimeoutEvent[$event->getName()][$orderItemKey] = $orderItem;
}
$orderItemsWithTimeoutEvent[$event->getName()][] = $orderItem;
}
}
}
Expand Down

0 comments on commit dcce1b0

Please sign in to comment.