1
0
Fork 0
mirror of synced 2025-04-04 06:13:32 +03:00

fix: fix breaking orders made with Maxma promocodes

Prevent breaking orders caused by undocumented behavior of Bitrix\Sale\Internals\Fields objects upon modification of their PRICE

Refs: https://github.com/retailcrm/bitrix-module/issues/374
This commit is contained in:
Aleksei Novikov 2024-12-08 21:44:19 +06:00
parent 41257b9d7c
commit 901bd37144
5 changed files with 8 additions and 5 deletions

View file

@ -1,3 +1,6 @@
## 2024-12-08 v6.5.39
- Исправлена поломка заказов с промокодом Maxma при включенной передаче корзины в CRM
## 2024-10-31 v6.5.38
- Исправлена выгрузка заказов через агент

View file

@ -144,7 +144,7 @@ class RetailCrmCart
foreach ($items as $item) {
$itemFields = $item->getFields();
$itemFields = $item->getFields()->getValues();
if (isset($basketItems[(int) $itemFields['ID']])) {
$itemFields['PRICE'] = $basketItems[(int) $itemFields['ID']]['PRICE'];

View file

@ -1 +1 @@
- Исправлена выгрузка заказов через агент
- Исправлена поломка заказов с промокодом Maxma при включенной передаче корзины в CRM

View file

@ -1,6 +1,6 @@
<?php
$arModuleVersion = [
'VERSION' => '6.5.38',
'VERSION_DATE' => '2024-10-31 15:00:00'
'VERSION' => '6.5.39',
'VERSION_DATE' => '2024-12-08 18:30:00'
];

View file

@ -18,7 +18,7 @@ namespace Intaro\RetailCrm\Component;
*/
class Constants
{
public const MODULE_VERSION = '6.5.38';
public const MODULE_VERSION = '6.5.39';
public const CRM_PURCHASE_PRICE_NULL = 'purchasePrice_null';
public const BITRIX_USER_ID_PREFIX = 'bitrixUserId-';
public const CRM_USERS_MAP = 'crm_users_map';