• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Factory/SmartInvoice.php
  • Класс: Bitrix\Crm\Service\Factory\SmartInvoice
  • Вызов: SmartInvoice::prepareGetListParameters
protected function prepareGetListParameters(array $parameters): array
{
	$parameters = parent::prepareGetListParameters($parameters);
	if (
		isset($parameters['select'])
		&& !in_array('*', $parameters['select'], true)
		&& in_array(Item::FIELD_NAME_TITLE, $parameters['select'], true)
	)
	{
		$parameters['select'][] = Item\SmartInvoice::FIELD_NAME_ACCOUNT_NUMBER;
		$parameters['select'][] = Item\SmartInvoice::FIELD_NAME_BEGIN_DATE;
	}

	return $parameters;
}