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

Fix complete order factory to have non-pending inventory units #1787

Merged
merged 1 commit into from
Mar 30, 2017

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Mar 21, 2017

When an order is completed, all its inventory units are by default
set to pending: false. The factory should reflect that.

When an order is completed, all its inventory units are by default
set to `pending: false`. The factory should reflect that.

This made a change to the shipment spec necessary. That spec is setup with
a completed order, and then runs `Spree::Shipment#finalize`, which is
run at order completion, so I manually reset the inventory unit to pending.
@jhawthorn jhawthorn merged commit 24c6554 into solidusio:master Mar 30, 2017
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.

3 participants