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.
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.
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.