-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
82555d9
to
496790d
Compare
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" | ||
); |
There was a problem hiding this comment.
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.
if (exchangeRate instanceof BigDecimal bd) { | ||
return bd.doubleValue(); | ||
} |
There was a problem hiding this comment.
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.
496790d
to
579b6fe
Compare
Quality Gate passedIssues Measures |
* MODFQMMGR-202: Include system exchange rate in Lists app * Update POL definition in 1.2.0
Purpose
MODFQMMGR-202: Include system exchange rate in Lists app