Developer

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)