JoaoJandre opened a new pull request, #7605:
URL: https://github.com/apache/cloudstack/pull/7605
### Description
Currently, in the Quota emails, the formatting of monetary values does not
include the currency symbol defined in the `quota.currency.symbol`
configuration. Additionally, the values are not formatted.
This PR changes the Quota emails to use the quota.currency.symbol
configuration to set the currency symbol. Additionally, a new configuration has
also been created, `quota.currency.locale`, which should be set to format the
value's punctuation in the quota emails using the wanted locale, en-US or pt-BR
for example.
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [X] Bug fix (non-breaking change which fixes an issue)
- [X] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
### Feature/Enhancement Scale or Bug Severity
#### Feature/Enhancement Scale
- [ ] Major
- [X] Minor
#### Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [X] Minor
- [ ] Trivial
### Screenshots (if appropriate):
### How Has This Been Tested?
I tested different combinations to observe the changes in the received quota
emails.
Test value = 12863.56
| `quota.currency.symbol` | `quota.currency.locale` | How it is received in
the emails |
|-------------------------|-------------------------|---------------------------|
| R$ | pt-BR
| R$ 12.863,56 |
| test | `null`
| test 12863.56 |
| `null` | ja-JP
| $ 12,863.56 |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]