1
0
mirror of synced 2024-11-22 13:26:10 +03:00

issues #84 добавлена обработка для contragent

This commit is contained in:
gorokh 2019-11-01 14:22:23 +03:00
parent b81cd1ccc4
commit 17c853144c

View File

@ -612,6 +612,9 @@ class RetailCrmHistory
if (array_key_exists($key, $order)) { if (array_key_exists($key, $order)) {
$somePropValue = $propertyCollection->getItemByOrderPropertyId($propsKey[$orderProp]['ID']); $somePropValue = $propertyCollection->getItemByOrderPropertyId($propsKey[$orderProp]['ID']);
self::setProp($somePropValue, RCrmActions::fromJSON($order[$key])); self::setProp($somePropValue, RCrmActions::fromJSON($order[$key]));
} elseif(array_key_exists($key, $order['contragent'])) {
$somePropValue = $propertyCollection->getItemByOrderPropertyId($propsKey[$orderProp]['ID']);
self::setProp($somePropValue, RCrmActions::fromJSON($order['contragent'][$key]));
} }
} }
} }