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

Honour group currency in new transactions #182

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

ymeiron
Copy link
Contributor

@ymeiron ymeiron commented Jan 2, 2024

Hi all, thanks for developing this! When creating new transactions via the web front end, the € symbol is always used, irrespective of the group's currency symbol. Instead of hardcoding the symbol, the createTransaction function should retrieve it from the state. To get access to the group data (including currency symbol), I had to change the state type from ITransactionRootState to IRootState, maybe not the most elegant but I couldn't think of anything better.

@mikonse
Copy link
Contributor

mikonse commented Jan 2, 2024

Hi,
thanks a lot for the PR. Good catch on your side!

I think we cannot get around using IRootState here so your solution is the best one i.m.o.

@mikonse mikonse merged commit 9e9ddfd into SFTtech:master Jan 2, 2024
10 checks passed
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.

2 participants