Money
A Carrot datatype used by fields that store a money value.
The Money datatype is supported by Custom Fields.
Properties
The Money datatype supports the following properties:
Property | Definition |
moneyField.amount | Returns the amount as a Number. |
moneyField.currency | Returns the currency of the money value. |
moneyField.asOrgCurrency | Returns the money amount in the org’s default currency, using the conversion rate at the given point in time. |
Sample usage
targetBaseSalary.amount returns the value of targetBaseSalary as a Number.
Money type formatting examples
Currency type | Iso code | Code example | Currency amount |
United States dollar | USD | USD65000 | $65,000 |
The euro | EUR | EUR12000 | €12,000 |
Indian rupee | INR | INR2000 | ₹2000 |