Currency Amounts

Locales ensure that currency amounts are entered and appear correctly for the default currency that is assigned to applications and applied to transactions.

The following methods are defined in MobiliserBasePage.java, and provide convenient access to the appropriate FormatUtils class:
public long convertAmountToLong(String strAmount) throws ParseException
public String convertAmountToString(long amount)
public String convertAmountToString(MoneyAmount amount)
public String convertAmountToStringWithCurrency(long amount)
public String convertAmountToStringWithCurrency(long amount, String currency)
public String convertAmountToStringWithCurrency(MoneyAmount amount)
Note: If the currency is not supplied in the method call, you must configure it (through Preferences) for the application. If the locale is not supplied in the method call, the user's Web session locale is used.