Changes

Jump to: navigation, search

SsParseNum

64 bytes added, 15:35, 17 December 2020
When Using "Show Currency Format in Edit Mode"
==When Using "Show Currency Format in Edit Mode"==
When using the "Show Currency Format in Edit Mode" setting for custom fields, the following syntax must be used:
:<span style="font -size="3: medium;">'''ssParseNumByCodessParseNumFromCurrency( ''value'',''getLocalestrByCurrency(code),1,emptyok'','' 'code' '');''' </fontspan> Where: <br / >
{| border="1"
!Parameter
!Description
|-
!|<b><em>value </em></b>Parameter!|Required. Is the value to be converted to a number (i.e: $5,000.00 and 5,000% will be converted to 5000)<br />Description
|-
|<b><em>|'''''value '''''||Required. Is the value to be converted to a number (i.e: $5,000.00 and 5,000 will be converted to 5000)|-||'''''emptyok </em></b>'''''||Optional. Is a true/false value:*if ''emptyok'' is true - an empty string will be returned by ssParseNumByCode if the value is ''empty'':*if ''emptyok'' is false - a "0" will be returned by ssParseNumByCode if the value is ''empty'' 
|-
|<b><em>|'''''code</em></b>'''''||Required. The three-letter currency code defined by [http://en.wikipedia.org/wiki/ISO_4217 ISO 4217]. Example: ''JPY'' for Japanese Yen.
|}
Example:
:<span style="font -size="3: medium;">'''ssParseNumByCodessParseNumFromCurrency([YER Total revenue],0,getLocalestrByCurrency("CAD"),1,true) - ssParseNumByCodessParseNumFromCurrency([YER Total expenses],0,getLocalestrByCurrency("CAD"),1,true)</fontspan>
==See Also==
Smartstaff
124
edits

Navigation menu