Skip to content

100% Discount cart rule results in Tax invoiced #30853

Closed
@OldPlanets

Description

@OldPlanets

Preconditions (*)

  1. Magento 2.3.6
  2. Magento 2.4-develop
  3. Free shipping is enabled

Steps to reproduce (*)

  1. Navigate to Stores / Settings / Configuration / Sales / Tax
  2. Set Catalog Prices and Apply Discount on Prices to Including Tax
    image
  3. Navigate to Sores / Tax Rules / Add New Tax Rule
  4. Create a rule for 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 100% discount for all users
    image
  7. Make an order on Storefront:
  • choose Free Shipping
  • apply coupon code
  1. Navigate to Sales / Orders and open your order
  2. Create an invoice for the order and open it

Expected result (*)

  1. An invoice is created over 0,00$

Actual result (*)

  1. An invoice with the Grand Total of the tax amount is created
    image
    Peek 2020-11-12 10-50

I'm suspect this bug was introduced in this commit (MC-35675):
2dbab41

It doesn't allow GrandTotals to go below zero, but the Tax Totals will add the discounted Tax, expecting that it was deducted before, resulting in a Invoice which is never smaller than the tax amount (instead of being 0)


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

    Labels

    Issue: 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.Progress: doneReported on 2.3.6Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions