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());
	}			
);



© «Bitrix Inc.», 2001-2020, «Bitrix Inc.», 2020