MDVA-39153: Discount amount is calculated incorrectly during reorder in the Admin

The MDVA-39153 patch fixes the issue where the discount amount is calculated incorrectly during reorder in the Admin. This patch is available when the Quality Patches Tool (QPT) 1.1.8 is installed. The patch ID is MDVA-39153. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.4.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.2-p1

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.2-p1 - 2.4.3-p1
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

Discount amount is calculated incorrectly during reorder in the Admin.

Steps to reproduce:

  1. Go to the Admin > Stores > Configuration > Sales > Taxes.
  2. Turn on the tax for shipping displaying the tax in the Shopping Cart.
  3. Enable and configure the Table rate shipping method ($15).
  4. Create a tax rule for built-in tax rate (for CA).
  5. Create a cart price rule with a fixed $5 discount applied to the whole cart and shipping amount.
  6. Add a product with a price of $12 to the cart and go to the Shopping Cart page.
  7. Apply the discount to the cart.
  8. Set shipping method in “estimates” section to “Flat Rate”.
  9. Proceed through checkout till review steps (do not place the order).
  10. Go to the homepage and then back to the Shopping Cart.
  11. Change shipping method in “estimates” section to “Table Rate”.

Expected results:

The discount remains the same - $5.

Actual results:

The discount is $6.31.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT, refer to Patches available in QPT in our developer documentation.

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a