{"data":{"id":"ACSD-63062","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where incorrect cart discount calculations occur when multiple overlapping rules are applied.","categories":["Shopping Cart"],"components":["magento/module-quote","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-56/acsd-63062-incorrect-cart-discount-calculations-when-multiple-overlapping-rules","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-56/acsd-63062-incorrect-cart-discount-calculations-when-multiple-overlapping-rules.md","blobSha":"26e09b37cdbda7e6e543cacdca89fc7fd5b1b705","description":"Incorrect cart discount calculations occur when multiple overlapping rules are applied.","stepsToReproduce":"1. Install fresh instance with sample data. 1. Create three simple products: * simple1: $1080 * simple2: $260 * simple3: $280 1. Create four Cart Price Rules as follows: * Rule 1: * Priority: 100 * Conditions tab: Use simple2 ($280) product if total qty equals or is greater than 3 * Actions tab: SKU is simple2 * Fixed Amount Discount: $80 * Rule 2: * Priority: 200 * Actions tab: SKU is simple2 * Percentage of Product Price Discount: 20% * Rule 3: * Priority: 300 * Conditions tab: Subtotal equals or is greater than $1000 * Fixed Amount Discount for the whole cart: $100 * Rule 4: * Priority: 400 * Conditions tab: Use simple1 ($1080) product if total qty equals or is greater than 2 * Actions tab: SKU is simple1 * Fixed Amount Discount for the whole cart: $960 1. Go to the storefront and add the following products with given quantity to the cart: * simple1 = 2 * simple2 = 1 * simple3 = 3 1. Check the shopping cart.","introducedInQpt":"1.1.56","createdFor":["2.4.7-p2"],"documentedRange":"2.4.7 - 2.4.7-p3","scheduledFixRelease":"2.4.8"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.7 <2.4.8","path":"patches/os/ACSD-63062_2.4.7-p2.patch","blobSha":"af25c307752a402425b17cf578dd4273f1e4c23a","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-63062_2.4.7-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-sales-rule/Helper/CartFixedDiscount.php","change":"modified","package":"magento/module-sales-rule"},{"path":"vendor/magento/module-quote/Model/Quote/Item/AbstractItem.php","change":"modified","package":"magento/module-quote"},{"path":"vendor/magento/module-sales-rule/Model/Quote/Discount.php","change":"modified","package":"magento/module-sales-rule"},{"path":"vendor/magento/module-sales-rule/Model/Rule/Action/Discount/CartFixed.php","change":"modified","package":"magento/module-sales-rule"}],"packages":["magento/module-sales-rule","magento/module-quote"],"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":null,"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"],"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":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-63062 details"}