Skip to content

Get line item currency from order#995

Closed
mamhoff wants to merge 1 commit intomasterfrom
unknown repository
Closed

Get line item currency from order#995
mamhoff wants to merge 1 commit intomasterfrom
unknown repository

Conversation

@mamhoff
Copy link
Copy Markdown
Contributor

@mamhoff mamhoff commented Mar 18, 2016

There seems to be a way of obtaining a line item's currency from
it's variant. That doesn't make much sense, as a variant might have
many prices in different currencies, but is not tied to a user or an
order which would know which of those currencies to use.

There seems to be a way of obtaining a line item's currency from
it's variant. That doesn't make much sense, as a variant might have
many prices in different currencies, but is not tied to a user or an
order which would know WHICH of those currencies to use.

Yanked an occurrence of `variant.currency` for `order.currency`.
@adammathys
Copy link
Copy Markdown
Member

👍

@jhawthorn
Copy link
Copy Markdown
Contributor

👍 Yikes. variant.currency is wrong and makes no sense

@tvdeyen
Copy link
Copy Markdown
Member

tvdeyen commented Mar 19, 2016

👍

@mbj
Copy link
Copy Markdown
Contributor

mbj commented Mar 20, 2016

No specs?

@mamhoff
Copy link
Copy Markdown
Contributor Author

mamhoff commented Mar 21, 2016

@mbj Good point, and thanks for sorta implicitly pointing me to your work on this. I'm closing this in favour of #998 - that one actually has specs and cleans the relationship with a line item and it's currency up in a more thorough way.

@mamhoff mamhoff closed this Mar 21, 2016
@mbj
Copy link
Copy Markdown
Contributor

mbj commented Mar 21, 2016

@mamhoff This project currently does not automatically verify code changes are paired with covering specs. While people seem to review code changes, the reviews are naturally (as we are all humans) of varying quality.

Having even an imperfect automated system in place that verifies the semantic change coverage will trigger the humans into performing a much higher quality review, as such systems never have a bad day.

When we have our tax hangout, I might be able to convince you to put such a system in-place.

@mamhoff mamhoff deleted the 0318-always-get-currency-from-order branch May 24, 2016 19:46
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.

5 participants