Skip to content

Commit

Permalink
NTR: do not cancel orders
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Nov 29, 2024
1 parent 6aa03a9 commit 01762eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Components/OrderExpiration/ExpireAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ private function expireOrdersInSalesChannel(SalesChannelEntity $salesChannelEnti

$criteria = new Criteria();
$criteria->addAssociation('transactions.stateMachineState');
$criteria->addAssociation('transactions.paymentMethod');
$criteria->addFilter(new EqualsFilter('transactions.stateMachineState.technicalName', OrderTransactionStates::STATE_IN_PROGRESS));
$criteria->addFilter(new EqualsFilter('salesChannelId', $salesChannelEntity->getId()));
$criteria->addFilter(new RangeFilter('orderDateTime', [RangeFilter::GTE => $date->format(Defaults::STORAGE_DATE_TIME_FORMAT)]));
Expand Down

0 comments on commit 01762eb

Please sign in to comment.