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

A change was made recently to spree for multi-currency. #40

Closed
wants to merge 2 commits into from

Conversation

jsqu99
Copy link

@jsqu99 jsqu99 commented May 30, 2013

The copy_price method used to return the price:
spree/spree@58ec5cd#L12L27

but it no longer does, so we must not rely on its return value in our 'overridden' method.

The tests are currently failing (before my request), but this fixes several.

I'm requesting a thorough review of my changes just to be safe as I'm not sure that some of the existing code was necessary/correct.

Also, please cherry pick to master as well

The copy_price method used to return the price:
spree/spree@58ec5cd#L12L27

but it no longer does, so we must not rely on its return value in our 'overridden' method.

fixes logic for changing price after quantity changes
jsqu99 added a commit that referenced this pull request Jun 6, 2013
The copy_price method used to return the price:
spree/spree@58ec5cd#L12L27

but it no longer does, so we must not rely on its return value in our 'overridden' method.

fixes logic for changing price after quantity changes

Related to #40

Conflicts:
	app/models/spree/line_item_decorator.rb
jsqu99 added a commit that referenced this pull request Jun 6, 2013
jsqu99 added a commit that referenced this pull request Jun 6, 2013
The copy_price method used to return the price:
spree/spree@58ec5cd#L12L27

but it no longer does, so we must not rely on its return value in our 'overridden' method.

fixes logic for changing price after quantity changes

Related to #40
jsqu99 added a commit that referenced this pull request Jun 6, 2013
jsqu99 added a commit that referenced this pull request Jun 6, 2013
The copy_price method used to return the price:
spree/spree@58ec5cd#L12L27

but it no longer does, so we must not rely on its return value in our 'overridden' method.

fixes logic for changing price after quantity changes

Related to #40

Conflicts:
	app/models/spree/line_item_decorator.rb
@jsqu99 jsqu99 closed this in 54a80a7 Jun 6, 2013
@radar
Copy link

radar commented Jun 6, 2013

Added to master, 2-0-stable and 1-3-stable. Thanks!

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.

None yet

2 participants