Documentation

crm.measure.add

crm.measure.add(fields)

Adds a new unit of measurement.

Parameters

Parameter Description
fields Set of fields - is an array ("field"=>"value"[, ...]), containing measurement unit fields.

Fields for adding units of measurement:

  • CODE - Code;
  • MEASURE_TITLE - Unit of measurement title;
  • SYMBOL_RUS - Symbol designation;
  • SYMBOL_INTL - Symbol designation (international);
  • SYMBOL_LETTER_INTL - Letter symbol designation (international);
  • IS_DEFAULT - By default.

Example

	BX24.callMethod(
		"crm.measure.add",
		{
			fields: {
				"CODE": "212",
				"MEASURE_TITLE": "Ватт",
				"SYMBOL_RUS": "Вт",
				"SYMBOL_INTL": "W",
				"SYMBOL_LETTER_INTL": "WTT",
				"IS_DEFAULT": "N"
			}
		},
		function(result)
		{
			if(result.error())
				console.error(result.error());
			else
				console.info("Unit of measurement is created with ID" + 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