top of page
Writer's pictureEH Lim

Currency name versus currency code


When adding a Transaction.currency field into the sales invoice or receipt template, it prints the currency code used in the transaction. For example, to print an invoice total of US$1,000, you use:

Transaction.currency+Transaction.gross

The invoice total prints as 'USD1,000.00'.

On the other hand, it may be more appropriate to show the currency name instead of the currency code when converting the invoice total in English. That is, print the invoice total as 'US Dollar One thousand dollar only' is better than showing the currency code 'USD'.

The currency name, such as 'US Dollar', stores in the Off-ledger table, which require to use a Lookup function

Lookup (Transaction.currency, "Offledger.description")

to pull out the currency name.

It prints as 'US Dollar One thousand dollar only' when adding the formula in front of the DollarsToEnglish ( ) function of the Transaction.gross.

Lookup (Transaction.currency, "Offledger.description") + " " + DollarsToEnglish (Transaction.gross)

You may refer to the MoneyWorks user guide to have more information on form design and formula use.

Sign up a free demo to find out how MoneyWorks accounting software helps manage your business finance more efficiently.

28 views0 comments
bottom of page