...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/integration/documentgenerator/dataprovider/smartinvoice.php
- Класс: Bitrix\Crm\Integration\DocumentGenerator\DataProvider\SmartInvoice
- Вызов: SmartInvoice::getFields
public function getFields(): array { if($this->fields === null) { $fields = parent::getFields(); $fields[Item::FIELD_NAME_BEGIN_DATE]['TITLE'] = $this->getFactory()->getFieldCaption(Item::FIELD_NAME_BEGIN_DATE); $fields[Item::FIELD_NAME_CLOSE_DATE]['TITLE'] = $this->getFactory()->getFieldCaption(Item::FIELD_NAME_CLOSE_DATE); foreach ($this->getFieldsAliases() as $alias => $fieldName) { if (isset($fields[$fieldName])) { $fields[$alias] = [ 'TITLE' => $fields[$fieldName]['TITLE'], 'VALUE' => $fieldName, 'OPTIONS' => [ 'COPY' => $fieldName, ] ]; } } $this->fields = $fields; } return $this->fields; }