Skip to content

Discount amount (based on coupon code) displays misleading in cart (excl./incl. VAT) #34959

Open
@anderspirlo

Description

@anderspirlo

Preconditions (*)

  1. Tested on Magento ver. 2.4.3-p1.

Steps to reproduce (*)

Tax settings - set Catalog Prices under Calculation settings to excluding tax.
Tax settings - set Apply Discount On Prices under Calculation settings to excluding tax.
Tax settings - set Display Product Prices In Catalog under Price Display Settings to including tax.
Tax settings - set Display Prices under Shopping Cart Display Prices to including tax.
Tax settings - set Display Subtotal under Shopping Cart Display Prices to including tax.
Tax settings - set Display Shipping Amount under Shopping Cart Display Prices to including tax.

I created a Cart price rule with a coupon code, where it gives an discount of 10% without any product conditions.
Go to frontend and add a product to cart. Go to cart page and apply coupon code and look at cart summary.
Product Price: $50
Tax: 10%
Coupon: 10%
Shopping Cart Page display:
Since display settings set to including tax. displayed as $55
Since Apply Discount set to Excluding tax: 50 - (10% of 50) = 50 - 5 = 45
Since Apply tax set to After discount : 45 + (10% of 45) = 45 + 4.5 = 49.5
Discount displayed: $5
Tax displayed: 4.5
But since Price display settings set to including tax:
Subtotal = 55 (Including tax)
Discount also should be displayed including tax: 10% of 55 = 5.5
Total = 55 - 5.5. = 49.5

Expected result (*)

  1. Discount amount (based on coupon code) displayed incl. VAT, as all other amounts is including VAT.
  2. Expected behaviour is, that Discount amount (based on coupon code) is based on Tax Settings for either Display Product Prices In Catalog under Price Display Settings or Display Prices under Shopping Cart Display Prices.

Actual result (*)

  1. Discount amount (based on coupon code) displays excl. VAT.
  2. Actual VAT calculation is correct, but the amount is misleading.
    image

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Ready for Grooming

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions