Skip to content

Wrong Total when Price including-Tax when Cart has active coupon #39753

Open
@zexperto

Description

@zexperto

Preconditions and environment

  • Magento version: 2.4.7-p4
  • Fresh Magento: no customization

Steps to reproduce

in Fresh Magento

  1. Create Tax Zone and Rate (Switzerland with 8.1%)
  2. Create new Rule for this Rate
  3. set the default Country in Store->Configuration->Tax: default country - Switzerland
  4. Store->Configuration->Tax: Tax Class for Shipping: Taxable goods
  5. Store->Configuration->Tax: Catalog Prices: Including Tax
  6. Store->Configuration->Tax: Shipping Prices: Including Tax
  7. Store->Configuration->Tax: Enable Cross Border Trade
  8. Create a Cart discount with 10%
  9. Create Flat Rate shipping cost with 9.9
  10. Create new simple Item with SKU: simple, name = Simple
  11. Set the Price = 13.50
  12. Tax Class = Taxable Goods
  13. add the product to the cart then make the QTY = 6
  14. you will see that the total of the cart is wrong

Subtotal CHF74.93
Discount (Valentin25) -CHF7.49
Shipping (Flat Rate - Fixed) CHF9.16
Tax CHF6.25
Order Total CHF83.41

I have attached here all needed screenshot

Expected result

the Expected total should be
74.93 - 7.49 = 67.44 + (the tax for 67.44 which is around 5.46) + 9.9
Order Total CHF82.80

Actual result

Order Total CHF83.41

Additional information

No response

Release note

Tax Zone and Rate
Image

Tax Rate
Image

Sales->Tax Configuration
Image

Coupon

Image Image

Simple Item:

Image

Cart

Image

Triage and priority

  • 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

    Labels

    Area: Cart & CheckoutComponent: CheckoutIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.7-p4Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions