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

Extract expedited exchanges to an extension #1691

Merged
merged 8 commits into from
Jan 31, 2017

Conversation

jhawthorn
Copy link
Contributor

Built on top of #1690

This PR removes "expedited exchanges"/"unreturned exchanges", which are being extracted to the solidus_expedited_exchanges extension.

Expedited exchanges were only available by setting Spree::Config.expedited_exchanges to true.

Previously the subject validations would never run, so line_item.errors
would always be empty.
When finalizing shipments, only pending units are considered, so we
should do the same here.

When creating an "unreturned exchange", the order is created with an
existing shipment which has already been shipped and finalized. This
commit allows the AvailabilityValidator to consider that valid.
Now that AvailabilityValidator is smarter and understands pending
inventory units, this isn't necessary. Inventory won't be checked for
finalized inventory units.
@jhawthorn jhawthorn force-pushed the remove_expedited_exchanges branch from 56aaf9e to a322932 Compare January 25, 2017 21:32
Copy link
Contributor

@cbrunsdon cbrunsdon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@jhawthorn jhawthorn merged commit cfbfb87 into solidusio:master Jan 31, 2017
@jhawthorn jhawthorn deleted the remove_expedited_exchanges branch January 31, 2017 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants