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

MODFQMMGR-202: Include system exchange rate in Lists app #218

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

bvsharp
Copy link
Collaborator

@bvsharp bvsharp commented Mar 29, 2024

@bvsharp bvsharp force-pushed the MODFQMMGR-202-master branch 2 times, most recently from 82555d9 to 496790d Compare March 29, 2024 16:20
Comment on lines +48 to +81
static final List<String> SYSTEM_SUPPORTED_CURRENCIES = List.of(
"USD",
"JPY",
"BGN",
"CZK",
"DKK",
"GBP",
"HUF",
"PLN",
"RON",
"SEK",
"CHF",
"ISK",
"NOK",
"HRK",
"RUB",
"TRY",
"AUD",
"BRL",
"CAD",
"CNY",
"HKD",
"IDR",
"ILS",
"INR",
"KRW",
"MXN",
"MYR",
"NZD",
"PHP",
"SGD",
"THB",
"ZAR"
);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These pretty much have to be hardcoded, unless we want to duplicate all the functionality in mod-finance.

Comment on lines +153 to +155
if (exchangeRate instanceof BigDecimal bd) {
return bd.doubleValue();
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the /exchange-rates API can return a double or a bigdecimal, so we have to check for that here.

@bvsharp bvsharp force-pushed the MODFQMMGR-202-master branch from 496790d to 579b6fe Compare March 29, 2024 16:52
Copy link

sonarcloud bot commented Mar 29, 2024

@bvsharp bvsharp marked this pull request as ready for review March 29, 2024 17:01
@bvsharp bvsharp merged commit 7c75623 into master Mar 29, 2024
6 checks passed
mweaver-ebsco pushed a commit that referenced this pull request Apr 17, 2024
* MODFQMMGR-202: Include system exchange rate in Lists app

* Update POL definition in 1.2.0
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.

3 participants