Order::getUserFieldsMap

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Order
  4. getUserFieldsMap
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/bizproc/document/order.php
  • Класс: Bitrix\Crm\Integration\BizProc\Document\Order
  • Вызов: Order::getUserFieldsMap
static function getUserFieldsMap()
{
	$userFields = [];
	$CCrmUserType = new \CCrmUserType(
		Application::getUserTypeManager(),
		\CCrmOwnerType::ResolveUserFieldEntityID(\CCrmOwnerType::Order),
	);
	$CCrmUserType->addBPFields(
		$userFields,
		['PRINTABLE_SUFFIX' => Loc::getMessage('CRM_BP_DOCUMENT_ORDER_PRINTABLE')]
	);

	foreach ($userFields as &$field)
	{
		if ($field['Type'] === 'UF:date')
		{
			$field['Type'] = 'date';
		}
	}

	return $userFields;
}

Добавить комментарий