Skip to content

Commit 26356e7

Browse files
committed
ACP2E-690: Discount code Times Used is being counted twice
1 parent 9560471 commit 26356e7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/code/Magento/SalesRule/Model/Coupon/UpdateCouponUsages.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ public function execute(OrderInterface $subject, bool $increment): OrderInterfac
5959
$updateInfo->setCustomerId((int)$subject->getCustomerId());
6060
$updateInfo->setIsIncrement($increment);
6161

62-
if ($subject->getOrigData('customer_id') === null
63-
&& $subject->getOrigData('coupon_code') !== null
64-
&& $subject->getOrigData('customer_id') !== $subject->getData('customer_id')) {
62+
if ($subject->getOrigData('coupon_code') !== null) {
6563
$updateInfo->setCouponAlreadyApplied(true);
6664
}
6765

0 commit comments

Comments
 (0)