moqui / moqui-framework

Use Moqui Framework to build enterprise applications based on Java. It includes tools for databases (relational, graph, document), local and web services, web and other UI with screens and forms, security, file/resource access, scripts, templates, l10n, caching, logging, search, rules, workflow, multi-instance, and integration.
http://www.moqui.org
Other
279 stars 199 forks source link

Currency #614

Closed jenshp closed 11 months ago

jenshp commented 11 months ago

Add fields to moqui.basic.Uom to handle currency details, and use them for adding custom currencies or override currencies existing in JVM for both, rounding and formatting currency values in L10nFacade. Also, add a currency-dependent method that hides the symbol but formats according to currency and locale. As discussed in https://forum.moqui.org/t/using-non-iso-4217-currencies/552?u=jenshp

The formatting considers both, the currency and the locale, to determine the correct formatting. This is why the symbol field in the Uom entity is set to be localizable, because some locales use the currency code instead of the symbol, which can be achieved in this implementation by adding a locale-specific symbol for a currency.

jonesde commented 11 months ago

Thank you Jens, from a read through it looks good