diff --git a/CHANGELOG.md b/CHANGELOG.md index 6508f0ab..d9f11a30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2026-01-21 v6.7.8 +- Добавлена передача даты рождения клиента в CRM + ## 2025-12-15 v6.7.7 - Исправлена ошибка обновления ID участий в ПЛ diff --git a/intaro.retailcrm/classes/general/user/RetailCrmUser.php b/intaro.retailcrm/classes/general/user/RetailCrmUser.php index b69a2bc5..0aae7191 100644 --- a/intaro.retailcrm/classes/general/user/RetailCrmUser.php +++ b/intaro.retailcrm/classes/general/user/RetailCrmUser.php @@ -160,6 +160,10 @@ private static function getSimpleCustomer(array $arFields): array $customer['address']['city'] = $arFields['PERSONAL_CITY'] ?? null; $customer['address']['text'] = $arFields['PERSONAL_STREET'] ?? null; $customer['address']['index'] = $arFields['PERSONAL_ZIP'] ?? null; + $customer['birthday'] = isset($arFields['PERSONAL_BIRTHDAY']) + ? new \DateTime($arFields['PERSONAL_BIRTHDAY']) + : null + ; if (mb_strlen($arFields['EMAIL']) < 100) { $customer['email'] = $arFields['EMAIL']; diff --git a/intaro.retailcrm/description.ru b/intaro.retailcrm/description.ru index 99f5dfd4..7e543a01 100644 --- a/intaro.retailcrm/description.ru +++ b/intaro.retailcrm/description.ru @@ -1 +1 @@ -- Исправлена ошибка обновления ID участий в ПЛ +- Добавлена передача даты рождения клиента в CRM diff --git a/intaro.retailcrm/install/version.php b/intaro.retailcrm/install/version.php index 1f0819ac..b8d44fe6 100644 --- a/intaro.retailcrm/install/version.php +++ b/intaro.retailcrm/install/version.php @@ -1,6 +1,6 @@ '6.7.7', - 'VERSION_DATE' => '2025-12-15 12:30:00' + 'VERSION' => '6.7.8', + 'VERSION_DATE' => '2026-01-21 12:30:00' ]; diff --git a/intaro.retailcrm/lib/component/constants.php b/intaro.retailcrm/lib/component/constants.php index 708799e5..086a7158 100644 --- a/intaro.retailcrm/lib/component/constants.php +++ b/intaro.retailcrm/lib/component/constants.php @@ -18,7 +18,7 @@ */ class Constants { - public const MODULE_VERSION = '6.7.7'; + public const MODULE_VERSION = '6.7.8'; public const CRM_PURCHASE_PRICE_NULL = 'purchasePrice_null'; public const BITRIX_USER_ID_PREFIX = 'bitrixUserId-'; public const CRM_USERS_MAP = 'crm_users_map';