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

Prevent Credit Note details from always displaying hardcoded USD #1372

Closed
wants to merge 1 commit into from

Conversation

edwardmp
Copy link
Contributor

A hardcoded USD currency is shown because accountCurrency is never fetched using GraphQL, this PR fixes this bug.

Context

Even if my credit note is in EUR, USD is shown for the item

Description

The issue is that the amountCurrency is used in the code to render the item, however it isn't fetched using GraphQL, defaulting to USD.
See screenshot.

Screenshot 2023-12-28 at 18 16 44

A hardcoded USD currency is shown because accountCurrency is never fetched using GraphQL
@ansmonjol ansmonjol self-assigned this Dec 29, 2023
@ansmonjol ansmonjol added the 🐞 bug Something isn't working label Dec 29, 2023
ansmonjol added a commit that referenced this pull request Dec 29, 2023
@ansmonjol
Copy link
Collaborator

Hey @edwardmp, thanks a lot for reporting this and fixing it!

I've re-opened a PR with your changes on our repo so CI can pass.

I've marked you as co-author of the commit of course.

#1373

@ansmonjol ansmonjol closed this Dec 29, 2023
ansmonjol added a commit that referenced this pull request Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants