Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
## 2026-07-14 v6.8.5
- Исправлена загрузка Constants при установке и обновлении модуля

## 2026-07-01 v6.8.4
## 2026-07-27 v6.9.0
- Добавлена поддержка мультисайтовости для типа контрагента
- Исправлена установка и обновление модуля

## 2026-06-30 v6.8.3
- Исправлено присвоение PERSON_TYPE_ID для $newOrder
Expand Down
1 change: 1 addition & 0 deletions intaro.retailcrm/classes/general/events/RetailCrmEvent.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php


/**
* @category RetailCRM
* @package RetailCRM\Events
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php


/**
* @category RetailCRM
* @package RetailCRM\History
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php


/**
* @category RetailCRM
* @package RetailCRM\Order
Expand Down
2 changes: 1 addition & 1 deletion intaro.retailcrm/description.ru
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Исправлена загрузка Constants при установке и обновлении модуля
- Добавлена поддержка мультисайтовости для типа контрагента
5 changes: 2 additions & 3 deletions intaro.retailcrm/install/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
return false;
}

require_once(__DIR__ . '/../lib/component/constants.php');
require_once(__DIR__ . '/../lib/component/advanced/installertrait.php');

class intaro_retailcrm extends CModule
Expand Down Expand Up @@ -794,7 +793,7 @@ function DoInstall()
COption::SetOptionString($this->MODULE_ID, Constants::CRM_ADDRESS_OPTIONS, serialize($addressDetailOptions));
COption::SetOptionString($this->MODULE_ID, Constants::CRM_ORDER_PROPS, serialize(RCrmActions::clearArr($orderPropsArr)));
COption::SetOptionString($this->MODULE_ID, Constants::CRM_LEGAL_DETAILS, serialize(RCrmActions::clearArr($legalDetailsArr)));
COption::SetOptionString($this->MODULE_ID, Constants::CRM_CONTRAGENT_TYPE_SITE, serialize(RCrmActions::clearArr($contragentTypeArr)));
COption::SetOptionString($this->MODULE_ID, 'contragent_type_site', serialize(RCrmActions::clearArr($contragentTypeArr)));

$APPLICATION->IncludeAdminFile(
GetMessage('MODULE_INSTALL_TITLE'), $this->INSTALL_PATH . '/step4.php'
Expand Down Expand Up @@ -1209,7 +1208,7 @@ public function DoUninstall()
COption::RemoveOption($this->MODULE_ID, Constants::CRM_ORDER_TYPES_ARR);
COption::RemoveOption($this->MODULE_ID, Constants::CRM_LEGAL_DETAILS);
COption::RemoveOption($this->MODULE_ID, Constants::CRM_CONTRAGENT_TYPE);
COption::RemoveOption($this->MODULE_ID, Constants::CRM_CONTRAGENT_TYPE_SITE);
COption::RemoveOption($this->MODULE_ID, 'contragent_type_site');
COption::RemoveOption($this->MODULE_ID, Constants::CRM_SITES_LIST);
COption::RemoveOption($this->MODULE_ID, Constants::CRM_ORDER_DISCHARGE);
COption::RemoveOption($this->MODULE_ID, Constants::CRM_ORDER_FAILED_IDS);
Expand Down
2 changes: 1 addition & 1 deletion intaro.retailcrm/install/step3.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

if (!isset($arResult['CONTRAGENT_TYPES'])) {
$arResult['CONTRAGENT_TYPES'] = unserialize(
(string) COption::GetOptionString(Constants::MODULE_ID, Constants::CRM_CONTRAGENT_TYPE_SITE, 0),
(string) COption::GetOptionString(Constants::MODULE_ID, 'contragent_type_site', 0),
['allowed_classes' => false]
);

Expand Down
4 changes: 2 additions & 2 deletions intaro.retailcrm/install/version.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

$arModuleVersion = [
'VERSION' => '6.8.5',
'VERSION_DATE' => '2026-07-14 12:00:00'
'VERSION' => '6.9.0',
'VERSION_DATE' => '2026-07-27 12:00:00'
];
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php


/**
* @category Integration
* @package Intaro\RetailCrm\Component\Builder\API
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php


/**
* @category Integration
* @package Intaro\RetailCrm\Component\Builder\API
Expand Down
1 change: 1 addition & 0 deletions intaro.retailcrm/lib/component/configprovider.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php


/**
* @category Integration
* @package Intaro\RetailCrm\Component
Expand Down
2 changes: 1 addition & 1 deletion intaro.retailcrm/lib/component/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class Constants
{
public const MODULE_VERSION = '6.8.5';
public const MODULE_VERSION = '6.9.0';
public const CRM_PURCHASE_PRICE_NULL = 'purchasePrice_null';
public const BITRIX_USER_ID_PREFIX = 'bitrixUserId-';
public const CRM_USERS_MAP = 'crm_users_map';
Expand Down
1 change: 1 addition & 0 deletions intaro.retailcrm/lib/service/customerservice.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php


/**
* @category Integration
* @package Intaro\RetailCrm\Service
Expand Down
1 change: 1 addition & 0 deletions intaro.retailcrm/lib/service/utils.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php


/**
* @category Integration
* @package Intaro\RetailCrm\Component
Expand Down
1 change: 1 addition & 0 deletions intaro.retailcrm/options.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php


use Bitrix\Currency\CurrencyManager;
use Bitrix\Main\Application;
use Bitrix\Main\EventManager;
Expand Down
9 changes: 3 additions & 6 deletions intaro.retailcrm/updater.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
<?php

require_once __DIR__ . '/lib/component/constants.php';

use Bitrix\Main\Loader;
use Bitrix\Main\Config\Option;
use Bitrix\Main\Application;
use Intaro\RetailCrm\Component\Constants;

function update()
{
Expand Down Expand Up @@ -103,13 +100,13 @@ function addEventSaveOrder()
*/
function migrateContragentTypes()
{
$newOptionValue = Option::get('intaro.retailcrm', Constants::CRM_CONTRAGENT_TYPE_SITE, null);
$newOptionValue = Option::get('intaro.retailcrm', 'contragent_type_site', null);

if ($newOptionValue !== null && $newOptionValue !== '') {
return;
}

$oldContragentTypes = Option::get('intaro.retailcrm', Constants::CRM_CONTRAGENT_TYPE, null);
$oldContragentTypes = Option::get('intaro.retailcrm', 'contragent_type', null);

if (empty($oldContragentTypes)) {
$oldContragentTypes = [];
Expand Down Expand Up @@ -150,7 +147,7 @@ function migrateContragentTypes()
}

if (!empty($newContragentTypes)) {
Option::set('intaro.retailcrm', Constants::CRM_CONTRAGENT_TYPE_SITE, serialize($newContragentTypes));
Option::set('intaro.retailcrm', 'contragent_type_site', serialize($newContragentTypes));
}
}

Expand Down
1 change: 1 addition & 0 deletions tests/classes/general/order/RetailCrmOrder_v5Test.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php


/**
* Class RetailCrmOrder_v5Test
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php


namespace Tests\Intaro\RetailCrm\Component\Builder\Api;

use Bitrix\Main\Type\DateTime;
Expand Down
1 change: 1 addition & 0 deletions tests/lib/component/builder/api/CustomerBuilderTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php


namespace Tests\Intaro\RetailCrm\Component\Builder\Api;

use Bitrix\Main\Event;
Expand Down
Loading