Documentation

crm.currency.localizations.set

crm.currency.localizations.set(id, localizations)

Adds localization data to the specified currency.

Parameters

Parameter Description
id Specifies the ID of the currency.
localizations Set of localizations as an array type ("language" => array("field"=>"value"[, ...])), containing values of localization fields, where "language" - language ID, "field" - one of values returned by crm.currency.localizations.fields method.

Example

	BX24.callMethod(
	'crm.currency.localizations.set', 
	{
		id: "KWD", 
		localizations: 
		{
			ru:
			{
				DEC_POINT:'.', 
				FORMAT_STRING:'# Dinar', 
				FULL_NAME:'Kuwaiti Dinar', 
				THOUSANDS_VARIANT:'C',
				DECIMALS: 2,
				HIDE_ZERO: "Y" //IF the decimal part is zero, remive it when returned
				}, 
			en:
			{
				DEC_POINT:',', 
				FORMAT_STRING:'# KD', 
				FULL_NAME:'Kuwaiti Dinar', 
				THOUSANDS_VARIANT:'C',
				DECIMALS: 2,
				HIDE_ZERO: "Y"
			}
		}
	},
	function(result) 
	{
		if(result.error())
			console.error(result.error());
		else
			console.info(result.data());
	}			
);



User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2019, «Bitrix Inc.», 2019