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

Update totals after order_with_totals create #2470

Merged

Conversation

BravoSimone
Copy link
Contributor

I'm adding an after :create hook in the order_with_totals factory calling order.recalculate to update totals.
I'm not 100% sure having a different behaviour between create and build is correct.

ref #2389

@@ -27,6 +27,10 @@
price: evaluator.line_items_price
)
end

after(:create) do |order, evaluator|

Choose a reason for hiding this comment

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

Unused block argument - evaluator. If it's necessary, use _ or _evaluator as an argument name to indicate that it won't be used.

Copy link
Contributor

@jhawthorn jhawthorn left a comment

Choose a reason for hiding this comment

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

👍

@kennyadsl kennyadsl merged commit 4b86aa4 into solidusio:master Jan 17, 2018
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.

4 participants