...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/integration/documentgenerator/dataprovider/shipment.php
- Класс: Bitrix\Crm\Integration\DocumentGenerator\DataProvider\Shipment
- Вызов: Shipment::processData
protected function processData(array $data): array { if (!empty($data['STATUS_ID'])) { $data['STATUS_ID'] = DeliveryStatus::getAllStatusesNames()[$data['STATUS_ID']] ?? ''; } $booleanFields = ['ALLOW_DELIVERY', 'DEDUCTED', 'MARKED', 'CANCELED']; foreach ($booleanFields as $fieldName) { $data[$fieldName] = DataProviderManager::getInstance()->getLangPhraseValue( $this, ($data[$fieldName] ?? '') === 'Y' ? 'UF_TYPE_BOOLEAN_YES' : 'UF_TYPE_BOOLEAN_NO' ); } $data['PRICE_DELIVERY'] = new Money($data['PRICE_DELIVERY'] ?? '', [ 'CURRENCY_ID' => $data['CURRENCY'] ?? null ]); return $data; }