issues #84 добавлена обработка для contragent
This commit is contained in:
parent
b81cd1ccc4
commit
17c853144c
@ -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]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user