Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Order#shipping_discount consider only credits #3640

Merged

Conversation

spaghetticode
Copy link
Member

Description

Order#shipping_discount should consider only shipment adjustments that are credits (ie. with amount < 0) as the other ones would not result in a price discount.

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have updated Guides and README accordingly to this change (if needed)
  • I have added tests to cover this change (if needed)
  • I have attached screenshots to this PR for visual changes (if needed)

`Order#shipping_discount` should consider only shipment adjustments
that are `credits` (ie. with amount < 0) as the other ones would not
result in a price discount.
@spaghetticode spaghetticode added the type:bug Error, flaw or fault label May 26, 2020
@spaghetticode spaghetticode self-assigned this May 26, 2020
@kennyadsl kennyadsl added Important Change changelog:solidus_core Changes to the solidus_core gem labels May 27, 2020
@kennyadsl kennyadsl merged commit 822a71d into solidusio:master May 27, 2020
@kennyadsl kennyadsl deleted the spaghetticode/order-shipping-discount branch May 27, 2020 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_core Changes to the solidus_core gem type:bug Error, flaw or fault
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants