...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_external_sale_import.php
- Класс: \CCrmExternalSaleImport
- Вызов: CCrmExternalSaleImport::ParseOrderDataOrderContractors
private function ParseOrderDataOrderContractors($document, $arSettings, &$arOrder) { if (!is_array($document["Contractor"])) return; $arOrder["CONTRACTOR"] = array(); foreach ($document["Contractor"] as $arContractor) { $arContractor = $arContractor["#"]; foreach ($arContractor as $key => $value) { $value = $value[0]["#"]; switch ($key) { case 'Id': $arOrder["CONTRACTOR"]["ID"] = $value; break; case 'ItemName': $arOrder["CONTRACTOR"]["NAME"] = $value; break; case 'FullName': $arOrder["CONTRACTOR"]["FULL_NAME"] = $value; break; case 'LastName': $arOrder["CONTRACTOR"]["LAST_NAME"] = $value; break; case 'FirstName': $arOrder["CONTRACTOR"]["FIRST_NAME"] = $value; break; case 'SecondName': $arOrder["CONTRACTOR"]["SECOND_NAME"] = $value; break; case 'DateOfBirth': $arOrder["CONTRACTOR"]["BIRTHDAY"] = $value; break; case 'Sex': $arOrder["CONTRACTOR"]["SEX"] = $value; break; case 'INN': $arOrder["CONTRACTOR"]["INN"] = $value; break; case 'KPP': $arOrder["CONTRACTOR"]["KPP"] = $value; break; case 'RegistrationAddress': $arOrder["CONTRACTOR"]["ADDRESS"] = $this->ParseOrderDataOrderContractorsAddress($value); break; case 'OfficialName': $arOrder["CONTRACTOR"]["OFFICIAL_NAME"] = $value; break; case 'LegalAddress': $arOrder["CONTRACTOR"]["LEGAL_ADDRESS"] = $this->ParseOrderDataOrderContractorsAddress($value); break; case 'EGRPO': $arOrder["CONTRACTOR"]["EGRPO"] = $value; break; case 'OKVED': $arOrder["CONTRACTOR"]["OKVED"] = $value; break; case 'OKDP': $arOrder["CONTRACTOR"]["OKDP"] = $value; break; case 'OKOPF': $arOrder["CONTRACTOR"]["OKOPF"] = $value; break; case 'OKFC': $arOrder["CONTRACTOR"]["OKFC"] = $value; break; case 'OKPO': $arOrder["CONTRACTOR"]["OKPO"] = $value; break; case 'Accounts': $arOrder["CONTRACTOR"]["ACCOUNT"] = $this->ParseOrderDataOrderContractorsAccounts($value); break; case 'BankAddress': $arOrder["CONTRACTOR"]["BANK_ADDRESS"] = $this->ParseOrderDataOrderContractorsAddress($value); break; case 'Contacts': $arOrder["CONTRACTOR"]["CONTACTS"] = $this->ParseOrderDataOrderContractorsContacts($value); break; case 'Representatives': $arOrder["CONTRACTOR"]["REPRESENTATIVES"] = $this->ParseOrderDataOrderContractorsRepresentatives($value); break; default: $arOrder["CONTRACTOR"][$key] = $value; break; } } } }