• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/integration/service/batchable/base.php
  • Класс: BitrixSaleExchangeIntegrationServiceBatchableBase
  • Вызов: Base::addsFromParams
protected function addsFromParams(array $params)
{
	$res = static::proxyAdds($params);
	if(count($res['result'])>0)
	{
		$this->relationRefreshByDstEntity($res['result']);
	}
	if(count($res['result_error'])>0)
	{
		foreach($res['result_error'] as $index=>$error)
		{
			$item = $this->getCollection()->getItemByIndex($index);
			$item->setError(new Error($error['error_description']));
		}
	}
	return $this;
}