MDVA-35773: Tax appears on invoice with 100% discount

The MDVA-35773 patch fixes the issue with the Grand Total not being shown as zero on the invoice for orders with a 100% discount. This patch is available when the Quality Patches Tool (QPT) 1.0.22 is installed. The patch ID is MDVA-35773. Please note that the issue was fixed in Adobe Commerce version 2.4.3.

Affected products and versions

The patch is created for Adobe Commerce version:

Adobe Commerce on cloud infrastructure 2.3.6

Compatible with Adobe Commerce versions:

Adobe Commerce on-premises and Adobe Commerce on cloud infrastructure 2.3.6-2.3.7 and 2.4.1-2.4.2

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

Steps to reproduce:

  1. Navigate to Stores > Settings > Configuration > Sales > Tax.

  2. Set Catalog Prices and Apply Discount on Prices to Including Tax.

  3. Navigate to Stores > Tax Rules > Add New Tax Rule.

  4. Create a tax rule (Example: all USA with 10% tax rate), and apply it.

  5. Navigate to Marketing > Cart Price Rules, and Add New Rule.

  6. Create a rule with a 100% discount for all users.

  7. Make an order on the Storefront:

    • Choose Free Shipping.
    • Apply Coupon Code.
  8. Navigate to Sales > Orders, and open your order.

  9. Create an invoice for the order, and open it.

Expected results:

The invoice Grand Total = $0.00.

Actual results:

The invoice Grand Total = tax amount is created.

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