Skip to content

Conversation

@osrecio
Copy link
Member

@osrecio osrecio commented Jun 4, 2018

Original Pull Request

#13185

Description

A negative basket total is produced when:

  • tax was applied;
  • shipping was calculated and saved; and
  • basket is emptied

This PR fixes the issue by completing an earlier return on tax total collector that failed to unset taxed shipping total information.

negative-price

Fixed Issues (if relevant)

No directly related issue found

Manual testing scenarios

  1. Set up tax to 20%

  2. Set up tax settings like below

    tax-settings

  3. Sign in on front-end

  4. Add a default shipping address that will result in 20% tax rate

  5. Add a product to basket

  6. Go to checkout page

  7. Select default shipping address and select shipping method

  8. Step to billing (At this point, shipping tax should be calculated and show up on the breakdown)

  9. Go to basket page

  10. Empty the basket by removing the only product from it

Expected result

Basket total should become 0

Actual result

Basket total become negative (e.g., -1)

/customer/section/load/?sections=cart

DEMO

http://recordit.co/vERAS5KL1x

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @osrecio. Thank you for your contribution.
Changes from your Pull Request will be available with the upcoming 2.3.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Tax Partner: Interactiv4 Pull Request is created by partner Interactiv4 partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants