{"data":{"id":"MDVA-39153","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where a discount amount is calculated incorrectly during reorder in the Admin.","categories":["Shopping Cart","Admin"],"components":["magento/module-checkout","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-8/mdva-39153-discount-amount-is-calculated-incorrectly-during-reorder-in-the-admin","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-8/mdva-39153-discount-amount-is-calculated-incorrectly-during-reorder-in-the-admin.md","blobSha":"5e8122546905f73f8398bbc069d414d578ebc43b","description":"Discount amount is calculated incorrectly during reorder in the Admin.","stepsToReproduce":"1. Go to the Admin > Stores > Configuration > Sales > Taxes. 1. Turn on the tax for shipping displaying the tax in the Shopping Cart. 1. Enable and configure the Table rate shipping method ($15). 1. Create a tax rule for built-in tax rate (for CA). 1. Create a cart price rule with a fixed $5 discount applied to the whole cart and shipping amount. 1. Add a product with a price of $12 to the cart and go to the Shopping Cart page. 1. Apply the discount to the cart. 1. Set shipping method in \"estimates\" section to \"Flat Rate\". 1. Proceed through checkout till review steps (do not place the order). 1. Go to the homepage and then back to the Shopping Cart. 1. Change shipping method in \"estimates\" section to \"Table Rate\".","introducedInQpt":"1.1.8","createdFor":["2.4.2-p1"],"documentedRange":"2.4.2-p1 - 2.4.3-p1","scheduledFixRelease":"2.4.4"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.2 <2.4.4","path":"patches/os/MDVA-39153_2.4.2-p1.patch","blobSha":"6da457a2a50b63d6874ce8a0c616f0b44973b2f0","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/MDVA-39153_2.4.2-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-checkout/Model/TotalsInformationManagement.php","change":"modified","package":"magento/module-checkout"},{"path":"vendor/magento/module-sales-rule/Helper/CartFixedDiscount.php","change":"modified","package":"magento/module-sales-rule"}],"packages":["magento/module-checkout","magento/module-sales-rule"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"magento-commerce":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"magento-commerce":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch MDVA-39153 details"}