{"data":{"id":"ACSD-61553","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where Cart Price Rule discounts are incorrectly calculated when multiple discounts with different priorities and \"Maximum Qty Discount is Applied To\" are applied to the product.","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-53/acsd-61553-cart-price-rule-discounts-are-incorrectly-calculated-when-multiple-discounts-with-different-priorities-are-applied","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-53/acsd-61553-cart-price-rule-discounts-are-incorrectly-calculated-when-multiple-discounts-with-different-priorities-are-applied.md","blobSha":"9b5b37b093008d48c3316bb16f5ee3588dd6754a","description":"Cart Price Rule is incorrectly calculated when multiple discounts with different priorities are applied.","stepsToReproduce":"1. Create a simple product with a price of $9,000. 1. Create a Cart Price Rule: Rule A with a fixed discount of $700 without any conditions and without discarding subsequent rules. 1. Create another Cart Price Rule: Rule B with a fixed discount of $1000 without any conditions and without discarding subsequent rules. 1. Add the product with the quantity 13 to the cart. 1. Update the rules with any of the below scenarios: Scenario 01 Rule A Priority: 1 Maximum Qty Discount is Applied To: 1 Rule B Priority: 0 Maximum Qty Discount is Applied To: 0 Scenario 02 Rule A Priority: 0 Maximum Qty Discount is Applied To: 0 Rule B Priority: 1 Maximum Qty Discount is Applied To: 1 Scenario 03 Rule A Priority: 0 Maximum Qty Discount is Applied To: 0 Rule B Priority: 0 Maximum Qty Discount is Applied To: 1 1. Click the Update Shopping Cart button to recalculate the discounts.","introducedInQpt":"1.1.53","createdFor":["2.4.5-p8"],"documentedRange":"2.4.5 - 2.4.6-p8","scheduledFixRelease":"2.4.8"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.5 <2.4.7","path":"patches/os/ACSD-61553_2.4.5-p8.patch","blobSha":"da7b90548622e2a7e43f4c966da49986a1fc550d","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-61553_2.4.5-p8.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-sales-rule/Model/Rule/Action/Discount/ByFixed.php","change":"modified","package":"magento/module-sales-rule"},{"path":"vendor/magento/module-sales-rule/Model/Utility.php","change":"modified","package":"magento/module-sales-rule"}],"packages":["magento/module-sales-rule"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","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-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","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-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","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-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","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":null,"deprecated":false},{"package":"magento/magento2-base","constraint":">=2.4.7 <2.4.8","path":"patches/os/ACSD-62648_2.4.7-p2.patch","blobSha":"6b46cf63f9f66198497a0a8d2ff3d4b5d803a6b0","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-62648_2.4.7-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-sales-rule/Model/Rule/Action/Discount/ByFixed.php","change":"modified","package":"magento/module-sales-rule"},{"path":"vendor/magento/module-sales-rule/Model/Utility.php","change":"modified","package":"magento/module-sales-rule"}],"packages":["magento/module-sales-rule"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7"],"magento-commerce":["2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":"ACSD-63469","deprecated":false}],"applicableVersions":{"magento-community":["2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7","2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","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-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","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.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7","2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","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-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","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-61553 details"}