Changes

Jump to: navigation, search

SsParseNum

544 bytes added, 15:47, 17 December 2020
When Using "Show Currency Format in Edit Mode"
<SCRIPT type="text/javascript" language="javascript" src="/sstools.js"></SCRIPT>
==When Using "Show <s>Currency </s> 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: medium;">'''ssParseNumFromCurrency(value,getLocalestrByCurrency(code),1,emptyok);''' ''(getLocalestrByCurrency will get the "default" locale of the currency code, e.g. CAD will result in en-CA, NOT fr-CA)'''''<br /><br />OR<br /><br />ssParseNumFromCurrency(value,locale,1,emptyok); '''''(if you know the locale of the formatted currency, e.g. da-DK or fr-FR or fr-CA etc)'''<br />'''''</span>
Where:
Example:
: <span style="font-size: medium;">ssParseNumFromCurrency([YER Total revenue],getLocalestrByCurrency("CAD"),1,true) - ssParseNumFromCurrency([YER Total expenses],getLocalestrByCurrency("CAD"),1,true)<br /></span>: <span style="font-size: medium;">or</span>: <span style="font-size: medium;">ssParseNumFromCurrency([YER Total revenue],"fr-CA",1,true) - ssParseNumFromCurrency([YER Total expenses],"fr-CA",1,true)  <br /><br /></span>
==See Also==
Smartstaff
124
edits

Navigation menu