-
Notifications
You must be signed in to change notification settings - Fork 8
/
currency.js
36 lines (33 loc) · 1.24 KB
/
currency.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* SuiteScript Currency APIs
*
* Use these APIs to work with currency, as it pertains to your NetSuite account
*/
/**
* Calculate exchange rate between two currencies as of today or an optional effective date
*
* This API is supported in client, user event, scheduled, portlet, and Suitelet scripts
*
* @governance 10 units
*
* @param {string, int} fromCurrency internal ID or currency code of currency we are converting from
* @param {string, int} toCurrency internal ID or currency code of currency we are converting to
* @param {string} [date] string containing date of effective exchange rate. defaults to today
*
* @return {number} The exchange rate (as a float) in the same precision that is displayed in the NetSuite UI.
* Note that null is returned if the targetCurrency is not set to a base currency.
* @exception {SSS_INVALID_CURRENCY_ID} If an invalid currency (from or to) is specified
* @since 2009.1
*/
function nlapiExchangeRate(fromCurrency, toCurrency, date) {
}
/**
* Format a number for data entry into a currency field
*
* @param {string} string numeric string used to format for display as currency using user's locale
*
* @return {string}
* @since 2008.1
*/
function nlapiFormatCurrency(string) {
}