...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/integration/documentgenerator/dataprovider/shipment.php
- Класс: Bitrix\Crm\Integration\DocumentGenerator\DataProvider\Shipment
- Вызов: Shipment::getFields
public function getFields(): array { if ($this->fields === null) { $this->fields = [ 'ID' => [ 'TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_ID'), ], 'DATE_INSERT' => [ 'TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_DATE_INSERT'), ], 'STATUS_ID' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_STATUS_ID')], 'PRICE_DELIVERY' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_PRICE_DELIVERY')], 'ALLOW_DELIVERY' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_ALLOW_DELIVERY')], 'DATE_ALLOW_DELIVERY' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_DATE_ALLOW_DELIVERY')], 'EMP_ALLOW_DELIVERY' => [ 'TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_EMP_ALLOW_DELIVERY_ID'), 'PROVIDER' => User::class, 'OPTIONS' => [ 'FORMATTED_NAME_FORMAT' => [ 'format' => CrmEntityDataProvider::getNameFormat(), ] ], 'VALUE' => [$this, 'getEmpAllowDelivery'], ], 'DEDUCTED' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_DEDUCTED')], 'DATE_DEDUCTED' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_DATE_DEDUCTED')], 'EMP_DEDUCTED' => [ 'TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_EMP_DEDUCTED_ID'), 'PROVIDER' => User::class, 'OPTIONS' => [ 'FORMATTED_NAME_FORMAT' => [ 'format' => CrmEntityDataProvider::getNameFormat(), ] ], 'VALUE' => [$this, 'getEmpDeducted'], ], 'REASON_UNDO_DEDUCTED' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_REASON_UNDO_DEDUCTED')], 'DELIVERY_ID' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_DELIVERY_ID')], 'DELIVERY_DOC_NUM' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_DELIVERY_DOC_NUM')], 'DELIVERY_DOC_DATE' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_DELIVERY_DOC_DATE')], 'TRACKING_NUMBER' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_TRACKING_NUMBER')], 'XML_ID' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_PAYMENT_XML_ID')], 'DELIVERY_NAME' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_DELIVERY_NAME')], 'MARKED' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_MARKED')], 'DATE_MARKED' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_DATE_MARKED')], 'EMP_MARKED' => [ 'TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_EMP_MARKED_ID'), 'PROVIDER' => User::class, 'OPTIONS' => [ 'FORMATTED_NAME_FORMAT' => [ 'format' => CrmEntityDataProvider::getNameFormat(), ] ], 'VALUE' => [$this, 'getEmpMarked'], ], 'REASON_MARKED' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_REASON_MARKED')], 'CANCELED' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_CANCELED')], 'DATE_CANCELED' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_DATE_CANCELED')], 'EMP_CANCELED' => [ 'TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_SHIPMENT_EMP_CANCELED_ID'), 'PROVIDER' => User::class, 'OPTIONS' => [ 'FORMATTED_NAME_FORMAT' => [ 'format' => CrmEntityDataProvider::getNameFormat(), ] ], 'VALUE' => [$this, 'getEmpCanceled'], ], 'CURRENCY' => ['TITLE' => Loc::getMessage('CRM_DOCUMENTGENERATOR_DATAPROVIDER_PAYMENT_CURRENCY'),], 'RESPONSIBLE' => [ 'TITLE' => Loc::getMessage('CRM_DOCGEN_DATAPROVIDER_ORDER_ASSIGNED_TITLE'), 'PROVIDER' => User::class, 'OPTIONS' => [ 'FORMATTED_NAME_FORMAT' => [ 'format' => CrmEntityDataProvider::getNameFormat(), ] ], 'VALUE' => [$this, 'getResponsibleId'], ], 'COMMENTS' => ['TITLE' => Loc::getMessage('CRM_DOCGEN_DATAPROVIDER_QUOTE_COMMENTS_TITLE')] ]; if (!$this->isLightMode()) { $this->fields['ORDER'] = [ 'TITLE' => Order::getLangName(), 'PROVIDER' => Order::class, 'OPTIONS' => [ 'isLightMode' => true, 'enableMyCompany' => true, ], 'VALUE' => [$this, 'getOrderId'], ]; Loc::loadMessages(Path::combine(__DIR__, 'productsdataprovider.php')); $this->fields['PRODUCTS'] = [ 'PROVIDER' => ArrayDataProvider::class, 'TITLE' => GetMessage('CRM_DOCGEN_PRODUCTSDATAPROVIDER_PRODUCTS_TITLE'), 'OPTIONS' => [ 'ITEM_PROVIDER' => Product::class, 'ITEM_NAME' => 'PRODUCT', 'ITEM_TITLE' => GetMessage('CRM_DOCGEN_PRODUCTSDATAPROVIDER_PRODUCT_TITLE'), ], 'VALUE' => [$this, 'loadProducts'], ]; } } return $this->fields; }