{"data":{"id":"ACSD-54966","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where a coupon code with a limited-use per customer can't be reused if the previous order failed.","categories":["Shopping Cart"],"components":["magento/module-sales-rule"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-42/acsd-54966-fix-for-limited-use-coupon-code-after-failed-orders","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-42/acsd-54966-fix-for-limited-use-coupon-code-after-failed-orders.md","blobSha":"7c75ceb762ea578c3bacff55858648211b5d0dbe","description":"A coupon code, limited for single use per customer, cannot be reused following a failed previous order.","stepsToReproduce":"1. Set up a cart price rule with Uses per Customer = 1. 1. Proceed to make a purchase using the assigned coupon code. 1. Cancel the order from the admin panel or execute the order with a payment failure. 1. Run the command: bin/magento queue:consumers:start sales.rule.update.coupon.usage 1. Try to place a subsequent order using the same coupon code for the same customer.","introducedInQpt":"1.1.42","createdFor":["2.4.6-p1","2.4.7-p2"],"documentedRange":"2.4.5 - 2.4.5-p10, 2.4.6 - 2.4.6-p8, 2.4.7 - 2.4.7-p3","scheduledFixRelease":"2.4.7"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.5 <2.4.5-p11 || >=2.4.6 <2.4.6-p9","path":"patches/os/ACSD-54966_2.4.6-p1.patch","blobSha":"9dfb9d90431e3a47691623a5eed2559416de7308","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-54966_2.4.6-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-sales-rule/Model/Coupon/Quote/UpdateCouponUsages.php","change":"modified","package":"magento/module-sales-rule"},{"path":"vendor/magento/module-sales-rule/Model/Coupon/UpdateCouponUsages.php","change":"modified","package":"magento/module-sales-rule"},{"path":"vendor/magento/module-sales-rule/Model/Coupon/Usage/Processor.php","change":"modified","package":"magento/module-sales-rule"},{"path":"vendor/magento/module-sales-rule/Model/CouponUsageConsumer.php","change":"modified","package":"magento/module-sales-rule"}],"packages":["magento/module-sales-rule"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"magento-commerce":["2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":"ACSD-54966-V2","deprecated":false}],"applicableVersions":{"magento-community":["2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"magento-commerce":["2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-54966 details"}